Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #19572

Re: Reading Adobe PDF File

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!feeder3.cambriumusenet.nl!feed.tweaknews.nl!194.134.4.91.MISMATCH!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <chris@rebertia.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.042
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'myself,': 0.09; 'python?': 0.15; 'cc:addr:python-list': 0.15; '\xc2\xa0i': 0.16; '\xc2\xa0if': 0.16; 'wrote:': 0.16; 'convert': 0.19; 'jan': 0.19; 'cheers,': 0.20; "haven't": 0.20; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'received:209.85.212.46': 0.23; 'received:mail-vw0-f46.google.com': 0.23; 'extract': 0.24; 'cc:2**0': 0.25; 'sat,': 0.25; 'pm,': 0.26; 'script': 0.28; 'message-id:@mail.gmail.com': 0.28; 'cc:addr:python.org': 0.29; 'chris': 0.30; 'it.': 0.33; 'there': 0.33; 'this.': 0.33; 'loop': 0.34; 'received:209.85.212': 0.34; 'hi,': 0.34; 'file.': 0.34; 'file': 0.35; 'url:python': 0.36; 'received:google.com': 0.37; 'using': 0.37; 'happens': 0.37; 'received:209.85': 0.38; 'hoping': 0.38; 'url:org': 0.39; 'received:209': 0.39; 'subject:: ': 0.39; 'adobe': 0.63; 'investor': 0.77; 'sender:addr:chris': 0.84; 'subject:Adobe': 0.84; 'subject:PDF': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=yu4hBLEit0xih/gtOB0L91adMUoTzJDZJTnamjgUlJM=; b=Jwe/VoBc5mTN9ZirU6glzudzx53J24AoJhoWS/VX5Gz2cn02Xt2kRYLgVQxlv6Jles 6wXv9Fw+ptdTJ5Ng2MpNibdJKsN8MtEW9y49G/vZSyqyJ0AvUpemtZ0HYTVTHWpI89KS FYpFQFKaqxhl+zVW5vKnKsjJCSwfTEhwVF2M8=
MIME-Version 1.0
Sender chris@rebertia.com
In-Reply-To <a54dcb32-1ecd-4186-81a7-3a55c275c9b0@4g2000pbz.googlegroups.com>
References <a54dcb32-1ecd-4186-81a7-3a55c275c9b0@4g2000pbz.googlegroups.com>
Date Sat, 28 Jan 2012 21:59:29 -0800
X-Google-Sender-Auth -QPJGJcS_77GKK3gS40P_yVQOI4
Subject Re: Reading Adobe PDF File
From Chris Rebert <clp2@rebertia.com>
To Shrewd Investor <cltung@gmail.com>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5191.1327816772.27778.python-list@python.org> (permalink)
Lines 19
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1327816772 news.xs4all.nl 6894 [2001:888:2000:d::a6]:38178
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:19572

Show key headers only | View raw


On Sat, Jan 28, 2012 at 9:52 PM, Shrewd Investor <cltung@gmail.com> wrote:
> Hi,
>
> 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/

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

Cheers,
Chris

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


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