Combining PDF files

I frequently need to combine several PDF files into one large PDF so I don’t have to send a mess of small files via email. Though I have accomplished this task before without much of a problem by issuing the following command to Ghostscript, I decided that my usual method is inefficient:

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf

Later on I found a terminal-based application called PDFtk that allowed for a more easily remembered command:

pdftk PART1.pdf PART2.pdf PART3.pdf cat output COMBINED.pdf

where one simply replaces the capitalised portions with the appropriate names of the input and output PDF files. However, to use that utility within Gentoo, one has to compile sys-devel/gcc with the gcj USE flag enabled. That USE flag builds GCC with support for the Java Programming Language. While this was not necessarily a big dependency, I didn’t feel like recompiling GCC with support for Java in order to use a terminal utility. Instead, I wanted to use a lightweight GTK GUI application that would allow me to do some basic PDF tasks, and I did so with PDFshuffler.

This application is incredibly minimalistic, easy to use, and it accomplishes a few PDF tasks very nicely. Lifted directly from the project’s SF page, “PDF-Shuffler is a small python-gtk application, which helps the user to merge or split pdf documents and rotate, crop and rearrange their pages using an interactive and intuitive graphical interface. It is a frontend for python-pyPdf.” I have not used it to rotate any documents, but I have found that it allows me to take care of the other tasks quite effectively and efficiently. Even better, it really doesn’t have many dependencies not already on my system.

I have filed a stablisation request (STABLEREQ) for this application as well as its two explicitly-listed dependencies (python-poppler and pyPDF) in the Gentoo bugzilla. If you use this application or either of its dependencies, please comment on your experiences, especially regarding runtime stability.

I hope that some of you find this application to be as helpful as I have. 🙂

Take care for now,
Zach

New LXDE configuration HOWTO

Just a quick note that the Lightweight X Desktop Environment (LXDE) tutorial is available in the main Gentoo documentation repositories, as all the core components have been stabilised. If you are interested in finding out more about LXDE, or installing it on your Gentoo system, please feel free to follow the guide:

The LXDE Configuration HOWTO

If you run into any problems while following the guide, please make a note of it in the respective bug report (281345), and we will work on getting it updated accordingly.

Thanks,
Zach

P.S. Thank you very much to Ben de Groot for helping with the guide, and to Josh Saddler for editing and committing the HOWTO. 🙂

Happy Birthday Noah!

Today is a special day–it is the twelfth birthday of the greatest kid in the entire world! I just wanted to wish you a very Happy Birthday buddy, and I hope that this upcoming year brings you the most happiness, joy, and fortune possible. Even though we haven’t been able to spend time together lately, I’m always thinking about you. I love you Noah, and always will.

Noah's birthday kitten

This kitten made me think of Ms. Cleo. I hope that she is keeping you company, and that she serves as a reminder in the same way that the note you wrote me does. It never leaves my side.

|:| Zach |:|