cancel
Showing results for 
Search instead for 
Did you mean: 

PDF data to OTF

Former Member
0 Kudos

Hi

I need to convert read data from a PDF file and then convert it to OTF format. I was able to read PDF data into an internal table. I am wondering what's the way to convert this PDF data format to OTF.

Please let me know if you know anything on this.

Thank you

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Use FM 'CONVERT_OTF'.

after that use 'GUI_DOWNLOAD'.

try this...

Senthil kumar

anversha_s
Active Contributor
0 Kudos

hi boby,

FM is CONVERT_OTF.

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.

also check sample programs

<b>RSTXPDF4/5.</b>

rgds

Anver

Former Member
0 Kudos

hi do like this::

*-- Convert the OTF data to PDF data

      CALL FUNCTION 'CONVERT_OTF_2_PDF'
           EXPORTING
                use_otf_mc_cmd         = 'X'
           IMPORTING
                bin_filesize           = v_bin
           TABLES
                otf                    = lt_otf
                doctab_archive         = it_doctab
                lines                  = lt_pdfdata
           EXCEPTIONS
                err_conv_not_possible  = 1
                err_otf_mc_noendmarker = 2
                OTHERS                 = 3.

Regards

Ashok P

Former Member
0 Kudos

THIS DOES NOT WORK - ANY OTHER SUGGESTIONS?

Former Member
0 Kudos

check CONVERT_OTF_2_PDF and may be copy and modify this FM to convert PDF to OTF.