On Mon, 2015-06-22 at 16:13 +0000, Dineshkumar Ramalingam wrote:
> My Podofo version: 0.9.1

        Hi,
try to update to at least 0.9.3 (current stable release), but the best
if you try the svn trunk, which is at revision 1673 right now.

> Here they used Annotation, but I want to use PdfPainter.DrawText 
> method to draw.

I use this code with the svn version:

        PdfString sJap(reinterpret_cast<const 
pdf_utf8*>("「PoDoFo」は今から日本語も話せます。"));

        PdfFont* pFont = writer.CreateFont( "Arial Unicode MS", false, new 
PdfIdentityEncoding( 0, 0xffff, true ) );
        painter.SetFont( pFont );
        painter.SetColor( 0.0, 0.0, 0.5 );
        painter.DrawText( 100.0, 300.0, sJap );

and it prints the text as expected (copy&paste the text between
painter.DrawMultiLineText() and painter.FinishPage() calls in the
main() of the CreationTest.cpp, compile, call and observe the resulting
pdf file's second page bottom.

Check what your editor made with the UTF-8 strings in the code, maybe
it garbled the encoding in the file. In other words, focus on the
encoding of the string itself. I'm not able to guide you more.
        Bye,
        zyx

-- 
http://www.litePDF.cz                                 i...@litepdf.cz


------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to