pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions

Reset Page Mode

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

Have a look at some examples.

Usage

pdfcpu pagemode 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 mode for test.pdf:

$ pdfcpu pagemode reset test.pdf
$ pdfcpu pagemode list test.pdf
No page mode set, PDF viewers will default to "UseNone"

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

$ aws s3 cp s3://acme-publishing/ebook-outlines.pdf - \
   | pdfcpu pagemode reset - - \
   | aws s3 cp - s3://acme-publishing/ebook-default-mode.pdf