Perl and modifying a PDF document

Discussion in 'Perl Misc' started by January Weiner, Oct 30, 2007.

  1. 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

    --
     
    January Weiner, Oct 30, 2007
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. O.B.
    Replies:
    1
    Views:
    1,693
  2. Roger Wilco

    Modifying XML Document

    Roger Wilco, Jun 22, 2004, in forum: XML
    Replies:
    0
    Views:
    438
    Roger Wilco
    Jun 22, 2004
  3. Replies:
    1
    Views:
    693
    Steve W. Jackson
    Jul 20, 2006
  4. Peña, Botp

    modifying pickaxe 2 pdf

    Peña, Botp, Jul 5, 2005, in forum: Ruby
    Replies:
    6
    Views:
    252
    Dave Thomas
    Jul 6, 2005
  5. Chintakrindi Meghanath

    PDF Library - Reading the PDF Document

    Chintakrindi Meghanath, Jan 6, 2006, in forum: Ruby
    Replies:
    2
    Views:
    221
    Hannes Wyss
    Jan 9, 2006
  6. Ricardo Pog
    Replies:
    1
    Views:
    801
    Austin Ziegler
    Mar 26, 2008
  7. Sean Nakasone
    Replies:
    1
    Views:
    676
    Farrel Lifson
    Apr 14, 2008
  8. MAX
    Replies:
    7
    Views:
    395
    A. Sinan Unur
    Dec 21, 2005
Loading...