Hi, Could you please provide the link to XMLWorker Tutorials or samples?
Thanks. ----- Original Message ----- From: "Balder" <[email protected]> To: [email protected] Sent: Thursday, May 26, 2011 7:33:20 PM Subject: Re: [iText-questions] Converting UTF8 in HTML to PDF Hi After a quick look, I see in your java file that you are using HTMLWorker, perhaps you should take a look at XMLWorker ( http://sourceforge.net/projects/xmlworker/ ) it's still under development, but already does a better job then the HTMLWorker, but needs lots more documentation A little change that would be required is changing the [[MY_NAME]] to a tag, and implement a TagProcessor for that. ps: I don't have time at the moment to test your code, I must write documentation ;) On 26/05/2011 13:17, Wen Kai Ng wrote: Hi, Thanks for the fast response. I would like to replace a segment [[MY_NAME]] with chinese, european or korean name depending. How would i be able to replace the [[MY_NAME]] with the UTF8 name and still be able to convert to PDF? I have tried for some time only to get rubbish name. I have attached my codes and html for reference. Thank you for your assistance. Thanks. ----- Original Message ----- From: "Balder" <[email protected]> To: [email protected] Sent: Thursday, May 26, 2011 6:30:22 PM Subject: Re: [iText-questions] Converting UTF8 in HTML to PDF On 26/05/2011 11:50, Wen Kai Ng wrote: Hi, Is it possible to convert HTML with chinese and european characters in UTF8 to PDF? You need a font that supports the characters you want to put in the PDF. If you have that you can display anything. You could even make your own font. @see Chapter 2 point 2.2.2 (page 26) of iText in Action 2 for explanations on UTF-8 How you read the characters as bytes from your source is up to you and depends on your programming language/system Could you please kindly provide some sample codes for this? Read a string as UTF-8 in java: String str = new String(yourbytes, "UTF-8"); Thanks. -- Kind Regards Balder redlab-log @redlabbe ______________________________________________________________________ This email has been scanned by IPMirror's SafestInbox system. For more information please visit http://www.ipmirror.com/en/products_services/safestinbox ______________________________________________________________________ ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
