on 12-03-2008 8:40 AM
Hi,
we need to convert smartforms to PDF in 13 languages. It works fine for all languages but PL and RU. I've already played around with different device types and code pages but I couldn't get it straight. I would really appreciate any idea!
At the moment I use printer PDFcreator and tried this with device type SAPWIN5. Is there any chance to convert a document to PDF just like the preview in the spool? It looks good there. Or is there a chance to use Windows directly to convert to PDF? Because if I copy all 13 texts into a Word-Document the printout looks great.
Every little hint is welcome!
Regards
Nicola
c_par-no_dialog = 'X'.
c_par-preview = space.
c_par-getotf = 'X'.----
>pass it as 'X'
out_opt-tddest = 'LP01'.
CALL FUNCTION fm_name
EXPORTING
control_parameters = c_par------->
output_options = out_opt
user_settings = space
vbeln = it_vbeln-vbeln
pdf = r2
rbiclear = c3
IMPORTING
job_output_info = opt-------> here u will get otf format....
einv = einv.
i_otf = opt-otfdata.(here is ur data otf)
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline. (otf to pdf)
IF lv_check EQ 1.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
CHANGING
filename = file_name
path = file_path
fullpath = full_path.
ENDIF.
CLEAR full_path.
move wa_exnum to lv_exnum.
shift lv_exnum left deleting leading '0'.
move 'C:\SAPWORKDIR\' to file_path.
CONCATENATE file_path 'Invoice_E' lv_exnum '.PDF' INTO full_path.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = v_len_in
filename = full_path
filetype = 'BIN'
IMPORTING
filelength = file_size
TABLES
data_tab = i_tline.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Use the program RSTXPDFT4 for converting spool to PDF. Just pass the spool number. Spool Output is OK right ?
Regards
Edited by: Rajvansh Ravi on Dec 3, 2008 9:44 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.