Dear Mike,
    Oh, what you say is a cut throat. Thank you for your tip. For the 
moment,
you're the dearest people I have in all of the world. Thank you, again.

--------------------------------------------------
From: "1T3XT info" <[email protected]>
Sent: Wednesday, April 08, 2009 11:53 PM
To: "Post all your questions about iText here" 
<[email protected]>
Subject: Re: [iText-questions] [edited] How to locate a certain range of 
text

> Imgen wrote:
>> Thing is, I can get the position of the text. It's page no, X coordinate,
>> Y coordinate, height, width, line no, start character index, end 
>> character
>> index, etc. But how can I access the text which is confined in this area?
>> The thing I want to do is to add action to it, be it goto a web page, or 
>> a
>> remote pdf, or a local destination.
>
> If you have the page number, X,Y, height and width, you have EVERYTHING
> you need. Actions ARE NOT PART of the content stream, you'll find them
> in the page dictionary as Annots (Annotations), but you shouldn't worry
> about that. All you need is PdfStamper.addAnnotation().
> Google for that and you'll find some examples.
>
>> Your code is obviously extracted from a
>> program so it misses the context, so I don't quite understand. For 
>> example,
>> what is the Matrix class stands for? In itext, I don't see any class with
>> that name. And lastTextLineMatrix, what is it? Would you be so kind to 
>> tell
>> me a bit more? I'm very grateful.
>
> It's NOT DOCUMENTED. If it were easy to explain in a mail it would be
> documented, but writing documentation costs time. (And who is paying for
> that time?) Also: it won't work for all PDFs so it's safe to say it's
> impossible. Forget about it. If you have the data you say you have, add
> an annotation, don't mess with the existing content stream.
> -- 
> This answer is provided by 1T3XT BVBA
> http://www.1t3xt.com/ - http://www.1t3xt.info
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> Buy the iText book: http://www.1t3xt.com/docs/book.php
> 

------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to