17/12/2010 4:13, qplace:
> > How to retrieve the page margins from the existing document?
..
> > Using "TextMarginFinder" apparently retrievs the margins of the existing 
text
> > on a page. My situation is that the document I am reading have only fields 
and
> > no text...

1T3XT BVBA <info <at> 1t3xt.info> writes:
> You should retrieved the coordinates of the fields (method 
> getFieldPositions) and use that information.
> 

Thank you for the reply. That is what I am using to determine field 
coordinates, call to getFieldPositions. For most of the pdf documents that I 
tested it works fine. There is one document, however, where this method 
returns 0 for the left coordinates. I am using following method to find the 
left coordinate of the field (itextsharp):
AcroFields.FieldPosition.position.Left.

When I open this particular document in Acrobat I noticed that the left border 
of the field sits exactly on the left margin of the page. That is why I 
thought that I should find the page margin.

Any help/advise on this matter is greatly appreciated




------------------------------------------------------------------------------
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

Reply via email to