----------------------------------------
> Date: Wed, 8 Apr 2009 16:55:31 +0200
> From: [email protected]
> To: [email protected]
> Subject: Re: [iText-questions] How to locate a certain range of text
>
> Alexis Pigeon wrote:
>> This is NOT possible, be it with iText or any other tool you could find.
>>
>> Please check the FAQ for further information, specially the following
>> entries :
>> - What is PDL?
>> -> http://1t3xt.info/tutorials/faq.php?branch=faq.pdf_in_general&node=pdl
>> - Can I edit an existing PDF file?
>> ->
>> http://1t3xt.info/tutorials/faq.php?branch=faq.pdf_in_general&node=replace_word
>
> That is correct.
> Only in some cases, using code I still haven't documented, you could
> find out the second line on a page, but only if the PDF "allows" it, and
> if you do a lot of programming.
What do these things return exactly? They seemed to follow
x/y position in some documents anyway:
[ this is my code but the context makes clear my quesiton- the
values from PdfLiteral.getXXX() are what exactly ]
public void dig(PdfLiteral d, PrintStream os)
{oute(os,"lit: "+d.getPosition()+" "+d.getPosLength()+" "+d.toString()); }
The reader needs to render the text so it needs to determine position etc.
If the text exists as text in the source document you should be able
to manipulate it ( with your own reflow algorithm...)
>
> So the initial answer still stands: it's not possible in general.
> --
> 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
_________________________________________________________________
Quick access to your favorite MSN content and Windows Live with Internet
Explorer 8.
http://ie8.msn.com/microsoft/internet-explorer-8/en-us/ie8.aspx?ocid=B037MSN55C0701A
------------------------------------------------------------------------------
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