pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions

Reset Page Layout

This command resets the configured page layout for a PDF file.

Have a look at some examples.

Usage

pdfcpu pagelayout reset inFile [ outFile ] [flags]

Common Flags


Arguments

namedescriptionrequired
inFilePDF input file, use - to read from stdinyes
outFilePDF output file, use - to write to stdoutno

Examples

Reset page layout for test.pdf:

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

Reset page layout while reading and writing the PDF through pipes:

$ aws s3 cp s3://acme-publishing/ebook-spreads.pdf - \
   | pdfcpu pagelayout reset - - \
   | aws s3 cp - s3://acme-publishing/ebook-default-layout.pdf