From 7be1217d3ecb57b48111b47e543e793bcc917c18 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Sat, 15 Oct 2022 00:20:22 +0100 Subject: [PATCH] Allow wkhtmltopdf to access current directory Fix for version 0.12.6, see https://github.com/wkhtmltopdf/wkhtmltopdf/issues/4536 --- Doc/Manual/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/Manual/Makefile b/Doc/Manual/Makefile index 440b3153f..0f9fe0e96 100644 --- a/Doc/Manual/Makefile +++ b/Doc/Manual/Makefile @@ -1,7 +1,7 @@ # Makefile for generating the SWIG documentation # # Note that the htmldoc package needs to be installed. wkhtmltopdf patched with qt is also required -# and can be installed from https://wkhtmltopdf.org/downloads.html. +# and the prebuilt binaries can be installed from https://wkhtmltopdf.org/downloads.html. # # The .html files are first processed and updated with chapter numbering and anchor names # are added to the HTML headings using the python scripts. The htmldoc program is then @@ -44,7 +44,7 @@ check: # Courier font to fix - these have been added to style.css. generate: SWIGDocumentation.html wkhtmltopdf --version | grep "with patched qt" || (echo "wkhtmltopdf is not the patched qt version and so cannot be used - download it from https://wkhtmltopdf.org/downloads.html" && false) - wkhtmltopdf --margin-top 20mm --margin-bottom 20mm --margin-left 10mm --margin-right 10mm --header-font-size 6 --footer-font-size 6 --header-spacing 6 --footer-spacing 6 --header-center '[doctitle]' --footer-left '[subsection]' --footer-right '[page]' SWIGDocumentation.html SWIGDocumentation.pdf + wkhtmltopdf --margin-top 20mm --margin-bottom 20mm --margin-left 10mm --margin-right 10mm --header-font-size 6 --footer-font-size 6 --header-spacing 6 --footer-spacing 6 --header-center '[doctitle]' --footer-left '[subsection]' --footer-right '[page]' --allow . SWIGDocumentation.html SWIGDocumentation.pdf SWIGDocumentation.html: swightml.book htmldoc --batch swightml.book || true