The Astro logo on a dark background with a purple gradient arc.

How to: Split a PDF in Linux

The Problem

I don’t want to use an online PDF splitter, because I don’t feel comfortable uploading my personal information to websites like that, and I’m sure many of you don’t feel comfortable with that either. So, what if I told you there was a better way?

The Solution

You can install a simple package known as pdftk onto Linux (I’m using Ubuntu 22.04.01 LTS) to easily split up a PDF file.

Install the package

$ sudo apt-get update

$ sudo apt-get install pdftk

$ cd ~/your-folder

Use the pdftk module to make a new PDF with just your selected page

$ pdftk original-resume.pdf cat 1 output new-resume.pdf

This command will take the original resume, and copy the first page into a new file called new-resume.pdf

I hope that you found this useful!

profile picture

"I'll never struggle with clunky paid PDF splitters again."

# linux

# ubuntu

# pdf

# terminal