next up previous contents index
Next: File Attachments Up: Document Information and Metadata Previous: Metadata   Contents   Index


Page Labels

It is possible to add page labels to a document. These are not the printed on the page, but may be displayed alongside thumbnails or in print dialogue boxes by PDF readers. We use -add-page-labels to do this, by default with decimal arabic numbers (1,2,3...). We can add -label-style to choose what type of labels to add from these kinds:



DecimalArabic 1,2,3,4,5...
LowercaseRoman i,ii,iii,iv,v...
UppercaseRoman I,II,III,IV,V...
LowercaseLetters a,b,c,...,z,aa,bb...
UppercaseLetters A,B,C,...,Z,AA,BB...
NoLabelPrefixOnly No number, but a prefix will be used if defined.


We can use -label-prefix to add a textual prefix to each label. Consider a file with twenty pages and no current page labels (a PDF reader will assume 1,2,3...if there are none). We will add the following page labels:



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

Here are the commands, in order:



By default the labels begin at page number 1 for each range. To override this, we can use -label-startval (we used in the final command), where we want the numbers to begin at zero rather than one.

Page labels may be removed altogether by using -remove-page-labels command.


next up previous contents index
Next: File Attachments Up: Document Information and Metadata Previous: Metadata   Contents   Index
root 2014-11-28