pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions

List Page Layout

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

Have a look at some examples.

Usage

pdfcpu pagelayout list inFile [flags]

Common Flags


Arguments

namedescriptionrequired
inFilePDF input file, use - to read from stdinyes

Page Layouts

namedescription
SinglePageDisplay one page at a time (default)
TwoColumnLeftDisplay the pages in two columns, with odd-numbered pages on the left
TwoColumnRightDisplay the pages in two columns, with odd-numbered pages on the right
TwoPageLeftDisplay the pages two at a time, with odd-numbered pages on the left
TwoPageRightDisplay the pages two at a time, with odd-numbered pages on the right

Examples

List page layout of test1.pdf:

$ pdfcpu pagelayout list test1.pdf
No page layout set, PDF viewers will default to "SinglePage"

List page layout of test2.pdf:

$ pdfcpu pagelayout list test2.pdf
TwoPageLeft

List page layout for a streamed PDF:

$ aws s3 cp s3://acme-publishing/ebook.pdf - \
   | pdfcpu pagelayout list -