From 2996bb635669bf919a7e21991b6d3c327a5589b6 Mon Sep 17 00:00:00 2001 From: ReachableCEO Date: Wed, 6 Dec 2023 08:49:01 -0600 Subject: [PATCH] pdf formatting experiments --- book.toml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/book.toml b/book.toml index 9e84afb..b423b57 100644 --- a/book.toml +++ b/book.toml @@ -5,3 +5,43 @@ multilingual = false src = "src" title = "TSYS Group Member Handbook" +[output.html] + +[output.pdf] +## Set for auto-retrying if failed to generate PDF. +# trying-times = 1 + +## This backend only support latest Chromium based browsers, not Safari and Firefox currently. +## If needed, please specify the full path. +## If you specify the wrong binary, chances are that there will be a timeout error. +# browser-binary-path = "" + +## Assign the static hosting site url so that relative links outside the book can be fixed. +static_site_url = "https://handbook.turnsys.com" + +## Set the theme to be applied for the generated PDF. +theme = "ayu" + +## Check Chrome Devtools Protocol Docs for the explanation of the following params: +## https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF + +landscape = false +display-header-footer = true +print-background = true +scale = 0.7 +paper-width = 8 +paper-height = 10 +margin-top = 0.5 +margin-bottom = 0.5 +margin-left = 0.5 +margin-right = 0.5 +page-ranges = "" +ignore-invalid-page-ranges = false + +header-template = "

" +footer-template = "

/

" +prefer-css-page-size = true + +[output.pdf-outline] +like-wkhtmltopdf = false +optional = true \ No newline at end of file