On Wed, 3 Jun 2009 07:49:18 -0700 (PDT), Azodious
<firstname.lastname@example.org> wrote, quoted or indirectly quoted someone
who said :
>is it possible to extract the colored text from pdf.
>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.
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
Never discourage anyone... who continually makes progress, no matter how slow.
~ Plato 428 BC died: 348 BC at age: 80