I've seen that one can extract the strings from a PDF file located in a certain
page:
PdfReader reader = new PdfReader(src);
byte[] streamBytes = reader.GetPageContent(1);
PRTokeniser tokenizer = new PRTokeniser(streamBytes);
StreamWriter streamWriter = new StreamWriter(dest, true);
while (tokenizer.NextToken()) {
if (tokenizer.TokenType == PRTokeniser.TokType.STRING) {
streamWriter.Write(tokenizer.StringValue);
}
}
streamWriter.Flush();
streamWriter.Close();
What I want is get the which is in a certain position on the screen. This way,
if you specify a rectangle (x1,y1,x2,y2) - you'll get all the strings in it.
Is it possible at all? Can I retrieve the position of a token?
Raitskin Alexander
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
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/