Hello
PoDoFo Team!
Soory for my bad English.
I want to write a Japanese Text in PDF file,but I failed.
The following is my code:
PdfMemDocument* mDoc= new
PdfMemDocument("C:\\qtworkspace\\luanmaTest\\Materials\\template.pdf");
PdfPage* curPage;
curPage=mDoc->GetPage(0);
PdfPainter painter;
painter.SetPage(curPage);
PdfIdentityEncoding encoding(0, 0xffff, true);
PdfFont* pUnicFont =mDoc->CreateFont("Arial Unicode MS", &encoding, true);
painter.SetFont(pUnicFont);
PdfString sJap(reinterpret_cast<const
pdf_utf8*>("「Po\tDoFo」は今から日本語も話せます。"));
painter.SetColor(1.0,0.0,1.0);
painter.DrawText(100.0,400.0,sJap);
painter.FinishPage();
In Windows system(system’s language is Japanese),compilation of the code is
right,but running is wrong.
The wrong code is” PdfString sJap(reinterpret_cast<const
pdf_utf8*>("「Po\tDoFo」は今から日本語も話せます。"));”.
But in Linux system(system’s language is English), compilation and running is
all right,but "「Po\tDoFo」は今から日本語も話せます。" is not correctly writed in PDF file.
Chinese character is invisible, English character is visible.
Please explain where I'm wrong.
Thank you!
________________________________
This e-mail may contain confidential information and/or copyright material.
This e-mail and any attachments are solely for the intended recipient. If you
have received this transmission in error, please immediately notify the sender
by return e-mail and permanently delete this message and its attachments. Any
unauthorized use, copying or dissemination of this transmission is prohibited.
Thank you for your cooperation.
______________________________________________________________________
Disclaimer:This email and any attachments are sent in strictest confidence for
the sole use of the addressee and may contain legally privileged, confidential,
and proprietary data. If you are not the intended recipient, please advise the
sender by replying promptly to this email and then delete and destroy this
email and any attachments without any further use, copying or forwarding
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users