Le jeudi 09 juin 2011 à 20:40 +0200, Konstantinos Poulios a écrit :
> @Oliver
> try replacing:
>
> >>if line[-1] in "0123456789t":
> >> stream.seek(-1, 1)
> >>offset, generation = line[:16].split(" ")
>
> with:
>
> >>for c in line[-2:]:
> >> if c in "0123456789t":
> >> stream.seek(-1, 1)
> >>offset, generation = line[:16].split(" ")[:2]
>
> Best regards
>
Doesn't work either :-( :
$ pdfshuffler
Traceback (most recent call last):
File "/usr/bin/pdfshuffler", line 417, in choose_export_pdf_name
self.export_to_file(file_out)
File "/usr/bin/pdfshuffler", line 438, in export_to_file
pdfdoc_inp = PdfFileReader(file(pdfdoc.copyname, 'rb'))
File "/usr/lib/pymodules/python2.6/pyPdf/pdf.py", line 374, in __init__
self.read(stream)
File "/usr/lib/pymodules/python2.6/pyPdf/pdf.py", line 735, in read
num = readObject(stream, self)
File "/usr/lib/pymodules/python2.6/pyPdf/generic.py", line 87, in readObject
return NumberObject.readFromStream(stream)
File "/usr/lib/pymodules/python2.6/pyPdf/generic.py", line 227, in
readFromStream
return NumberObject(name)
ValueError: invalid literal for int() with base 10: ''
FYI, what I've tried and do is import 2 PDF docs resulting of
simplescan, and reordering the pages.
Maybe this is due to a bug in the PDF files simplescan produces, in
which pages contain only a full page image ?
Hope this helps.
Best regards,
--
Olivier BERGER <[email protected]>
http://www-public.it-sudparis.eu/~berger_o/ - OpenPGP-Id: 2048R/5819D7E8
Ingénieur Recherche - Dept INF
Institut TELECOM, SudParis (http://www.it-sudparis.eu/), Evry (France)
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]