cancel
Showing results for 
Search instead for 
Did you mean: 

Pdf To Otf Conversion

Former Member
0 Kudos

Hi,

Is there any way to convert Pdf to Otf.

please help.

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

You try this FM,

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

FORMAT = 'PDF'

MAX_LINEWIDTH = 132

  • ARCHIVE_INDEX = ' '

  • COPYNUMBER = 0

  • ASCII_BIDI_VIS2LOG = ' '

  • PDF_DELETE_OTFTAB = ' '

IMPORTING

BIN_FILESIZE = W_bin_filesize

  • BIN_FILE =

TABLES

otf = T_OTF

lines = T_pdf_tab

EXCEPTIONS

ERR_MAX_LINEWIDTH = 1

ERR_FORMAT = 2

ERR_CONV_NOT_POSSIBLE = 3

ERR_BAD_OTF = 4

OTHERS = 5

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Regards,

Joan

Former Member
0 Kudos

Hi,

You can use this Function Module.

CALL FUNCTION 'CONVERT_OTF_2_PDF'

EXPORTING

USE_OTF_MC_CMD = 'X'

ARCHIVE_INDEX =

IMPORTING

BIN_FILESIZE =

TABLES

otf =

doctab_archive =

lines =

EXCEPTIONS

ERR_CONV_NOT_POSSIBLE = 1

ERR_OTF_MC_NOENDMARKER = 2

OTHERS = 3

.

or this one also...

CALL FUNCTION 'CONVERT_OTF_2_PDF_ARCHIVELINK'

IMPORTING

PDF =

PDF_BYTECOUNT =

TABLES

otfraw =

EXCEPTIONS

OTFRAW_CHARSET_UNKNOWN = 1

PDF_CONVERSION_ERROR = 2

OTFRAW_EMPTY = 3

OTFRAW_CORRUPTED = 4

OTHERS = 5

Thanks.

Mona

Edited by: Mona Singh on Jan 22, 2009 7:39 AM

Former Member
0 Kudos

Hi,

*.........................CONVERT TO OTF TO PDF.......................*

CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
bin_filesize = v_bin_filesize
TABLES
otf = st_job_output_info-otfdata
doctab_archive = it_docs
lines = it_lines
EXCEPTIONS
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*........................

Also Follow these links.

Hope it willl help you.

Regards:

Alok

Edited by: alok bansal on Jan 22, 2009 4:57 AM

former_member184657
Active Contributor
0 Kudos

Alok,

Your answer is a copy-paste from Anil's answer here:

Did you notice that your points went from 80 to 12?

That is because you have been copy-pasting other people's answer without mentioning the source or giving credit to the original poster.

This is a violation of copyright Act.

If you continue with this, your id will be deleted.

Reported to SCN. Again!!

pk

Former Member
0 Kudos

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

FORMAT = 'PDF'

IMPORTING

BIN_FILESIZE = PDF_SIZE

BIN_FILE = PDF_DATA

TABLES

OTF = LT_OTFDATA[]

LINES = L_DUMMY

EXCEPTIONS

ERR_MAX_LINEWIDTH = 1

ERR_FORMAT = 2

ERR_CONV_NOT_POSSIBLE = 3

ERR_BAD_OTF = 4

OTHERS = 5.

Former Member
0 Kudos

Hi,

May i know why do you want to convert from PDF to OTF.