Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Perl and modifying a PDF document

Thread Tools

Perl and modifying a PDF document

January Weiner
Posts: n/a

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?



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Text Replacement in PDF Document & Stable PDF to Image Conversion sherazam Java 0 06-19-2012 11:46 AM
Postscript to PDF with pdf-tools, pdf-writer, or other Sean Nakasone Ruby 1 04-14-2008 09:13 PM
PDF::Writer, create pdf and insert in other pdf file. Ricardo Pog Ruby 1 03-26-2008 08:24 PM
PDF Library - Reading the PDF Document Chintakrindi Meghanath Ruby 2 01-09-2006 08:28 AM
How to give (put to browser) someone PDF document, with hidden path to document. MAX Perl Misc 7 12-21-2005 12:47 PM