[Chicago] Extract information from PDF
jsudlow at gmail.com
Tue Jul 21 06:25:33 CEST 2009
No problem buddy, I thought pyPDF was really slick myself. Python is
amazing, in three lines of code you completed your goal.
In the future, if you ever try to extract data from the pdf into a string
and then write that string to a plain text file, you might get an encoding
ASCII error. Its a common error but its not well documented, let me know and
I'll point you in the right direction if it comes up.
On 7/20/09, Carl Karsten <carl at personnelware.com> wrote:
> On Wed, Jul 15, 2009 at 6:58 PM, Jon Sudlow<jsudlow at gmail.com> wrote:
> > pyPDF
> Thankyou *4
> >>> from pyPdf import PdfFileWriter, PdfFileReader
> >>> input1 = PdfFileReader(open('test.pdf','rb'))
> >>> print input1.getNumPages()
> I needed that.
> Carl K
> Chicago mailing list
> Chicago at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Chicago