pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

Collect

Usage

pdfcpu collect [-v(erbose)|vv] [-q(uiet)] -pages selectedPages [-upw userpw] [-opw ownerpw] inFile [outFile]


Flags

flag description required
verbose turn on logging no
vv verbose logging no
quiet quiet mode no
pages page selection yes
upw user password no
opw owner password no


Arguments

name description required default
inFile PDF input file yes  
outFile PDF output file no inFile


Examples

Create a custom page collection from in.pdf and write the result to out.pdf. Begin with 3 instances of page 1 then append the rest of the file excluding the last page:

pdfcpu collect -pages 1,1,1,2-l-1 in.pdf out.pdf
writing sequ.pdf ...