aboutsummaryrefslogtreecommitdiffstats
path: root/docbook/custom_layer_pdf.xsl
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-01-23 11:02:16 -0800
committerGerald Combs <gerald@wireshark.org>2018-01-23 22:15:01 +0000
commit787b93fd071e1537b33e8d2f894bbc3cc0ed5595 (patch)
tree8fac31366ccc4a0789e85d5e695fa63e7169d795 /docbook/custom_layer_pdf.xsl
parent6605d844afa3d804da89970ee46845cfa986994b (diff)
Docbook: Generate one PDF paper size.
Generate a single PA4-sized PDF. PA4 is the approximate intersection of A4 and Letter[1]. This gives us one less file to build and distribute. If you're printing out hard copies of the guides this wastes a few pages compared to an A4-sized PDF, but if you're printing out hard copies of the guides you've already made a strong commitment to waste paper. Page counts: Guide Size Pages WSDG A4 203 WSDG Letter 217 WSDG PA4 217 WSUG A4 192 WSUG Letter 204 WSUG PA4 205 [1] https://en.wikipedia.org/wiki/Paper_size#PA4_or_L4 Change-Id: If43d4b19947c77a51b3943a2b329dbab45025d79 Reviewed-on: https://code.wireshark.org/review/25438 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'docbook/custom_layer_pdf.xsl')
-rw-r--r--docbook/custom_layer_pdf.xsl10
1 files changed, 9 insertions, 1 deletions
diff --git a/docbook/custom_layer_pdf.xsl b/docbook/custom_layer_pdf.xsl
index 1a3a7355e7..94a6512309 100644
--- a/docbook/custom_layer_pdf.xsl
+++ b/docbook/custom_layer_pdf.xsl
@@ -5,8 +5,16 @@
<!-- import the main stylesheet -->
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
+<!-- page size -->
+<!-- Create PA4 (210 × 280mm) pages: https://en.wikipedia.org/wiki/Paper_size#PA4_or_L4
+ This is the approximate intersection of A4 (210 × 297mm) and U.S.
+ Letter (216 × 279mm).
+-->
+<xsl:param name="paper.type">PA4</xsl:param>
+<xsl:param name="page.width.portrait">210mm</xsl:param>
+<xsl:param name="page.height.portrait">280mm</xsl:param>
+
<!-- create pdf bookmarks -->
-<!-- Disable this since FOP 0.93 doesn't handle them, yet -->
<xsl:param name="fop1.extensions" select="1"/>
<!-- don't use the draft mode (no loading of image from the web) -->