Perl and modifying a PDF document

J

January Weiner

Hello,

I have this cool little script for content analysis of some documents.
Currently, it takes simple text and finds certain phrases, then creates a
html which shows the phrases in bold in a context.

However, the documents are initilally all PDF. Right now I just run
pdftotext first and proceed from there. Of course, all images, formatting
etc. are lost and if you want to precisely track back what happens where,
you need to go back to the original document (preferably with a printout
and a pencil).

What I would like to do is to take directly the PDF file and modify it in
such a way that the phrases are shown in red.

Can this be done? If yes, could you point me to which of the numerous PDF
Perl modules should I use? Or, even better, give me examples how this
can be done?

Regards,

January

--
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top