Finished page label work.

This commit is contained in:
John Whitington 2014-09-19 13:58:20 +01:00
parent fc8ef116ce
commit 3b9b91e5f3
4 changed files with 7 additions and 1 deletions

Binary file not shown.

View File

@ -2782,6 +2782,7 @@ let go () =
input file, and we're just extracting pages, might we use a input file, and we're just extracting pages, might we use a
lazy read? *) lazy read? *)
(*Pdfwrite.debug_whole_pdf pdf;*) (*Pdfwrite.debug_whole_pdf pdf;*)
flprint "Just one file, we'll use Pdfpage.pdf_of_pages...\n";
if hd ranges <> "all" || hd rotations <> Pdfmerge.DNR || !Pdfpage.flat_pagetrees then if hd ranges <> "all" || hd rotations <> Pdfmerge.DNR || !Pdfpage.flat_pagetrees then
let pdf = if hd rotations <> Pdfmerge.DNR then prerotate_pdf pdf (hd rotations) else pdf in let pdf = if hd rotations <> Pdfmerge.DNR then prerotate_pdf pdf (hd rotations) else pdf in
let range = parse_pagespec pdf (hd ranges) in let range = parse_pagespec pdf (hd ranges) in

Binary file not shown.

View File

@ -1568,7 +1568,10 @@ given page range.
\small\noindent\verb!cpdf -add-page-labels in.pdf -o out.pdf!\\ \small\noindent\verb!cpdf -add-page-labels in.pdf -o out.pdf!\\
\noindent\verb! [-label-style <style>]!\\ \noindent\verb! [-label-style <style>]!\\
\noindent\verb! [-label-prefix <string>]!\\ \noindent\verb! [-label-prefix <string>]!\\
\noindent\verb! [-label-startval <integer>]! \noindent\verb! [-label-startval <integer>]!\\
\vspace{1.5mm}
\small\noindent\verb!cpdf -remove-page-labels in.pdf -o out.pdf!
\end{framed} \end{framed}
\section{Listing Fonts} \section{Listing Fonts}
\index{fonts!listing} \index{fonts!listing}
@ -1807,6 +1810,8 @@ i, ii, iii, iv, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, A-0, A-1, A-2, A-3, A-4, A-5
\noindent By default the labels begin at page number 1 for each range. To override this, we can use \texttt{-label-startval} (we used $0$ in the final command), where we want the numbers to begin at zero rather than one. \noindent By default the labels begin at page number 1 for each range. To override this, we can use \texttt{-label-startval} (we used $0$ in the final command), where we want the numbers to begin at zero rather than one.
Page labels may be removed altogether by using \texttt{-remove-page-labels} command.
\chapter{File Attachments} \chapter{File Attachments}
\index{attachments} \index{attachments}
\begin{framed} \begin{framed}