LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pdfseparate

splits a PDF into individual pages

TLDR

Extract all pages
$ pdfseparate [document.pdf] [output_%d.pdf]
copy
Extract specific page range
$ pdfseparate -f [1] -l [10] [document.pdf] [output_%d.pdf]
copy
Extract single page
$ pdfseparate -f [5] -l [5] [document.pdf] [page5.pdf]
copy

SYNOPSIS

pdfseparate [-f first] [-l last] [options] input.pdf outputpattern_

DESCRIPTION

pdfseparate splits a PDF into individual pages. Each page becomes a separate PDF file.The output pattern must contain %d (or variants like %03d) which is replaced with the page number. This enables organized naming of output files.Page range options extract subsets of the document. Combined with specific page numbers, single pages can be extracted.The resulting files are standalone PDFs containing one page each. They can be recombined using pdfunite or used individually.All page content is preserved including annotations, links, and embedded resources.

PARAMETERS

-f PAGE

First page to extract.
-l PAGE
Last page to extract.
-v
Print version.
-h
Print help.

OUTPUT PATTERN

The output pattern uses %d for page numbers:- `page%d.pdf` produces page1.pdf, page_2.pdf, etc.- `output-%03d.pdf` produces output-001.pdf, output-002.pdf, etc.

INSTALL

sudo apt install poppler-utils
copy
sudo dnf install poppler-utils
copy
sudo apk add poppler-utils
copy
nix profile install nixpkgs#poppler-utils
copy

CAVEATS

Cannot select non-contiguous pages. Each page is a separate file (no multi-page extraction to single file). Encrypted PDFs need password.

HISTORY

pdfseparate is part of poppler-utils, the open-source PDF utilities derived from Xpdf. It provides simple page extraction without complex dependencies.

SEE ALSO

pdfunite(1), pdftk(1), qpdf(1), pdfinfo(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid