Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #19599
| Subject | Re: Reading Adobe PDF File |
|---|---|
| From | Adam Tauno Williams <awilliam@whitemice.org> |
| Date | 2012-01-30 08:22 -0500 |
| References | <a54dcb32-1ecd-4186-81a7-3a55c275c9b0@4g2000pbz.googlegroups.com> <CAMZYqRQPzvuViHAaDxQTEQXgv3eZ-zrznyX=q41URXNbpNmWLQ@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5213.1327929838.27778.python-list@python.org> (permalink) |
On Sat, 2012-01-28 at 21:59 -0800, Chris Rebert wrote: > On Sat, Jan 28, 2012 at 9:52 PM, Shrewd Investor <cltung@gmail.com> wrote: > > I have a very large Adobe PDF file. I was hoping to use a script to > > extract the information for it. Is there a way to loop through a PDF > > file using Python? > Haven't used it myself, but: > http://www.unixuser.org/~euske/python/pdfminer/ It is very prone to hanging and/or crashing. I haven't yet found a really reliably way to read text from a PDF. PyPDF provides a PdfFileReader class with an extractText method. The output is indeed the text although it can be a bit thorny to look at. > > Or do I need to find a way to convert a PDF file into a text file? If > > so how? > The pdf2txt.py script from the same package happens to do exactly this. -- System & Network Administrator [ LPI & NCLA ] <http://www.whitemiceconsulting.com> OpenGroupware Developer <http://www.opengroupware.us> Adam Tauno Williams
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Reading Adobe PDF File Shrewd Investor <cltung@gmail.com> - 2012-01-28 21:52 -0800 Re: Reading Adobe PDF File Shrewd Investor <cltung@gmail.com> - 2012-01-28 21:52 -0800 Re: Reading Adobe PDF File Chris Rebert <clp2@rebertia.com> - 2012-01-28 21:59 -0800 Re: Reading Adobe PDF File Matej Cepl <mcepl@redhat.com> - 2012-01-30 09:09 +0100 Re: Reading Adobe PDF File Adam Tauno Williams <awilliam@whitemice.org> - 2012-01-30 08:22 -0500
csiph-web