pdfcpu

Logo

A PDF processor written in Go.

View the Project on GitHub pdfcpu/pdfcpu


Changelog

Set Page Layout

This command configures the page layout that shall be used when the document is opened.

Have a look at some examples.

Usage

pdfcpu pagelayout set inFile value


Common Flags

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  


Arguments

name description required
inFile PDF input file yes
value page layout mode yes


Page Layouts

name description
SinglePage Display one page at a time (default)
TwoColumnLeft Display the pages in two columns, with odd-numbered pages on the left
TwoColumnRight Display the pages in two columns, with odd-numbered pages on the right
TwoPageLeft Display the pages two at a time, with odd-numbered pages on the left
TwoPageRight Display the pages two at a time, with odd-numbered pages on the right


Examples

Set page layout for test.pdf (case agnostic):

$ pdfcpu pagelayout set test.pdf TwoColumnLeft
$ pdfcpu pagelayout list test.pdf
TwoColumnLeft