aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindXSLTPROC.cmake
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 /cmake/modules/FindXSLTPROC.cmake
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 'cmake/modules/FindXSLTPROC.cmake')
-rw-r--r--cmake/modules/FindXSLTPROC.cmake5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmake/modules/FindXSLTPROC.cmake b/cmake/modules/FindXSLTPROC.cmake
index 7ca119e56d..62d71af846 100644
--- a/cmake/modules/FindXSLTPROC.cmake
+++ b/cmake/modules/FindXSLTPROC.cmake
@@ -173,7 +173,7 @@ ENDMACRO(XML2HTML)
# custom_layer_pdf.xsl
# A4 or letter
#)
-MACRO(XML2PDF _target_dep _output _dbk_source _stylesheet _paper)
+MACRO(XML2PDF _target_dep _output _dbk_source _stylesheet)
# We depend on the docbook target to avoid parallel builds.
SET(_dbk_dep ${_target_dep}_docbook)
file(RELATIVE_PATH _img_relative_path ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
@@ -184,12 +184,9 @@ MACRO(XML2PDF _target_dep _output _dbk_source _stylesheet _paper)
${_output}.fo
COMMAND ${XSLTPROC_EXECUTABLE}
--path "${_xsltproc_path}"
- --stringparam paper.type ${_paper}
--stringparam img.src.path ${_img_relative_path}/
--stringparam use.id.as.filename 1
- --stringparam admon.graphics 1
--stringparam admon.graphics.path ${_img_relative_path}/common_graphics/
- --stringparam admon.graphics.extension .svg
--nonet
--output ${_output}.fo
${_stylesheet}