diff --git a/cpdfcommand.ml b/cpdfcommand.ml index e9bf52a..2a2ab44 100644 --- a/cpdfcommand.ml +++ b/cpdfcommand.ml @@ -2587,7 +2587,7 @@ and specs = ("-set-page-mode", Arg.String setpagemode, " Set page mode upon document opening"); - ("-set-non-full-page-mode", + ("-set-non-full-screen-page-mode", Arg.String setnonfullscreenpagemode, " Set non full screen page mode if page mode is FullScreen"); ("-open-at-page", @@ -2595,10 +2595,10 @@ and specs = " Set initial page"); ("-open-at-page-fit", Arg.String setopenatpagefit, - " Set inital page, scaling to fit"); + " Set initial page, scaling to fit"); ("-open-at-page-custom", Arg.String setopenatpagecustom, - " Set inital page, with custom scaling"); + " Set initial page, with custom scaling"); ("-set-metadata", Arg.String setmetadata, " Set metadata to the contents of a file"); diff --git a/cpdfmanual.pdf b/cpdfmanual.pdf index 783a78f..4b9dd3f 100644 Binary files a/cpdfmanual.pdf and b/cpdfmanual.pdf differ diff --git a/cpdfmanual.tex b/cpdfmanual.tex index e8228d9..677eec8 100644 --- a/cpdfmanual.tex +++ b/cpdfmanual.tex @@ -1956,6 +1956,7 @@ See chapter 15 for more details of cpdf's JSON formatting. Bookmark text in JSON \subsection{Destinations} +\label{destinations} The destination is an extended description of where the bookmark should point to (i.e it can be more detailed than just giving the page). For example, it may point to a section heading halfway down a page. Here are the possibilities: \medskip @@ -2927,7 +2928,8 @@ given page range. \small\noindent\verb!cpdf -set-page-layout in.pdf -o out.pdf! \vspace{1.5mm} - \small\noindent\verb!cpdf -set-page-mode in.pdf -o out.pdf! + \small\noindent\verb!cpdf -set-page-mode in.pdf -o out.pdf!\\ + \small\noindent\verb!cpdf -set-non-full-screen-page-mode in.pdf -o out.pdf! \vspace{1.5mm} \small\noindent\verb!cpdf -hide-toolbar in.pdf -o out.pdf!\\ @@ -2939,7 +2941,8 @@ given page range. \vspace{1.5mm} \small\noindent\verb!cpdf -open-at-page in.pdf -o out.pdf!\\ - \noindent\verb!cpdf -open-at-page-fit in.pdf -o out.pdf! + \noindent\verb!cpdf -open-at-page-fit in.pdf -o out.pdf!\\ + \noindent\verb!cpdf -open-at-page-custom in.pdf -o out.pdf! \vspace{1.5mm} \small\noindent\verb!cpdf -set-metadata in.pdf -o out.pdf! @@ -3151,6 +3154,13 @@ document when first opened. The possible (case-sensitive) values are: \small\verb!cpdf -set-page-mode FullScreen in.pdf -o out.pdf! \end{framed} + \noindent If full screen mode is selected for document opening, we can also set a mode to be used when the user exits from full-screen mode: + \begin{framed} + \small\verb!cpdf -set-non-full-screen-page-mode UseAttachments in.pdf -o out.pdf! + \end{framed} + + \noindent As would be expected, \texttt{FullScreen} is not allowed here. + \subsection{Display Options} \vspace{2mm} {\small\begin{tabular}{ll} @@ -3179,6 +3189,12 @@ document when first opened. The possible (case-sensitive) values are: \noindent (Here, we used \texttt{end} to open at the last page. Any page specification describing a single page is ok here.) +Alternatively, we may specify a full destination, of the kind described on page \pageref{destinations}: + \begin{framed} + \small\verb!cpdf -open-at-page-custom "[3 /FitR 100 100 300 300]" in.pdf -o out.pdf! + \end{framed} + + \section{Page Labels} \index{page!labels}