3 # $Cambridge: exim/doc/doc-docbook/PageLabelPDF,v 1.1 2006/02/01 11:01:01 ph10 Exp $
5 # Program to add page label information to the PDF output file. I have not
6 # found a way of automatically discovering the number of frontmatter pages
7 # in the document. It is therefore screwed in as 12 in the next statement.
9 $add = "/PageLabels << /Nums [ 0 << /S /r >>\n" .
20 $before += length($_);
21 last if $_ =~ "^<< /Type /Catalog";
29 last if $_ =~ /^xref$/;
38 printf "%010d $rest\n", $was + (($was > $before)? $extra : 0);
46 print $1 + $extra, "\n";