Hello, I have an application that takes pdf images and stamps them in the upper right corner. I calculate where to place the stamp using the documents dimensions and some default offsets. 99% of the time it works but we have one customer who's documents never get stamped properly. According to itext their documents are all 792x612 with 0 rotation but in acrobat it does not look like a landscape image and the document properties say it is 8.50x11.00 in. Itext tries to stamp it but the stamp seems to end up out of bounds where I can not see it.
I should also mention that if I rotate the image -90 before stamping it comes out just right. Not only that but the text orientation looks just the same in acrobat as if the original was rotated 90...very odd. I'd love to just detect when width > height and rotate -90 but I can not do that for true landscape documents otherwise the text is sideways and the stamp is in the wrong place. I don't know if it matters but the PDF Producer is a Xerox WorkCenter 7345. -RG -- View this message in context: http://www.nabble.com/Help-with-a-strange-document-tp21449669p21449669.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ 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