indeed you may find that Illustrator shows you the full MediaBox yet you have a CropBox defined at 432,432
C# PdfReader reader = new PdfReader(path);\ Rectangle media= reader.GetBoxSize(pageno, "media"); Rectangle crop = reader.GetBoxSize(pageno, "crop"); There are others 'trim', 'art'. GetBoxSize returns null if that style of box is not defined. Leonard Rosenthol wrote: > > Origin is always the MediaBox - since all drawing is relative to that. > > And I've seen some REALLY STRANGE origins... > > > Leonard > > On Feb 7, 2007, at 3:02 AM, Bruno Lowagie (iText) wrote: > >> Tallat Hussain wrote: >>> Hi, >>> >>> I want to know how we can calculate the origin of a PDF. Most of the >>> cases it is (0,0). But in some cases it is not zero. I have a >>> document >>> where it is (x=-432,y=432) >> >> I want to see that marvel ;-) >> >> I'd have a look at the MediaBox values; >> and at the page content stream to see if >> any CTM is involved. >> If my answer puzzles you: please search >> for the unknown words in the PDF Reference. >> br, >> Bruno >> >> ---------------------------------------------------------------------- >> --- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your >> job easier. >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel? >> cmd=lnk&kid=120709&bid=263057&dat=121642 >> _______________________________________________ >> iText-questions mailing list >> iText-questions@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/itext-questions >> Buy the iText book: http://itext.ugent.be/itext-in-action/ >> > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > iText-questions mailing list > iText-questions@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/itext-questions > Buy the iText book: http://itext.ugent.be/itext-in-action/ > > -- View this message in context: http://www.nabble.com/Getting-Origin%280%2C0%29-of-PDF-tf3185478.html#a8845176 Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/