carlfreeland wrote: > According to the book, when using PDFGraphics2D, iText doesn't handle RTL > text and may make mistakes with ligatures. > This can be corrected by using > createGraphicsShapes which uses Java's text rendering to draw shapes onto > the PDF. In theory you lose text selectability, but Java's text rendering > handles all the ligatures and BiDi rendering correctly.
It's an ugly workaround yes. Your file size will also increase drastically. It's not a good idea to do it that way; but if you really need 'Hindi' it's the only solution. > Is it a known issue that Arabic and Hebrew will not render RTL as they > should, even if you use createGraphicsShapes? Must I use something like > MultiColumnText with the setRunDirection method, or can use I PDFGraphics2D? I tried this with a recent JDK: http://1t3xt.info/examples/browse/?page=example&id=402 Apparently, the JDK no longer renders Arabic correctly, so if you need Arabic, you'll have to do it 'the iText way', or post a message on a SUN forum. br, Bruno ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar
