pdfseparate(1)

πŸ’– pdfseparate(1) β€” General Commands Manual πŸ’–

okay bestie, welcome to the pdfseparate manual, the General Commands Manual edition πŸŽ€βœ¨

🌸 NAME 🌸

pdfseparate - Portable Document Format (PDF) page extractor πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

pdfseparate [options] PDF-file PDF-page-pattern

✨ DESCRIPTION ✨

okay so pdfseparate is the tool that pulls single pages out of a Portable Document Format (PDF) file. literally one page at a time, no cap πŸ“„

it reads the PDF file PDF-file, grabs one or more pages, and writes one PDF file per page to PDF-page-pattern. iconic πŸ‘‘

⚠️ bestie, your PDF-page-pattern needs %d in it (or any variant that respects printf format). %d gets swapped out for the page number, so without it every page would try to save to the same file name πŸ’€

and the PDF you feed it should not be encrypted. encrypted PDFs are a no-go energy here πŸ™…β€β™€οΈπŸ”’

πŸŽ€ OPTIONS πŸŽ€

  • -f number β€” this is your starting point. it sets the first page to extract. if you leave -f out, extraction starts at page 1 πŸ“
  • -l number β€” this is where you stop. it sets the last page to extract. if you leave -l out, it keeps going until the last page 🏁
  • -v β€” prints the copyright and version info. the bio drop, basically πŸ’…
  • -h β€” prints the usage info. -help and --help do the exact same thing, so pick your fave 🫢

🧚 EXAMPLE 🧚

okay, here's the vibe:

pdfseparate sample.pdf sample-%d.pdf

this extracts all pages from sample.pdf. so like, if sample.pdf has 3 pages, it produces:

sample-1.pdf, sample-2.pdf, sample-3.pdf πŸ“‘βœ¨

🌈 AUTHOR 🌈

the pdfseparate software and documentation are copyright 1996-2004 Glyph & Cog, LLC and copyright 2005-2011 The Poppler Developers - http://poppler.freedesktop.org πŸ’œ

πŸ¦‹ SEE ALSO πŸ¦‹

pdfdetach(1), pdffonts(1), pdfimages(1), pdfinfo(1), pdftocairo(1), pdftohtml(1), pdftoppm(1), pdftops(1), pdftotext(1), pdfsig(1), pdfunite(1) 🫢


bestie, that's the whole tea β˜•πŸŒΈ this page was last updated on 15 September 2011, and you're officially a pdfseparate(1) expert now. go slay those PDFs πŸ’–πŸ§šπŸ‘‘

πŸ“¦ where this page comes from