cancel
Showing results for 
Search instead for 
Did you mean: 

How to upload a PDF file and convert it to OTF format

Ashutosht09
Participant
0 Kudos

We have come across rquirements like converting OTF to PDF but my requirement is to read a PDF file in SAP and convert it to OTF format for printing.

Can anyone please help me with the Function Modules to do so.

Accepted Solutions (0)

Answers (4)

Answers (4)

Ashutosht09
Participant
0 Kudos

The PDF file is on the SAP system itself.

Former Member
0 Kudos

It might just be that the SAP licence for Adbobe just does not allow for direct PDF printing of PDF files (not OTF files) since i really cant find any Fm's for that.

Is it possible to use acrobat on the R/3 server to print?

In that case you can still use my previous solution.

Regards,

Joris

Ashutosht09
Participant
0 Kudos

I want to convert <b>PDF format to OTF</b> and not OTF to PDF....

Former Member
0 Kudos

Hi Ashutosh,

i've looked into it in th epast and couldnt really find a way to convert PDF to OTF or any other SAP data format. Please read my first post to find a workaround

Regards,

Joris

Former Member
0 Kudos

Hi,

If the PDF is on an external system (maybe the client, or another server)

I think it is best to not print the PDF through SAP, but print it on OS level using

1. class <b>CL_GUI_FRONTEND_SERVICES</b> and method <b>EXCECUTE</b> to execute client side actions

2. use this to open Acrobat and directly print PDF:

<b>acrord32 /p my_pdf_file.pdf</b>

/p starts the print process in Acrobat

regaqrds,,

Joris Bots

Former Member
0 Kudos

Hello,

Try the following FM:

CONVERT_OTF Convert SAP documents (SAPScript) to other types.

Example:

CALL FUNCTION "CONVERT_OTF"
EXPORTING FORMAT = "PDF"
IMPORTING BIN_FILESIZE = FILE_LEN
TABLES OTF = OTFDATA
LINES = PDFDATA
EXCEPTIONS ERR_MAX_LINEWIDTH = 1 
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.

Hope this helps.

Reward if helpful.

Regards,

Vasanth