Op 17/12/2010 12:15, qplace schreef:
Thank you for the quick reply. I checked Rectangle.Left value as it is returned from PdfReader.GetPageSize and PdfReader.GetCropBox. Indeed, the document in question produced negative "left" property in both rectangles, and the documents where I had no issues have zeroes.
You were assuming that the origin of the coordinate system is (0,0). That assumption was wrong. See p144 of the Second Edition of "iText in Action": "This assumption is correct as long as the media box is defined with (0,0) as the coordinate for its lower-left corner, but that's not mandatory. It's perfectly OK for an application to create a media box with a different origin."
You were able to get the MediaBox and CropBox rectangle (p150); you were able to get the field positions (p264). What more do you need? I don't understand the question. According to you, what is missing in the book?Do you know of any references regarding this issue in the documentation/IText book? I own the book, but can't find anything that talks about combining getFieldPosition and relative position of the page rectangles?
------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions 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
