pdfcpu

Logo

PDF tooling for Go and the command line.

View the Project on GitHub pdfcpu/pdfcpu


Changelog
Future Directions

List Page Mode

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

Have a look at some examples.

Usage

pdfcpu pagemode list inFile [flags]

Common Flags


Arguments

namedescriptionrequired
inFilePDF input file, use - to read from stdinyes

Page Modes

namedescription
UseNoneNeither document outline nor thumbnail images visible (default)
UseOutlinesDocument outline visible
UseThumbsThumbnail images visible
FullScreenOptional content group panel visible (since PDF 1.5)
UseOCDisplay the pages two at a time, with odd-numbered pages on the right
UseAttachmentsAttachments panel visible (since PDF 1.6)

Examples

List page mode of test1.pdf:

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

List page mode of test2.pdf:

$ pdfcpu pagemode list test2.pdf
FullScreen

List page mode for a streamed PDF:

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