‎2008 Feb 18 4:47 PM
Hi all,
Can anyone please tell me as to why we use the Function Module 'CONVERT_OTF'.
I use the function Module 'CONVERT_OTF' as follows:
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = V_LEN_IN
TABLES
OTF = I_OTF
LINES = I_TLINE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
But I get the contents of the table I_OTF in some Language like Japanese.
Can anyuone please tell me how to resolve the above issue please.
Kindly reply immediately as this is bit urgent.
Regards,
Vijay
‎2008 Feb 21 7:16 AM
Hi,
Plz try the following.
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.
The IMPORTING parameter BIN_FILESIZE should be Number of bytes in LINES.
TABLES parameter OTFDATA must be of type ITCOO.
PDFDATA must be of type TLINE.
EXPORTING parameter FORMAT is the Target Format.
Reward if Helpful.