Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Getting error for 'CONVERT_OTF_2_PDF'

sreeramkumar_madisetty
Active Contributor
0 Likes
857

Hi Friends

While Calling the FM: 'CONVERT_OTF_2_PDF' in the below way, I am getting conversion error, Can anyone give me an idea to correct this please.

TYPES: l_ty_tab_objbin TYPE solisti1 OCCURS 0.

data: l_otf TYPE STANDARD TABLE OF itcoo.

DATA: l_objbin TYPE l_ty_tab_objbin.

DATA: l_docs TYPE STANDARD TABLE OF docs.

data: i_line TYPE STANDARD TABLE OF tline.

CALL FUNCTION 'CONVERT_OTF_2_PDF'

  • EXPORTING

  • USE_OTF_MC_CMD = 'X'

  • ARCHIVE_INDEX =

  • IMPORTING

  • BIN_FILESIZE =

TABLES

otf = l_otf

doctab_archive = l_docs

lines = i_line

EXCEPTIONS

ERR_CONV_NOT_POSSIBLE = 1

ERR_OTF_MC_NOENDMARKER = 2

OTHERS = 3

.

IF sy-subrc <> 0.

write:/ 'Failure'.

ENDIF.

Regards,

Sreeram

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
720

Hi Sreeram,

U didn't mentioned the exact error what it is giving

Instead of CONVERT_OTF_2_PDF better to use CONVERT_OTF..

If any non-English characters were there in the output then those fonts should be installed in the Acrobat Reader. This is important

Reward with points if needed

Regards,

Krishna K.

3 REPLIES 3
Read only

Former Member
0 Likes
721

Hi Sreeram,

U didn't mentioned the exact error what it is giving

Instead of CONVERT_OTF_2_PDF better to use CONVERT_OTF..

If any non-English characters were there in the output then those fonts should be installed in the Acrobat Reader. This is important

Reward with points if needed

Regards,

Krishna K.

Read only

0 Likes
720

Pl. try using the funtion module CONVERT_OTF for this.

  • Convert OTF Data To PDF Format

----


FORM CONVERT_OTF_DATA_TO_PDF.

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

FORMAT = 'PDF'

IMPORTING

BIN_FILESIZE = WS_FSIZE

TABLES

OTF = I_OTFDATA

LINES = I_PDFDATA

EXCEPTIONS

ERR_MAX_LINEWIDTH = 1

ERR_FORMAT = 2

ERR_CONV_NOT_POSSIBLE = 3

OTHERS = 4.

Thanks and regards,

Maheshwari V

Read only

sreeramkumar_madisetty
Active Contributor
0 Likes
720

It's answered