Colored Text extraction from PDF

A

Azodious

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?

- Regards
Azodious
 
R

RedGrittyBrick

Azodious 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?

Yes.

It is possible, but I know of no method I'd actually want to use.

Just my ¤0.02 worth.
 
R

Roedy Green

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top