How to Ubuntu : split pdf into separate pages or multiple files. Install PDFsam on Ubuntu 16.04. PDFsam is a tool to split and merge PDF files in Ubuntu Linux. PDFsam, name for PDF Split and Merge, is an open-source tool that can easily split, merge and rotate PDF files on Ubuntu Linux Systems. Here’s how to install the latest version PDFsam 3.1.0 on Ubuntu 16.04 and other Ubuntu Derivatives.
PDFsam Basic is free of charge and this tutorial is going to show you how to install PDFsam basic on Linux. It’s features are as follows:
- Merge: Merge together multiple PDF documents or subsections of them
- Split: Split a PDF document at the give page numbers
- Split by bookmarks: Split a PDF document at bookmarked pages by specifying a bookmark level
- Alternative Mix: Merge two documents taking pages alternatively in straight or reverse order
- Rotate: Rotate the pages of multiple PDF documents.
- Extract: Extract pages from a PDF document
- Split by Size: Split a PDF document in files of the given size (roughly)
Install PDFsam Basic 3.1.0 on Ubuntu
Before you begin to install PDFsam, you will require a Java Runtime Environment to be installed on your system. Run the command given below to install all the necessary dependencies:
sudo apt install openjdk-8-jre libopenjfx-jni libopenjfx-java openjfx
You will also have to set the JAVA_HOME environment variable. Use the following command to edit the /etc/environment file and set it.
sudo gedit /etc/environment
When the /etc/environment file is open, please add the following line in this file and save it.
- On 64 Bit Ubuntu Systems
JAVA_HOME=”/usr/lib/jvm/java-8-openjdk-amd64/” - On 32 Bit Ubuntu Systems
JAVA_HOME=”/usr/lib/jvm/java-8-openjdk-i386/”
Once you are done with the above step, save and close the file. Now reload the file by running the following command.
source /etc/environment
Now it’s time to download and install the PDFsam basic .deb file on Ubuntu Systems.
sud0 apt-get update
wget https://github.com/torakiki/pdfsam/releases/download/v3.1.0.RELEASE/pdfsam-3.1.0.RELEASE-1_all.deb
sudo dpkg -i pdfsam-3.1.0.RELEASE-1_all.deb
Once installed, open the PDFsam from Ubuntu Dash or from Terminal/commandline:
/opt/pdfsam-basic/bin/pdfsam-basic