Iterating over PDF documents
Just
just at xs4all.nl
Thu Nov 11 08:26:03 EST 2004
In article <cmve68$iqq$1 at swifty.westend.com>,
Peter Maas <peter at somewhere.com> wrote:
> Just schrieb:
> > try this:
> >
> > for line in open(path, "U"): # universal newline mode
>
> Thanks, Just, I tried this but the edited PDF was damaged.
That's probably because PDF can also contain arbitrary binary data,
which would indeed break if all occurances of \r\n and \r were replaced
by \n...
Just
More information about the Python-list
mailing list