A PDF processor written in Go.
View the Project on GitHub pdfcpu/pdfcpu
Create a custom PDF page sequence.
Arrange your pages in any order you like.
Pages may appear multiple times.
Have a look at some examples.
pdfcpu collect -p(ages) selectedPages inFile [outFile]
name | description | required |
---|---|---|
p(ages) | selected pages | yes |
name | description | values |
---|---|---|
v(erbose) | turn on logging | |
vv | verbose logging | |
q(uiet) | quiet mode | |
-o(ffline) | disable http traffic | |
c(onf) | config dir | $path, disable |
opw | owner password | |
upw | user password | |
u(nit) | display unit | po(ints),in(ches),cm,mm |
name | description | required | default |
---|---|---|---|
inFile | PDF input file | yes | |
outFile | PDF output file | no | inFile |
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 ...