pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: How to Fetch Color of text(Word) using PDFbox
Date Sat, 13 Jan 2018 07:06:03 GMT
Am 12.01.2018 um 09:17 schrieb Vimal Kumar:
> I Am tring to find the color code of a word in java using pdfbox 2.0.0
> and same code is

No easy answer because there is no such thing as a "word". You'd need to 
look into the PDFTextStripper code, understand the algorithm and create 
something quite different... what you see as "words" are either groups 
of glyphs separated by an empty area, or (doesn't happen often, but it 
happens) glyphs having a space among them. See in the source code for 
the word "word".

Tilman


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: users-help@pdfbox.apache.org


Mime
View raw message