pdfshuffler: not capable to export PDFs

Bug #773053 reported by Alexander Kallenbach
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pdfshuffler (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: pdfshuffler

I wanted to cut of some pages of this PDF:

http://www.initiatived21.de/wp-content/uploads/2010/06/NONLINER2010.pdf

Then I wanted to export it again to a pdf. Clicking on "Save" does nothing, even clicking on "Cancel" does nothing. I get no error message. It just doesn't work.

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: pdfshuffler 0.5-2
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Apr 29 10:50:55 2011
PackageArchitecture: all
ProcEnviron:
 LANGUAGE=de_DE:en
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: pdfshuffler
UpgradeStatus: Upgraded to natty on 2011-04-19 (9 days ago)

Revision history for this message
Alexander Kallenbach (kallenbachalex) wrote :
Revision history for this message
Alexander Kallenbach (kallenbachalex) wrote :

Here is the terminal output:

Traceback (most recent call last):
  File "/usr/bin/pdfshuffler", line 411, in choose_export_pdf_name
    self.export_to_file(file_out)
  File "/usr/bin/pdfshuffler", line 434, in export_to_file
    if (pdfdoc_inp.decrypt('')!=1): # Workaround for lp:#355479
  File "/usr/lib/pymodules/python2.7/pyPdf/pdf.py", line 794, in decrypt
    return self._decrypt(password)
  File "/usr/lib/pymodules/python2.7/pyPdf/pdf.py", line 803, in _decrypt
    raise NotImplementedError, "only algorithm code 1 and 2 are supported"
NotImplementedError: only algorithm code 1 and 2 are supported

Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote :

same here, looks like a bug in pypdf

Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote :

forget my "same here", one document i wanted to merge was protected so it is intended that merging fails

Revision history for this message
Fritz Heinrichmeyer (fritz-heinrichmeyer) wrote :

after getting a not protected document pypdf/pdfshuffler worked.

pdfshuffler should catch such errors in some way and not simply hang.

Revision history for this message
logari81 (logari81) wrote :
Revision history for this message
Patrick (patrrtn) wrote :

I got the same problem (Ubuntu 10.04) and found very useful Fritz's comment.
The files I wanted - actually needed - to merge had the "document assembly" property set to "not allowed", as shown by Acrobat Reader in file/properties/security.
An ugly but useful workaround, implied in Fritz's comment, is therefore 1) print the protected files on a pdf printer and 2) then work with pdfshuffler on the resulting files.
It worked for me.

Revision history for this message
candela (candelapotente) wrote :

Thanks! I also found Fritz's comment very useful. I followed these instructions and solved the problem: http://www.codingbeaver.com/myblog/index.php/2010/01/11/how-to-remove-pdf-files-print-protection/

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.