Skip to main content
Boris56
Known Participant
January 28, 2020
Question

How to write Russian text to a document

  • January 28, 2020
  • 2 replies
  • 1286 views

Hi,

I need to write Russian text in a pdf document. I found the tip how to do this on the forum. The author advises to see the example https://github.com/datalogics/adobe-pdf-library-samples/blob/master/CPlusPlus/Sample_Source/Text/UnicodeText/UnicodeText.cpp. I downloaded this example to my computer, but I was not able to build it. The code contains references to some methods (for example, PDETextAddASText) which are not found in the standard Acrobat API. Tell me, please, how to build examples from the site above? Where can I download libraries and header files for assembly?
Thanks.

This topic has been closed for replies.

2 replies

Legend
January 28, 2020

I was in error. https://dev.datalogics.com/adobe-pdf-library/adobe-pdf-library-c-language-interface/additional-apis-from-datalogics/ says that PDETextAddASText is a new method created by DataLogics and only available with their library. Adding Unicode (non Latin1) text without it is much more complicated.

Boris56
Boris56Author
Known Participant
January 28, 2020

Do you have examples or links on how to add text without using the PDETextAddASText method?

Legend
January 28, 2020

Sadly, no. I found this to be a complex and difficult task requiring detailed knowledge of fonts both in PDF and on the OS platform. A commercial project, I cannot share anything from it.

Legend
January 28, 2020

This method is part of the Acrobat plug-in API, and is available to plug-ins. HOWEVER, PDF libary is a separate product which must be licensed from Datalogics before you can use it. Expect a negotiation of fees and royalties.