In the digital age, PDF documents have become ubiquitous, and the need to extract specific pages from them is a common requirement. While Windows users have several tools at their disposal, Linux users might find the process a bit more involved. This article will guide you through the process of extracting pages from PDFs on Linux, using both command-line tools and GUI applications.

Before we dive into the methods, ensure you have the necessary permissions to extract pages from the PDF. If the PDF is password-protected, you'll need to remove the encryption first. We'll cover this process as well.

Command-Line Tools for PDF Page Extraction
Linux users often prefer command-line tools for their efficiency and flexibility. Several tools can extract PDF pages, with 'pdfpages' and 'pdftk' being the most popular.

First, let's install these tools. For Ubuntu/Debian, use the following commands:
sudo apt-get update
sudo apt-get install pdfpages pdftk
Using pdfpages

'pdfpages' is a LaTeX package that allows you to include pages from other PDF documents. Here's how to use it:
- Create a new LaTeX document (e.g., 'extract.tex') and include the following code, replacing 'input.pdf' with your PDF file and specifying the pages you want to extract:
\documentclass{article} \usepackage{pdfpages} \begin{document} \includepdf[pages={1,3-5,7}]{input.pdf} \end{document}
- Compile the LaTeX document using pdflatex:

pdflatex extract.tex
Using pdftk
'pdftk' is a powerful tool for manipulating PDF documents. Here's how to extract pages using it:
- Open a terminal and navigate to the directory containing your PDF file.
- Run the following command, replacing 'input.pdf' with your PDF file and specifying the pages you want to extract (e.g., '1 3-5 7' for pages 1, 3, 4, 5, and 7):

pdftk input.pdf cat 1 3-5 7 output output.pdf
GUI Applications for PDF Page Extraction
If you prefer a graphical user interface, several applications can extract PDF pages on Linux. We'll focus on two popular ones: 'PDF Split and Merge' and 'Master PDF Editor'.




















PDF Split and Merge
'PDF Split and Merge' is a simple, lightweight application for splitting and merging PDF files. Here's how to use it for page extraction:
- Install the application. For Ubuntu/Debian, use the following command:
sudo apt-get install pdfsam
- Open 'PDF Split and Merge', click on 'Split', select your PDF file, and choose 'Split by pages'.
- Select the pages you want to extract and click 'Split'.
Master PDF Editor
'Master PDF Editor' is a versatile PDF editor with a user-friendly interface. Here's how to extract pages using it:
- Install the application. For Ubuntu/Debian, use the following command:
sudo apt-get install master-pdf-editor
- Open 'Master PDF Editor', click on 'File' > 'Open', and select your PDF file.
- Click on 'Edit' > 'Extract Pages'. A dialog box will appear. Select the pages you want to extract and click 'OK'.
Removing password protection from PDFs is a necessary step before extracting pages. You can use 'qpdf' for this purpose. First, install it using the following command:
sudo apt-get install qpdf
Then, run the following command, replacing 'encrypted.pdf' with your encrypted PDF file and 'unencrypted.pdf' with the desired output file name:
qpdf --decrypt encrypted.pdf unencrypted.pdf
In the world of Linux, there's always more than one way to accomplish a task. The methods outlined above should provide you with the flexibility to extract PDF pages according to your needs. Happy extracting!