highlight words by regex in pdf files using python

Aahz aahz at pythoncraft.com
Tue Mar 16 19:47:41 EDT 2010


In article <af0830ae-1d24-4db9-b721-d6602fedd540 at 15g2000yqi.googlegroups.com>,
Peng Yu  <pengyu.ut at gmail.com> wrote:
>
>I don't find a general pdf library in python that can do any
>operations on pdfs.
>
>I want to automatically highlight certain words (using regex) in a
>pdf. Could somebody let me know if there is a tool to do so in python?

Did you Google at all?  "python pdf" finds this as the first link, though
I have no clue whether it does what you want:

http://pybrary.net/pyPdf/
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"Many customs in this life persist because they ease friction and promote
productivity as a result of universal agreement, and whether they are
precisely the optimal choices is much less important." --Henry Spencer



More information about the Python-list mailing list