I can successfully import the attached pdf (I get a thumbnail) but exporting it just produces an empty page.
System Archlinux x64
The source document. A PDF that contains only an image.
I think this will be a problem with the pypdf library, not pdfshuffler itself.
FYI if you open the exported pdf in Adobe Reader instead of a poppler based program you get an error message "insufficient data for an image". I remember bugs in pdfedit that produced the same result, but I doubt that they would be directly related.
I have encountered a very similar problem on Ubuntu 11.04.
When I import a PDF file produced by scanning, pdfshuffler is not able to export a PDF file -- when the Save button is clicked in the Export window the specified PDF file is not created and the following error is printed:
Traceback (most recent call last):
File "/usr/bin/pdfshuffler", line 411, in choose_export_pdf_name
File "/usr/bin/pdfshuffler", line 432, in export_to_file
pdfdoc_inp = PdfFileReader(file(pdfdoc.copyname, 'rb'))
File "/usr/lib/pymodules/python2.7/pyPdf/pdf.py", line 277, in __init__
File "/usr/lib/pymodules/python2.7/pyPdf/pdf.py", line 651, in read
offset, generation = line[:16].split(" ")
ValueError: too many values to unpack
Linux 2.6.38-11-generic #47-Ubuntu SMP Fri Jul 15 19:27:09 UTC 2011 x86_64 GNU/Linux
pdfshuffler ver. 0.5-2
python-pypdf ver. 1.12-3
A test PDF file produced by Simple Scan 126.96.36.199 can be downloaded at
This issue still exists in pdfshuffler 0.6.0 with python-pypdf 1.13-1 (tested on Ubuntu 12.04 64-bit).
You seem to have CSS turned off.
Please don't fill out this field.
this bug is fixed in pypdf2
now pdfshuffler supports pypdf2 as an alternative to pypdf, so I am closing this.
How to make pdfshuffler work with pypdf2? Latest Debian and Ubuntu do not have the pdfshuffler package that depends on python-pypdf2.
Log in to post a comment.
Sign up for the SourceForge newsletter: