Package Details: pdfshuffler 0.6.0-2

Git Clone URL: https://aur.archlinux.org/pdfshuffler.git (read-only)
Package Base: pdfshuffler
Description: Merge or split pdf documents and rotate, crop and rearrange their pages
Upstream URL: http://sourceforge.net/projects/pdfshuffler/
Licenses: GPL3
Submitter: None
Maintainer: Gryffyn
Last Packager: Gryffyn
Votes: 211
Popularity: 2.121249
First Submitted: 2009-04-17 23:44
Last Updated: 2015-11-02 13:41

Latest Comments

TheChickenMan commented on 2016-04-16 04:36

I added up a working version based on the git source. It's been ported over to python3 and to gtk3. https://aur.archlinux.org/packages/pdfshuffler-git/

TheChickenMan commented on 2016-04-08 00:46

https://github.com/jeromerobert/pdfshuffler
Port to Gtk+3 (new dependency on gir1.2-poppler-0.18).
Port to Python 3 (new alternative dependency on python3-pypdf2).

sleeping commented on 2016-04-01 10:01

pdfsam is less visual than pdfshuffler, but at least it works.
Will keep an eye on this in case someone fixes the package.

positron commented on 2016-03-14 18:13

Maybe someone can try to modify the PKGBUILD.
I tried but I get some strange permission errors when doing python setup.py install.

Alister.Hood commented on 2016-03-14 10:34

Hi guys, it isn't a release version, but the most recent development code from the original author still seems to work. (I thought he had it on github, but can't find that anymore, so it is either https://gna.org/projects/pdfshuffler/ or a clone at https://github.com/jeromerobert/pdfshuffler).

positron commented on 2016-03-13 21:08

You can't.
Read the previous comments.

lugarparaler commented on 2016-03-13 16:53

Hi!

I am getting this error message:

$ pdfshuffler
Error: Could not import pdfshuffler
Cause: /usr/lib/python2.7/site-packages/poppler.so: undefined symbol: poppler_orientation_get_type

How can I fix it?

snout commented on 2016-01-09 15:42

Agree with positron. pdfmod is perhaps a bit more heavy with mono as a dependency, but it's a much better replacement than pdfsam - the UX is nearly the same, whereas pdfsam is worlds apart.

positron commented on 2016-01-05 08:25

I would recommend pdfmod [community] as a replacement for pdfshuffler because I think it is much more similar than pdfsam.

zoe commented on 2016-01-04 10:59

pdfsam [community] is a nice replacement of pdfshuffler, since the bug due to poppler upgrade

linux-neophyte commented on 2016-01-03 00:04

I just installed pdfshuffler 0.6.0-2. When I try to open the program nothing happens. Is anyone working on a solution? I mean that in the most respectful way.

Alister.Hood commented on 2015-12-23 04:17

If you're talking about pypdf, isn't that what the switch to pypdf2 is about? Although why/how this package is using both I'm not sure...

FWIW there's also at least one other fork of pdfshuffler: https://github.com/fuesika/pdfshuffler-ng

Alister.Hood commented on 2015-12-23 04:09

> It looks like the latest code changes were nearly four years ago now.

Changes on pdfshuffler? They're only a little over two years old at sourceforge, but then at github the latest changes are early this year, with more recent work in branches.

TheChickenMan commented on 2015-12-23 03:27

Yeah I wonder if there is still anyone working on the project to fix this. It looks like the latest code changes were nearly four years ago now. I will probably end up using PDFMod and hope this gets resolved eventually.

positron commented on 2015-12-22 09:17

I reported upstream that poppler 0.39.0 breaks the program.

https://sourceforge.net/p/pdfshuffler/bugs/41/

I do not know how many chances we have to get this fixed though...

dalcde commented on 2015-12-21 11:56

The problem is due to poppler 0.39.0. Downgrading to 0.38.0 fixes the issue

skydesigner commented on 2015-12-20 18:39

tried to install the pythong2-poppler-qt4... didn´t help. :)

GordonGR commented on 2015-12-20 18:27

I reinstalled/rebuilt python2-pypdf and python2-poppler. It still gives me skydesigner's error message :S

skydesigner commented on 2015-12-20 17:56

do I need the qt4 version?

Gryffyn commented on 2015-12-20 13:01

It seems that this error has to do with the python poppler library. Try uninstalling and reinstalling it.
https://aur.archlinux.org/packages/python2-poppler-qt4/

Gryffyn commented on 2015-12-20 13:00

I am not able to reproduce the error. Are you using the latest PKGBUILD?

skydesigner commented on 2015-12-20 10:30

I cannot start pdfshuffler. Getting the following error:

sebastian@e7440 ~]$ pdfshuffler
Error: Could not import pdfshuffler
Cause: /usr/lib/python2.7/site-packages/poppler.so: undefined symbol: poppler_orientation_get_type

woodape commented on 2015-11-02 11:38

pdfshuffler
Error: Could not import pdfshuffler
Cause: No module named pyPdf

python2-pypdf2 may have all the functionality of python2-pypdf, but pdfshuffler still checks for python2-pypdf so it's is still a dependency.

Gryffyn commented on 2015-10-29 12:47

Added pypdf2 as a dependency. I don't believe we still need pypdf, so I removed it. v2 should take care of all libraries. This fixes the empty pdf bug.

geo909 commented on 2015-10-23 00:41

I cannot export to pdf with a scanned pdf document. When I try to save the edited pdf I get the message "Unable to find 'endstream' marker after stream." and get a 0-sized pdf.

See the related bug here:
https://sourceforge.net/p/pdfshuffler/bugs/22/

alium commented on 2015-05-18 09:30

Since the pypdf is no longer maintained and the pypdf2 is working just fine with pdfshuffler, I think will be nice replace the python2-pypdf with python2-pypdf2.

hydrosIII commented on 2013-10-22 22:22

Hi , something is wrong with the version of libpoppler-glib 0.24.2.1
i get:

Error: Could not import pdfshuffler
Cause: /usr/lib/libpoppler-glib.so.8: undefined symbol: g_type_class_adjust_private_offset

Anonymous comment on 2013-03-13 14:08

It is necessary to manually install python2-pypdf from the AUR since python2-pypdf was removed during the winter cleanup. Otherwise we get an "failed to install missing dependencies" error from pacman:

$ makepkg -s
==> Making package: pdfshuffler 0.6.0-2 (Wed Mar 13 14:52:51 CET 2013)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: python2-pypdf
==> ERROR: 'pacman' failed to install missing dependencies.

Anonymous comment on 2012-10-27 20:41

ok, it's running, sorry for the last message

Anonymous comment on 2012-10-27 20:39

It's not running
"$ pdfshuffler
Error: Could not import pdfshuffler
Cause: No module named pyPdf"

Anonymous comment on 2012-10-23 19:19

you need to delete the old files in conflict. Maybe should file a bug for the package python2-pypdf ...

Anonymous comment on 2012-10-23 19:09

Sorry, the dependence python2-pypdf has a bug:

"Installa o compila le dipendenze mancanti per pdfshuffler:
risoluzione delle dipendenze in corso...
ricerca dei conflitti in corso...

Pacchetti (1): python2-pypdf-1.13-1

Dimensione totale dei pacchetti da installare: 0,25 MiB

