----- Original Message ----- From: "starbuxman" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Saturday, September 29, 2007 6:52 AM Subject: [iText-questions] Text on a Path in iText, correct matrix for concatCTM and the top left hand corner
> > Hello all, > > I'm using iText and it's proved to be a boon in so many ways (I almost > fainted when I realized it had support for PDF417 barcodes!), and I'm > thankful for it, and the amazing book. > > However, I have a requirement that I hope isn't pushing my luck... > > How would I (even begin..) to write text on a path -- say an arc or a > bezier, s they do in drawing programs like Illustrator? I know I can > access > to the postscript with setLiteral, but I dont understand Postscript well > enough to decipher what it's producing, and I don't see (yet!) how I would > do it in iText. > > ANY help would be very, very, appreciated. > It's not really difficult, define your path and calculate the points where each letter and angle should go and then position each letter using setTextMatrix(). Just simple math. > Josh Long > http://www.joshlong.com > Sun Certified Java Programmer > > PS: I've gotten good at thinking in terms of the bottom-left corner for m > Y-axis, but I'd love to find whatever concoction of concatCTM would set my > Y-axis to be at the top left corner. Has anyone surmounted that issue? If you just use concatCTM you'll find that text and images will be upside down. Have a look at PdfGraphics2D for pointers on how to do that right, Paulo ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
