11.4 Upon Opening a Document

Page Layout

The -set-page-layout option specifies the page layout to be used when a document is opened in, for instance, Acrobat. The possible (case-sensitive) values are:

SinglePage       Display onepageatatim e
OneColumn        Display the pagesinone column

TwoColumnLeft    Display the pages in tw o colum ns, odd num bered p a�
                 on the left
TwoColumnRight   Display the pagesintwo colum ns,evennum beredp &
                 on the left
TwoPageLeft      (PDF 1.5and above)D isplay thepagestwoata time,od

TwoPageRight     (PDF 1.5and above)Displaythepagestw oatatim e,e&
                 numbered pages ontheleft

For instance:

cpdf -set-page-layout TwoColumnRight in.pdf -o out.pdf

Page Mode

The page mode in a PDF file defines how a viewer should display the document when first opened. The possible (case-sensitive) values are:

UseNone          Neitherdocu mentoutline northum bnailim agesvisible
UseOutlines      Documentoutline (bookm arks)visible
UseThumbs        Thumbnailimagesvisible

FullScreen       Full-screenm ode(nomenu bar,window controls,oran&
                 thingbutthe docum entvisible)
UseOC            (PDF 1.5and above)Op tionalcontentgrouppanelvisible
UseAttachments   (PDF 1.5and above)A ttachm entspanelvisible

For instance:

cpdf -set-page-mode FullScreen in.pdf -o out.pdf

Display Options

-hide-toolbar        Hidethe viewer’s toolbar
-hide-menubar        Documentoutline(bookm arks)visible
-hide-window-ui      Hidethe viewer’s scrollbars

-fit-window          Resizethe docu ment’swindows tofitsizeoffirstpag�
-center-window       Positionthedocumentwindow in thecenter ofthe
                     Displaythedocumenttitleinsteadofthefilename in the
-display-doc-title   titlebar

For instance:

cpdf -hide-toolbar true in.pdf -o out.pdf