Vuoi procedere con l'installazione? [S/n]
(1/1) verifica dell'integrità dei pacchetti [##############################################] 100%
(1/1) caricamento dei file dei pacchetti [##############################################] 100%
(1/1) controllo dei conflitti in corso [##############################################] 100%
errore: impossibile eseguire l'operazione richiesta (file in conflitto)
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf-1.13-py2.7.egg-info è già presente nel filesystem
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf/__init__.py è già presente nel filesystem
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf/__init__.pyc è già presente nel filesystem
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf/filters.py è già presente nel filesystem
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf/filters.pyc è già presente nel filesystem
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf/generic.py è già presente nel filesystem
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf/generic.pyc è già presente nel filesystem
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf/pdf.py è già presente nel filesystem
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf/pdf.pyc è già presente nel filesystem
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf/utils.py è già presente nel filesystem
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf/utils.pyc è già presente nel filesystem
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf/xmp.py è già presente nel filesystem
python2-pypdf: /usr/lib/python2.7/site-packages/pyPdf/xmp.pyc è già presente nel filesystem
Si sono verificati degli errori, nessun pacchetto è stato aggiornato".

xduugu commented on 2012-10-08 07:04

python-pypdf was renamed to python2-pypdf. The dependency needs to be changed accordingly.

speps commented on 2012-06-02 10:19

@dif Surely it helps, thanks :)
Btw since the desktop file is officially provided, you should report this upstream, asking for your suggestion to be applied in a next release.
You can reach pdfshuffler author (Alexander Lyshenko) easily, open a request on the sourceforge page, send him a mail or just contact him on
IRC (logari81 @ freenode.net). Please, do it :) Cheers

dif commented on 2012-06-02 10:08

Just a short remark. Everything works right, but I had to modify the pdfshuffler.desktop file:

Exec=pdfshuffler ---> Exec=pdfshuffler %U

in order to have the pdfshuffler icon displayed in the "Open with..." dialog window.
Hope this helps someone.

speps commented on 2012-03-30 15:49

@Spyhawk Thanks, you're right. Well, since there is no simple way to resolve this, I've included the source tarball for latest svn revision. Updated to 0.6svn75-1

Spyhawk commented on 2012-03-30 06:33

speps> Hi, here's pacaur maintainer. Just to let you know that pacaur relies exclusively on official makepkg to install packages, so I'm pretty sure the pkgver hack you are using in this PKGBUILD breaks "makepkg -sfi".

ZeroBit commented on 2012-02-11 15:29

@speps No I have no any output in terminal. There is only one page from a big 116 pages magazine which is rendered in a wrong way.

ZeroBit commented on 2012-02-11 15:12

@speps No I have no any output in terminal. There is only one page from a big 116 pages magazine which is rendered in a wrong way.

speps commented on 2012-02-11 14:32

@sp42b Thanks for pointing this out, fixed in release 0.5.1_svn64-2.
@pezzacolori Yep this is caused by the pkgver workaround in package(). Btw this is a pacaur issue, and you may better report this to its developer.
@ZeroBit Thanks for testing, it would be interesting reporting if you get some output when launching pdfshuffler from a terminal.

Anonymous comment on 2012-02-11 09:37

Works great. Thank you.

I think the ui-file in /usr/share/applications can be removed:
[me@oldbox pdfshuffler]$ pacman -Ql --file pdfshuffler-0.5.1_svn64-1-any.pkg.tar.xz | grep "/usr/share/appli"
pdfshuffler /usr/share/applications/
pdfshuffler /usr/share/applications/pdfshuffler.desktop
pdfshuffler /usr/share/applications/pdfshuffler/
pdfshuffler /usr/share/applications/pdfshuffler/pdfshuffler.ui

pezzacolori commented on 2012-02-09 19:30

I can install it manually, but not with pacaur.
I don't know if the problem is given by pacaur or something else.
After the building stuff, pacaur tries to install a package with name: pdfshuffler-64-1-any.pkg.tar.xz,
while the existing one has following name: pdfshuffler-0.5.1_svn64-1-any.pkg.tar.xz.

Probably is due to the fact that packaversion is set to simply 64 (pkgver=64), and the rest is added in the code. Is this possible?

Anonymous comment on 2012-02-09 11:20

Back to using pdfshuffler - works great on my system - Sweet! Thanks speps!

ZeroBit commented on 2012-02-08 07:11

Works great! One page of the Magazine with complex layout is rendered in a wrong way as we can see here http://img33.imageshack.us/img33/9860/pdfartefcats.png
But it is not a big problem yet.

speps commented on 2012-02-08 01:01

