Application Development 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: 

Getting special characters while converting OTF to PDF

Former Member
0 Kudos
1,207

Hi Experts!

I am trying to convert the output of a sap script in PDF format For Poland. In print preview of script everything is correct, But when I see the same output in PDF, then it is showing some special characters in place of original text.

To get the output in PDF format I have used the function module  'CONVERT_OTF' .

Could you please help me out in removing these Special characters from PDF format  and to get the proper output as I am getting in Print preview of SAP SCRIPT.

Please find the attached screenshots.

8 REPLIES 8

Former Member
0 Kudos
406

Hi Arshad,

Use "BIN" format in exporting parameters of OTF_CONVERT FM.

Reward if helpful.

Mahidhar.

0 Kudos
406

Hi Mahidhar,

Thanks for your reply. BUT 'CONVERT _OTF' FM supports only PDF and ASCII format . It is not supporting BIN.

What I did orginally is:

in 'CONVERT_OTF' FM in Export parameters I used FORMAT = 'PDF'

and after that I have used FM 'SCMS_XSTRING_TO_BINARY'.

When I am passing Format = ' BIN' in 'CONVERT_OTF' FM then it is showing error.

0 Kudos
406

Hi Arshad,

If it is only for Print in PDF PURPOSE,Try like this.(with out any code/u can delete all code for pdf conversion also))

PDF! in transaction bar,in print preview &press enter.

It will save in pdf,in where u wants.

Try this.

Thanks

Gourav.

0 Kudos
406

Hi Kumar Gourav,

Thanks for your reply but actually after converting the output into PDF, I am sending that PDF as an attachment in email through the program.

0 Kudos
406

Hi Mohammad,

Refer to link

http://scn.sap.com/thread/1479890

Hope this helps.

Thanks,

Tooshar Bendale

0 Kudos
406

Hi Arshad,

Is Polishlanguage font installed on your system??

Does your PDF viewer support the display of Polish characters??

This might be the reason of the problem you are facing.

Hope this helps

raymond_giuseppi
Active Contributor
0 Kudos
406

Did you find, during your researches before posting, Note 941495 - PDF converter: Font is not embedded for Latin-2 or similar notes for your version ?

Regards,

Raymond


0 Kudos
406

I am also facing the same issue.

Did you find any solutions for this issue?