Re: Colored Text extraction from PDF
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 03 Jun 2009 11:05:41 -0700
On Wed, 3 Jun 2009 07:49:18 -0700 (PDT), Azodious
<nehilparashar@xxxxxxxxx> wrote, quoted or indirectly quoted someone
who said :
Hi All
is it possible to extract the colored text from pdf.
for example:
There are 3 color texts in a pdf -- RED, GREEN and BLACK.
is it possible to extract text which are red and green in color?
There are all kinds of tools for manipulating PDF files.
Unfortunately, I don't have personal experience with them.
see http://mindprod.com/jgloss/pdf.html
PostScript is similar to using Java's drawString and brothers in
PaintComponent. In PostScript, you use setrgbcolor or set hsbcolor to
load up your paintbrush with a colour. The problem is similar to
trying to extract text painted in a particular colour from Java source
using drawString. You would mostly likely do it by substituting the
paint methods and capturing parameters when you run the code. Trying
to do it statically would be extremely difficult.
--
Roedy Green Canadian Mind Products
http://mindprod.com
Never discourage anyone... who continually makes progress, no matter how slow.
~ Plato 428 BC died: 348 BC at age: 80
.
- References:
- Colored Text extraction from PDF
- From: Azodious
- Colored Text extraction from PDF
- Prev by Date: Re: Colored Text extraction from PDF
- Next by Date: Re: Maven example
- Previous by thread: Re: Colored Text extraction from PDF
- Index(es):
Relevant Pages
|