All apps/pdfcpu

pdfcpu

pdfcpu

PDF processor written in Go.

Runs as pdfcpu|macOS, Linux, Windows|pdfcpu.io

Command form

ai-draft · 2 tasks · 8 fields

Merge PDF files or split one into several. Other pdfcpu commands are not covered.

Opens the form; the finished command lands at your prompt, unrun
otty gui pdfcpu

pdfcpu merge

Merge PDFs

Concatenate two or more PDFs into one output file.

Merge PDFsExample values, fixed in this page — nothing here reaches a terminal
Basic
Output PDF*
file
Input PDFs*
file
TasksEach one presets the form for one job
Merge files
out_filein_files
ParametersOnly these flags are editable in the form
Output PDF
path · positional 0
Input PDFs
path · positional 1 · repeatable
Merge mode
enum
--modecreateappendzip
Bookmark mode
enum
--bookmark-modewrappreserve

pdfcpu split

Split a PDF

Write pieces of one PDF into an output directory.

Split a PDFExample values, fixed in this page — nothing here reaches a terminal
Basic
Input PDF*
file
Output directory*
directory
Split mode
3 choicesenum
Span or page numbers
string
TasksEach one presets the form for one job
Split by span
in_fileout_dirmodespan_or_pages
ParametersOnly these flags are editable in the form
Input PDF
path · positional 0
Output directory
path · positional 1
Split mode
enum
-mspanbookmarkpage
Span or page numbers
One span in span mode, or page numbers in page mode.
string · positional 2 · repeatable
SourcesEvery flag above is checked against these
merge-doc
pdfcpu merge outFile inFile... [flags] outFilePDF output file, use - to write to stdout inFile…at least 2 PDF input files subject to concatenation, use - for one stdin input in create mode $ pdfcpu merge --bookmark-mode preserve book.pdf chapter1.pdf chapter2.pdf $ pdfcpu merge --mode append -divider out.pdf in1.pdf in2.pdf in3.pdf $ pdfcpu merge --mode zip…
manual2026-10-27

pdfcpu.io

split-doc
pdfcpu split inFile outDir [ span | pageNr... ] [flags] $ pdfcpu split test.pdf out -m bookmark $ pdfcpu split -m page test.pdf out 2 4 10 m(ode)nospanSplit into PDF files with span pages each (default). bookmarkSplit into PDF files representing sections defined by existing bookmarks. pageSplit before specific page number(s).
manual2026-10-27

pdfcpu.io

Before it fills your prompt, Otty checks the installed pdfcpu against its version. A form that does not match your version is not offered.