pdfshuffler 0.6.0 is still a WIP but seems to be usable (since 5 weeks now).
So, while 0.6.0 will not come out, this will build on current svn release.
Please test and leave feedbacks (I'll revert on big issues). Cheers

Anonymous comment on 2012-02-07 20:01

Hello All, I use pdfshuffler everyday and I downgraded back in December per zerobit so I could continue to use. However, I hate having a system not fully up to date. Today I started looking for alternatives and found pdfsam in aur, which seems so far pretty good and has way more functionality.

ZeroBit commented on 2011-12-19 17:24

I downgraded these packages:
poppler-0.16.7-2
poppler-glib-0.16.7-2
poppler-qt-0.16.7-2
python2-poppler-0.12.1-5
And it started to work great.
Of course, it is necessary to add to /etc/pacman.conf
IgnorePkg = poppler poppler-glib poppler-qt python2-poppler

ZeroBit commented on 2011-12-19 12:45

I downgraded these packages:
poppler-0.16.7-2
poppler-glib-0.16.7-2
poppler-qt-0.16.7-2
python2-poppler-0.12.1-5
And it started to work great.
Of course, it is necessary to add to /etc/pacman.conf
IgnorePkg = poppler poppler-glib poppler-qt python2-poppler

speps commented on 2011-12-18 23:44

@dif You're right, it works but blindly. Unfortunately the rendering system used by pdfshuffler was removed in poppler >= 0.18.0
and it have to be reimplemented using cairo. I had a little try days ago with unsatisfying results.
Btw, some hours ago a had little talk with the developer, informing him about all this.
He's going to update pdfshuffler, releasing a new 0.6 soon (i wish max in a couple weeks).
Meanwhile you can work blindly, or if you really need it you can downgrade poppler to 0.16.7-2 and python2-poppler 0.12.1-5,
you can browse packages.git or take a look to https://wiki.archlinux.org/index.php/Downgrading_Packages to get binaries.

dserban commented on 2011-12-18 15:21

A possible alternative to pdfshuffler would be pdfchain, although removing a page becomes a two-step process.

dif commented on 2011-12-18 14:16

Nothing new. Same thing as reported by ZeroBit, But I made a simple experiment:
I imported a two-page pdf file, deleted one of the pages, and exported the resulting file.
The resulting file opened OK with evince and included just the one page it was supposed to have.
I made the same experiment with a seven-page file, deleting page 3 and 6. It worked OK again.
To sum it up, pdfsuffler seems to do the task, but you have to do it blind. And I had to close pdfshuffler and reopen it to be able to import another file.

ZeroBit commented on 2011-11-14 20:36

After today's update pdfshuffler runs, but after importing pdf file only black squires instead of pages with this error:
$ pdfshuffler
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/bin/pdfshuffler", line 964, in run
thumbnail = self.load_pdf_thumbnail(pdfdoc, npage, angle, crop)
File "/usr/bin/pdfshuffler", line 1010, in load_pdf_thumbnail
pixbuf.fill(0xffffffff)
NameError: global name 'pixbuf' is not defined

Still unusable.

ZeroBit commented on 2011-10-30 22:57

Yes. The same situation.
From the begining we have:
$ pdfshuffler
Traceback (most recent call last):
File "/usr/bin/pdfshuffler", line 68, in <module>
import poppler #for the rendering of pdf pages
ImportError: /usr/lib/python2.7/site-packages/poppler.so: undefined symbol: poppler_page_render_to_pixbuf_for_printing
After applying Comment by: speps on Sat, 22 Oct 2011 16:58:53 +0000
We have result from Comment by: dif on Sat, 22 Oct 2011 21:39:22 +0000
A spent a lot of time in tryings to solve the problem, but failed. Any help?

olivierk commented on 2011-10-27 17:36

Same problem as dif with the PKGBUILD given by speps.

dif commented on 2011-10-22 21:39

I downloaded PKBUILD
from https://bugs.archlinux.org/task/26571?getfile=7652
and pypoppler-0.12.1-poppler-0.16.0.patch from
https://bugs.launchpad.net/poppler-python/+bug/696025/+attachment/1780367/+files/pypoppler-0.12.1-poppler-0.16.0.patch

After installation I get the following error message when I start pdfshuffler:
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
self.run()
File "/usr/bin/pdfshuffler", line 964, in run
thumbnail = self.load_pdf_thumbnail(pdfdoc, npage, angle, crop)
File "/usr/bin/pdfshuffler", line 1010, in load_pdf_thumbnail
pixbuf.fill(0xffffffff)
NameError: global name 'pixbuf' is not defined

I also tried installing from the testing repository only to see this
Traceback (most recent call last):
File "/usr/bin/pdfshuffler", line 68, in <module>
import poppler #for the rendering of pdf pages
ImportError: /usr/lib/python2.7/site-packages/poppler.so: undefined symbol: poppler_page_render_to_pixbuf_for_printing

speps commented on 2011-10-22 16:58

@dserban @dif Thanks for reporting. I've just opened a bug report for python2-poppler (broken due to API changes in poppler 0.18.0)
> https://bugs.archlinux.org/task/26571
and sent a quick fix to let it work, if you wanna solve it by yourself you can build your own python2-poppler using this PKGBUILD
> https://bugs.archlinux.org/task/26571?getfile=7652

Let me know if you encounter other issues.

J4913 commented on 2011-10-22 12:44

Also needs an older python2-poppler (0.12.1-4 works here).

dserban commented on 2011-10-21 19:08

One solution would be to downgrade poppler and poppler-glib to version 0.16.7-2 (simultaneously).
You'll find those versions on a slightly out-of-date mirror such as schlunix, e.g.
http://schlunix.org/archlinux/extra/os/i686/poppler-0.16.7-2-i686.pkg.tar.xz
http://schlunix.org/archlinux/extra/os/i686/poppler-glib-0.16.7-2-i686.pkg.tar.xz
Another solution would be to file a bug report upstream.

dif commented on 2011-10-21 17:02

The program stopped working after a system update (pacman -Syu).
Here's what I get when I try to start pdfshuffler from the command line:
File "/usr/bin/pdfshuffler", line 68, in <module>
import poppler #for the rendering of pdf pages
ImportError: /usr/lib/python2.7/site-packages/poppler.so: undefined symbol: poppler_page_render_to_pixbuf_for_printing

dserban commented on 2011-03-25 11:16

I have a suggestion that is inspired by evince and will increase the overall usefulness of the pdfshuffler package.
Add the following line to the bottom of the .desktop file
MimeType=application/pdf;
You can do this using a command similar to:
echo "MimeType=application/pdf;" >> "$pkgdir/usr/share/applications/pdfshuffler.desktop"

In conjunction with the "update-desktop-database -q" command in the post_install(), this will add the option called "Open with PDF-Shuffler" to the right-click context menu of all PDF files.

speps commented on 2011-03-24 19:00

@dserban Thanks for signalling, btw there's no need to add pygtk since that's already a python2-poppler dependency - cheers

dserban commented on 2011-03-24 18:37

pygtk should be listed as a dependency.
Also, please list python2-poppler instead of python-poppler.

speps commented on 2010-12-19 01:00

@all owned && updated

speps commented on 2010-12-05 20:37

@osc Hi farid, here is a working
PKGBUILD ==> http://aur.pastebin.com/uRFvjEtp
.install ==> http://aur.pastebin.com/Ga2jNy70

Anonymous comment on 2010-11-13 03:07

> Changing first line in pdfshuffler bin to python2 fixes it..
That works, though I mean the better solution is to change the PKGBUILD to "python2 setup.py install"

I have updated the PKGBUILD for the ver 0.5.1 and sand it to the contributor.

Phlogiston commented on 2010-10-31 09:39

Changing first line in pdfshuffler bin to python2 fixes it..

quantumphaze commented on 2010-10-26 00:06

Needs fixing for /usr/bin/python2