Mike Marchywka
586 Saint James Walk
Marietta GA 30067-7165
415-264-8477 (w)<- use this
404-788-1216 (C)<- leave message
989-348-4796 (P)<- emergency only
[email protected]
Note: If I am asking for free stuff, I normally use for hobby/non-profit
information but may use in investment forums, public and private.
Please indicate any concerns if applicable.
Note: hotmail is getting cumbersom, try also [email protected]
----------------------------------------
> From: [email protected]
> To: [email protected]
> Date: Wed, 8 Apr 2009 11:02:59 -0400
> Subject: Re: [iText-questions] How to locate a certain range of text
>
>
>
>
>
>
>
>
>
>
> ----------------------------------------
>> 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:
Sorry, I cut/pasted the wrong text, this is probably the code you meant,
public void displayText(String text, Matrix endingTextMatrix){
boolean hardReturn = false;
if (lastTextLineMatrix != null && lastTextLineMatrix.get(Matrix.I32) !=
getCurrentTextLineMatrix().get(Matrix.I32)){
hardReturn = true;
}
float currentX = getCurrentTextMatrix().get(Matrix.I31);
float sY = getCurrentTextMatrix().get(Matrix.I32);
String loc=""+((int)(currentX*100))+" "+((int)(sY*100))+" ";
> [ 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
_________________________________________________________________
Rediscover HotmailĀ®: Get quick friend updates right in your inbox.
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates1_042009
------------------------------------------------------------------------------
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