From 280e93e7c1f5a5d24033144efb9c68fa903330f6 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Sat, 4 Aug 2012 21:32:52 +0200 Subject: [PATCH] Found way to enable PDF bookmark support with fop. Try to switch to that format for a while. --- Makefile | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/Makefile b/Makefile index e053112..3a1ffcf 100644 --- a/Makefile +++ b/Makefile @@ -39,24 +39,26 @@ epub: freeculture.nb.epub html: freeculture.html freeculture.nb.html %.pdf: %.xml $(IMAGES) $(XSLTS) - $(DBLATEX) $< +# $(DBLATEX) $< # Alternative processing path to dblatex is to use xmlto using fop to # create PDF like this. The PDF output (visual design) is better, but -# the PDF index and footnote handling is worse and images are missing. +# the footnote handling is worse and images are missing. # xmlto --noautosize --stringparam paper.type=A5 \ +# --stringparam fop1.extensions=1 \ # --with-fop pdf $< # Third alternative is to use xsltproc and fop directly, as # recommended by . -# This include images, but the index and footnote handling is +# This include images, but the index refs and footnote handling is # broken. -# xsltproc \ -# --output myfile.fo \ -# --stringparam paper.type A5 \ -# /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl \ -# $< -# fop -fo myfile.fo -pdf $@ + xsltproc \ + --output myfile.fo \ + --stringparam paper.type A5 \ + --stringparam fop1.extensions 1 \ + /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl \ + $< + fop -fo myfile.fo -pdf $@ %.html: %.xml $(IMAGES) xmlto html-nochunks $< -- 2.47.2