dondavito,

dondavito wrote
> I have to read the content of a flatten textfield. After searching I
> recognized, that it is only possible to get this content, if I know the
> field's location.
> (http://itext-general.2136553.n4.nabble.com/Retrive-flatten-field-with-Itext-td3651314.html)
>  
> 
> So I got the following location of this field in my pdf file:
> 
> Rectangle: 47.837006x11.8220215 (rot: 0 degrees)
> (llx, lly) = (255.887, 742.336)
> (urx, ury) = (303.724, 754.158)
> 
> Which class/method do I need to read the content of this? Can you please
> give me a code example?

I have not yet retrieved your question via the mailing list. Have you not
registered with it or is it simply slow?

Anyways, what you need to do is text parsing that region. You'll find
information on PDF content parsing in chapter 15 of  iText in Action — 2nd
Edition <http://itextpdf.com/book/>   --- the sample for you to take as a
starting point is  ExtractPageContentArea.java
<http://itextpdf.com/examples/iia.php?id=279>  

Be aware, though, that text content parsing from PDFs can be somewhat
fickle...

Regards,   Michael



--
View this message in context: 
http://itext-general.2136553.n4.nabble.com/Read-content-of-a-flatten-field-by-knowing-the-field-s-location-tp4657437p4657438.html
Sent from the iText - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

iText(R) is a registered trademark of 1T3XT BVBA.
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