summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2006-11-18 21:26:04 +0000
committerBen Harris <bjh21@bjh21.me.uk>2006-11-18 21:26:04 +0000
commit35e54306995fd5e21e16ee68e815393845522c91 (patch)
tree239d13d5eca9c9018887d318ff9589b9f264383a
parent2b03a64dbede7b625dd2cabe1fcc2c5a4036b188 (diff)
downloadhalibut-35e54306995fd5e21e16ee68e815393845522c91.zip
halibut-35e54306995fd5e21e16ee68e815393845522c91.tar.gz
halibut-35e54306995fd5e21e16ee68e815393845522c91.tar.bz2
halibut-35e54306995fd5e21e16ee68e815393845522c91.tar.xz
Emit a PageLabels dictionary to make it clear what page numbering scheme
Halibut uses. [originally from svn r6912]
-rw-r--r--bk_pdf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bk_pdf.c b/bk_pdf.c
index c4a65be..6ce0e5a 100644
--- a/bk_pdf.c
+++ b/bk_pdf.c
@@ -112,7 +112,7 @@ void pdf_backend(paragraph *sourceform, keywordlist *keywords,
/*
* The catalogue just contains references to the outlines and
- * pages objects.
+ * pages objects, and the pagelabels dictionary.
*/
objtext(cat, "<<\n/Type /Catalog");
if (outlines) {
@@ -121,6 +121,8 @@ void pdf_backend(paragraph *sourceform, keywordlist *keywords,
}
objtext(cat, "\n/Pages ");
objref(cat, pages);
+ /* Halibut just numbers pages 1, 2, 3, ... */
+ objtext(cat, "\n/PageLabels<</Nums[0<</S/D>>]>>");
if (outlines)
objtext(cat, "\n/PageMode /UseOutlines");
objtext(cat, "\n>>\n");