cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms to PDF in Multilanguage

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

I've already tried it and it didn't work.

Regards

Nicola

Former Member
0 Kudos

Donot generate spool , generate otf instead by setting getotf as X in smartform control params.

now use convert_otf FM to convert into pdf

Former Member
0 Kudos

Amit,

thanks for your answer, I'll try it. But we would prefer to find a printer based solution instead of solving the problem with development. We have a unicode system and following SAP statements it should work - but I don't know how

Regards

Nicola

Former Member
0 Kudos

Hi,

So you say the OTF data in the spool is fine , but during PDF convertion there is a problem. correct ?

Check these notes

Note 951210 - Unicode: Euro symbol in PDF with Latin-2/Cyrillic/Greek

Note 941495 - PDF converter: Font is not embedded for Latin-2

Regards

Former Member
0 Kudos

Yes, OTF data in the spool are fine, we have already the support packages of the 2 notes implemented so this is unfortunately not the solution.

Regards

Nicola