Hello. I`m trying to draw text at the PDF file like in CreationTest. But
only string "PoDoFo" is drawn. What am I doing wrong?
code:
void CreateUnicodeText( PdfPage* pPage, PdfDocument* document )
{
PdfPainter painter;
painter.SetPage( pPage );
PdfEncoding * encoding = new PdfIdentityEncoding( 0, 0xffff, true ) ;
PdfFont * pFont = document->CreateFont( "Arial Unicode MS", encoding);
pFont->SetFontSize( 30.0 );
painter.SetFont( pFont );
PdfString sJap(reinterpret_cast<const
pdf_utf8*>("「PoDoFo」は今から日本語も話せます。"));
painter.DrawText( 100.0, 700.0, sJap );
painter.FinishPage();
}
*Best regards*,
*Tatiana Kuzina.*
------------------------------------------------------------------------------
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