Commit 2d91edb1 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Manual.rst: some notes to wkhtmltopdf options.

parent c700ce0d
......@@ -3516,21 +3516,26 @@ Parameter and (element) sources
* The 'HTML to PDF' will be done via `wkhtmltopdf`.
* All possible options, suitable for `wkhtmltopdf`, can be submitted in the `u:...` or `U:...` element source.
Check https://wkhtmltopdf.org/usage/wkhtmltopdf.txt. Examples see below.
Check https://wkhtmltopdf.org/usage/wkhtmltopdf.txt for all possible options. Be aware that key/value tuple in the
documentation is separated by a space, but to respect the key/value notation of URLs, the key/value tuple in
`u:...` or `U:...` has to be separated by '='. Examples see below.
Most of the other Link-Class attributes can be used to customize the link.
Most of the other Link-Class attributes can be used to customize the link.
Example: ::
# single `file`. Specifying a popup message window text is not necessary, cause a file directly accessed is fast.
SELECT "d:file.pdf|s|t:Download|f:fileadmin/pdf/test.pdf" AS _link
# single `file`, with mode
SELECT "d:file.pdf|m:pdf|s|t:Download|f:fileadmin/pdf/test.pdf" AS _link
# three sources: two pages and one file
SELECT "d:complete.pdf|s|t:Complete PDF|U:id=detail&r=1|U:id=detail2&r=1|f:fileadmin/pdf/test.pdf" AS _link AS _link
# three sources: two pages and one file
SELECT "d:complete.pdf|s|t:Complete PDF|U:id=detail&r=1|U:id=detail2&r=1|f:fileadmin/pdf/test.pdf" AS _link AS _link
# three sources: two pages and one file, the second page will be in landscape and pagesize A3
SELECT "d:complete.pdf|s|t:Complete PDF|U:id=detail&r=1|U:id=detail2&r=1&--orientation=Landscape&--page-size=A3|f:fileadmin/pdf/test.pdf" AS _link AS _link
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment