on 10-31-2006 8:26 AM
Hi all,
I converted OTF to PDF (Using the function module 'SX_OBJECT_CONVERT_OTF_PDF') and sent it through an email. I observed that the format got changed at some places and is different from the actual output on the screen.
Could anyone let me know what could be wrong?
Thanks,
Raja
Output on the screen alway going to be little different from acutal output on paper or PDF, because different device types involved in the process. You need to adjust the the smartform, sapscript, or list to look ok in the PDF.
Regards
Sridhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
DATA : ITC TYPE ITCPO,
OTF LIKE TABLE OF ITCOO,
DOC LIKE TABLE OF DOCS,
TLINES LIKE TABLE OF TLINE,
BIN_FILESIZE TYPE I.
ITC-TDGETOTF = 'X'.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
BIN_FILESIZE = BIN_FILESIZE
TABLES
OTF = OTF
DOCTAB_ARCHIVE = DOC
LINES = TLINES.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = BIN_FILESIZE
FILENAME = 'C:\TESTPDF.PDF'
FILETYPE = 'BIN'
TABLES
DATA_TAB = tlines.
Now ur PDF file will be in PC with name TESTPDF.PDF.
Hope this will be useful to u.
With Regards,
Kalpanashri Rajendran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try FM "CONVERT_OTF_2_PDF"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
pls use this FM.
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
RSTXPDF4/5.
rgds
anver
if hlped pls mark points
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.