A PDF processor written in Go.
View the Project on GitHub pdfcpu/pdfcpu
Rotate selected pages of inFile
clockwise by a multiple of 90 degrees. Have a look at some examples.
pdfcpu rotate [-p(ages) selectedPages] inFile rotation [outFile]
name | description | required |
---|---|---|
p(ages) | selected pages | no |
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 | values |
---|---|---|---|
inFile | PDF input file | yes | |
rotation | rotation angle | yes | -270, -180, -90, 90, 180, 270 |
outFile | PDF output file | no |
Rotate all pages of a PDF file clockwise by 90 degrees:
$ pdfcpu rotate test.pdf 90
Rotate the first two pages counter clockwise by 90 degrees:
$ pdfcpu rotate -pages 1-2 test.pdf -90