A PDF processor written in Go.
View the Project on GitHub pdfcpu/pdfcpu
This command lets you extract the following from a PDF file:
pdfcpu extract -m(ode) image|font|content|page|meta [-p(ages) selectedPages] inFile outDir
name | description | required | values |
---|---|---|---|
m(ode) | component to be extracted | yes | image, font, content, page, meta |
p(ages) | page selection | yes |
name | description | values |
---|---|---|
v(erbose) | turn on logging | |
vv | verbose logging | |
q(uiet) | quiet mode | |
u(nit) | display unit | po(ints),in(ches),cm,mm |
c(onf) | config dir | $path, disable |
upw | user password | |
opw | owner password |
name | description | required |
---|---|---|
inFile | PDF input file | yes |
outDir | output directory | yes |