On Tue, 2017-12-26 at 18:37 +0300, Татьяна Кузина wrote:
>     PdfFont * pFont = document->CreateFont( "Arial Unicode MS", encoding);

        Hi,
there's a "typo" in the above line. Read the documentation for the
PdfDocument::CreateFont() function, the second parameter is not
encoding, but bool (with various meanings). Once you pass encoding at
the right position it'll work.

By the way, instead of leaking the encoding structure, consider using
PdfEncodingFactory::GlobalIdentityEncodingInstance() instead.
        Bye,
        zyx

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to