Skip to Content
Former Member
Jun 22, 2011 at 02:26 PM

How to embed font into generated PDF?



I have an issue with cyrillic fonts in PDF-file, generated from smartform using the following mechanism:

1. Run FM for smartform with ==> getotf = 'X'

2. Perform CONVERT_OTF retrieving result into a XSTRING.

3. Converting xstring content into a table using "cl_document_bcs=>xstring_to_solix).

4. Creating mail to an external internet user with attached pdf ==> using "cl_document_bcs=>create_document..."

Smartform contains cyrillic content, based on HELVCYR (Helvetica cyrillic) font. Application server is based on Windows.

Everything worked well (for months!) for allmost all of the clients of our customer. Of course, some of clients have different OS-es (such as Linux, Mac OS, etc.), and then the problem starts - they doens't view properly the cyrillic content. English content (even numbers, etc.) are properly displayed. We found what fonts are used in the PDF, but my questions are:

1. Is it possible to embed the font into generated PDF-content?

2. If no, is it possible to generate PDF-content non-selectable (i.e. in some image mode) ?

If yes, how to do this?

Or is there any other way to workarround this issue - to be able to display mail with attached PDF-content with cyrillic on different OS-es? It would be better if it is possible without calling external converter...

Any help would be highly appreciated.

Thanks in advance.


Ivaylo Mutafchiev