Skip to Content
avatar image
Former Member

How to load and print external PDF Files.

Hi everybody,

I need to upload a PDF file from a directory and print it from the SAP environment. I've used the GUI_UPLOAD function to get the BIN data and then the "cl_abap_conv_in_ce" class to converted the data to the table of line - same format as the result of the CONVERT_OTF data. But now I'm stuck, I can not find a way to convert the data to OTF so I can print them. There is plenty of functions of converting data from OTF to other types specially the PDF but none the opposite way. Somehow I have a feeling that there must be a more simple and elegant way of dealing with this...

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Aug 18, 2004 at 03:17 PM

    Astrit:

    Best way is to download the PDF to a temp file on the PC, then call Acrobat direct with the "/p" flag as below:

    acrord32 /p PDFFILE.pdf

    In earlier versions of Acrobat, this prints to the users current default Windows printer. Later versions pop up a print screen window for printer selection (I think).

    Regards,

    D.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 24, 2004 at 09:02 AM

    Is there any way we can convert PDF files to readable formats? Like plain text/ASCII.

    I tried couple of combinations nothing works.

    Any help???

    Add comment
    10|10000 characters needed characters exceeded