From f09e643b686eac90b4630d77a422350459bff694 Mon Sep 17 00:00:00 2001 From: parthzz Date: Mon, 2 Oct 2023 12:04:23 +0530 Subject: [PATCH] wkhtmltopdf: add page (#10772) * Create basename.md Adding basename command in tldr for linux * Update basename.md * Update basename.md * Update basename.md * Update basename.md * Update basename.md * Update basename.md * Update basename.md * Update basename.md * Update basename.md * Create wkhtmltopdf.md * Update wkhtmltopdf.md * Update wkhtmltopdf.md * Update wkhtmltopdf.md * Delete pages/linux/basename.md As it is already present in commons folder. * Update wkhtmltopdf.md * Update wkhtmltopdf.md * Update pages/common/wkhtmltopdf.md Co-authored-by: Jack Lin * Update pages/common/wkhtmltopdf.md Co-authored-by: Jack Lin * Update pages/common/wkhtmltopdf.md Co-authored-by: Jack Lin * Update pages/common/wkhtmltopdf.md Co-authored-by: Jack Lin * Update pages/common/wkhtmltopdf.md Co-authored-by: Jack Lin * Update pages/common/wkhtmltopdf.md Co-authored-by: Jack Lin * Update pages/common/wkhtmltopdf.md Co-authored-by: Reinhart Previano Koentjoro * Update pages/common/wkhtmltopdf.md Co-authored-by: Reinhart Previano Koentjoro * Update pages/common/wkhtmltopdf.md Co-authored-by: Reinhart Previano Koentjoro * Update pages/common/wkhtmltopdf.md Co-authored-by: Reinhart Previano Koentjoro * Update pages/common/wkhtmltopdf.md Co-authored-by: Reinhart Previano Koentjoro --------- Co-authored-by: Jack Lin Co-authored-by: Reinhart Previano Koentjoro --- pages/common/wkhtmltopdf.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 pages/common/wkhtmltopdf.md diff --git a/pages/common/wkhtmltopdf.md b/pages/common/wkhtmltopdf.md new file mode 100644 index 0000000000..8cd965daf6 --- /dev/null +++ b/pages/common/wkhtmltopdf.md @@ -0,0 +1,24 @@ +# wkhtmltopdf + +> An open-source command-line tool to convert HTML documents or web pages into PDF files. +> More information: . + +- Convert a HTML document into PDF: + +`wkhtmltopdf {{input.html}} {{output.pdf}}` + +- Specify the PDF page size (please see `PaperSize` of `QPrinter` for supported sizes): + +`wkhtmltopdf --page-size {{A4}} {{input.html}} {{output.pdf}}` + +- Set the PDF page margins: + +`wkhtmltopdf --margin-{{top|bottom|left|right}} {{10mm}} {{input.html}} {{output.pdf}}` + +- Set the PDF page orientation: + +`wkhtmltopdf --orientation {{Landscape|Portrait}} {{input.html}} {{output.pdf}}` + +- Generate a greyscale version of the PDF document: + +`wkhtmltopdf --grayscale {{input.html}} {{output.pdf}}`