summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2006-12-10 22:11:35 +0000
committerBen Harris <bjh21@bjh21.me.uk>2006-12-10 22:11:35 +0000
commit19ae561fd24807b29806a65eb974f8826f7cbbf9 (patch)
tree72e08a5634b06d28e10a9670b6e7cdc881905624
parent705cc5f154d89d9c3009e30b573c987bc38e775e (diff)
downloadhalibut-19ae561fd24807b29806a65eb974f8826f7cbbf9.zip
halibut-19ae561fd24807b29806a65eb974f8826f7cbbf9.tar.gz
halibut-19ae561fd24807b29806a65eb974f8826f7cbbf9.tar.bz2
halibut-19ae561fd24807b29806a65eb974f8826f7cbbf9.tar.xz
Explicitly set the title via pdfmark, since that allows us to put
in Unicode, which we can't (reliably) in %%Title. [originally from svn r6987]
-rw-r--r--bk_ps.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bk_ps.c b/bk_ps.c
index 41b70d2..4e47767 100644
--- a/bk_ps.c
+++ b/bk_ps.c
@@ -164,6 +164,11 @@ void ps_backend(paragraph *sourceform, keywordlist *keywords,
int titlelen, count, i;
title = pdf_outline_convert(oe->pdata->outline_title, &titlelen);
+ if (oe->level == 0) {
+ fprintf(fp, " [/Title");
+ ps_string_len(fp, title, titlelen);
+ fprintf(fp, "/DOCINFO pdfmark\n");
+ }
count = 0;
for (i = 1; i < noe && oe[i].level > oe->level; i++)