You've successfully subscribed to Tech news and tutorials for and by DevOps | Kopax
Great! Next, complete checkout for full access to Tech news and tutorials for and by DevOps | Kopax
Welcome back! You've successfully signed in
Success! Your account is fully activated, you now have access to all content.
Generate a printable booklet on Debian

Generate a printable booklet on Debian

> 1 min read

I would like to thanks Nicolas Bernaerts for sharing on his GitHub repository the script to generate a booklet from a PDF file. This script was written for Ubuntu but it also work on Debian.

First of all, download the script and give it execution permission:

wget --header='Accept-Encoding:none' https://raw.githubusercontent.com/NicolasBernaerts/ubuntu-scripts/master/pdf/generate-booklet-install.sh
chmod +x generate-booklet-install.sh

If you use Debian, you must edit the installation script:

sed -i 's/Ubuntu/Debian/g' generate-booklet-install.sh

Run the installation:

./generate-booklet-install.sh

It will add to your file manager an option to generate a booklet. Right click on any PDF file, choose Generate Booklet, then A4 and print with "Long edge stapling".

Your booklet is ready!