First of all I want to say that iText is amazing.  When I first started
playing around with PDF's in web applications I was using a PHP class.  When
I went to switch to Java to handle the PDF creation process I was worried I
wouldn't be able to find a library like the PHP one I used.  Well I was
lucky, I found one a million times better.

Now to the question.

I have a library of user submitted PDF's which can contain an infinite
amount of pages & AcroFields.  I'm using iText to grab the positions of
these AcroFields.  Now this is where ImageMagick comes into play, I'm using
ImageMagick to generate images that will always be at 600px width (for
consistency of this post) at 72 DPI.  Now, from what I've read there are 72
points per inch, if I'm rendering the photo at 72 pixels per inch, then 1
pixel should equal 1 point.  (If I'm wrong about this, please let me know).

Now I'm outputting the positions of the AcroFields and the positions don't
seem to match that well to pixels on the actual document.

I'm guessing that my calculation is wrong.  Another thing I'm a bit confused
about is the rectangle coordinates.  From my understanding it goes in the
order of Left, Bottom, Right, and Top.  Is this correct?

I searched for something similar to what I'm looking for and nothing seemed
to come up, if this has already been answered please let me know.

Thanks in advanced,
Jacob
-- 
View this message in context: 
http://www.nabble.com/AcroForms%2C---ImageMagick-tp25094167p25094167.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
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/

Reply via email to