Java Mailing List Archive

http://www.junlu.com/

Home » Post all your questions about iText here »

[iText-questions] Java IText XHTML (LTR and RTL mixed) to PDF using
 XMLWorker?

Cataldo Urso

2013-06-23


Author LoginPost Reply
Hello,

I have an problem. I need to convert unicode XHTML content to PDF.

For doing that I am using the XMLWorker, this works well until a paragraph contains an RTL language text like Hebrew. Indeed when a English text is mixed with some Hebrew text, the Hebrew is render in reverse order (the words are mirrored).

I know that is linked to the setting of the text runDirection. Indeed in the document model programming (the API not XMLWorker), it is easy by wrapping the text by PdfPtable/PdfPCell or a ColumText and setting the runDirection in LRT or RTL to activate the bidirectional direction support.

Now I am trying to extend the XMLWorker to support the Unicode bidirectional text but for now I run out of ideas. Anyone solved this kind of issue ?

Br,
Cataldo Urso
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@(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
©2008 junlu.com - Jax Systems, LLC, U.S.A.