Where is pdfjoin (Ubuntu 18.04 and later)?

I am used to using "pdfjoin", a small utility in older Debian-based distributions (8 and older). When I moved to Ubuntu 18.04, I realized that command is no longer available. Where did it go?


Solution 1:

You can get pdfjoin by installing texlive-extra-utils.

sudo apt install texlive-extra-utils

Note that when you install texlive-extra-utils, you ought to download a total of 200+ MB of package, which is may not what you want.

If you only plan to process pdf file, it is more convenient to install the right package— for that I recommend pdftk as it's one of the most popular tools and easy to use, proven to work well in my 18.04 system (which is what I use now !)

To install you can use script created by fellow member @Abu Bua.

wget -P /tmp https://gist.githubusercontent.com/markziemann/c48f74eee3f381308e1482852242a493/raw/4f5767d92e9d8fbd89981e47aa940ea7f2526324/pdftk_installer.sh
chmod 755 /tmp/pdftk_installer.sh
/tmp/pdftk_installer.sh

Taken from https://askubuntu.com/a/1046476/253251

Solution 2:

pdfjoin was part of PDFjam until version 3.02.

It was a simple wrapper script, that still can be found in the pdfjam-extras repository: https://github.com/DavidFirth/pdfjam-extras/blob/master/bin/pdfjoin

To still use it either download the wrapper script and place it in /usr/local/bin or simply add an alias:

$ alias pdfjoin="pdfjam --fitpaper true --rotateoversize true --suffix joined "

given you have pdfjam installed (for instructions see wiki), you can continue to use pdfjoin as you used to in Debian.