No, the JavaDoc for that method isn't all that helpful. Sadly, it's not practical to go into the kind of detail that would be Really Helpful every time a method can take a transformation matrix... there are quite a few: addImage (2 of the overrides) addTemplate (ditto) concatCTM setTextMatrix (which has the most complete description... odd place for it) Incidentally, the order of those parameters are identical to the order used by AffineTransform in various places, and the order of the elements in the double[] returned by its getMatrix() method. I've used AffineTransform a few times to build my matrixes ("rotate around This Spot" is handy) to be passed to one of those functions (though I don't recall which off the top of my head). Overrides for those functions that actually took an AffineTransform might be handy, though all they'd do is getMatrix and pass it off to the "normal" version. What's one more override, right? A consideration that might prevent this (in an area I'm none to familiar with): AffineTransform is in the "awt" package which could cause problems in UI-free installations... but then I'd expect PdfContentByte.getGraphics() would run into similar issues. As I've never seen anyone mention such an issue on the list over the last several years, I'm gonna guess it's not all that big a problem.
--Mark Storer Senior Software Engineer Cardiff.com #include <disclaimer> typedef std::Disclaimer<Cardiff> DisCard; -----Original Message----- From: Daniel Oliveras [mailto:dolive...@gmail.com] Sent: Monday, January 11, 2010 4:43 AM To: Post all your questions about iText here Subject: Re: [iText-questions] Watermark with rotated PDF There is nothing wrong with wrapping the PDFTemplate inside an Image, I simply wanted to know how works the addTemplate() method. I bought the book today, so now I can use it to get more information on iText, I'll read the pages hou recomended. Thank you very much for your time and Help. On Mon, Jan 11, 2010 at 10:04 AM, 1T3XT info < i...@1t3xt.info> wrote: Daniel Oliveras wrote: > Thankyou very much, > > That information is not present on the API documentation and without the > transformation matrix info it is practically impossible to perform any > action. What's wrong with wrapping the PdfTemplate inside an Image? That solves all your problems. And NO: that information is not present in the API documentation, but there are two pages about it in iText in Action (p314 and 315). ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/