Yeah.. i figured that out.. I would be happy to write my own and i guess
given very specific direction it wouldn't be difficult. By the way i tried
with PdfContentStreamProcessor and TextRenderInfo but still would be happy
to figure out new ways.
Thanks,
Mehul
On Thu, Mar 8, 2012 at 7:15 PM, Ke
There is no code already in itext that will do what you want - you will have
to write your own strategy, but it should be very, very easy to write your
own by adapting LocationTextExtractionStrategy.
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Extract-Line-Position
Sorry for that.. Actually i got stuck with something else and couldn't spend
much time to read. I'll surely go through it..
Thanks,
Mehul
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Extract-Line-Position-tp4452853p4455812.html
Sent from the iText - General maili
Op 8/03/2012 5:39, Mehul schreef:
> Hi Kevin,
>
>I already tried with LocationTextExtractionStrategy but in that case i
> need to pass some rectangle co-ordinates. In my case what i want is, go to
> page, extract data and compare with string i have. If string matches then
> find the locatio
Hi Kevin,
I already tried with LocationTextExtractionStrategy but in that case i
need to pass some rectangle co-ordinates. In my case what i want is, go to
page, extract data and compare with string i have. If string matches then
find the location of the line in which that string resides. Ba
The code in LocationTextExtractionStrategy would be a very good place to
start. It actually does exactly what you are looking for, you'll just need
to adapt it a bit to get access to your desired output.
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Extract-Line-Pos
Thanks for the reply. I'll surely go through it.
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Extract-Line-Position-tp4452853p4453562.html
Sent from the iText - General mailing list archive at Nabble.com.
Op 7/03/2012 12:20, Mehul schreef:
> Any idea on how to start
Did you read chapter 15?
If so, you should now experiment the methods getBaseline(),
getDescentLine() and getAscentLine() in the TextRenderInfo class.
If not, please read chapter 15 first.
--
Hi,
Thanks for the reply. I know that it can be stored in different way but i
am not worried about it. In my case i want the position of line in which
that string appears. Also as per the application it's also fixed that the
string will be the starting point of that line.
e.g.
line 1: this is
Op 7/03/2012 11:43, Mehul schreef:
> Hi,
>
> I am working on an application where i need to search for a text and
> retrieve position of the line on that page. Searching is not an issue as i
> can extract entire content from the page and search within it. I am not
> concerned about exact word
Hi,
I am working on an application where i need to search for a text and
retrieve position of the line on that page. Searching is not an issue as i
can extract entire content from the page and search within it. I am not
concerned about exact word position but at least i want to know position
11 matches
Mail list logo