.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "WEASYPRINT" "1" "May 06, 2024" "62.1" "WeasyPrint" .SH NAME weasyprint \- The Awesome Document Factory .INDENT 0.0 .TP .B weasyprint.__main__.main(argv=sys.argv) The \fBweasyprint\fP program takes at least two arguments: .INDENT 7.0 .INDENT 3.5 .INDENT 0.0 .INDENT 3.5 .sp .EX weasyprint [options] .EE .UNINDENT .UNINDENT .UNINDENT .UNINDENT .INDENT 7.0 .TP .B input URL or filename of the HTML input, or \- for stdin. .UNINDENT .INDENT 7.0 .TP .B output Filename where output is written, or \- for stdout. .UNINDENT .INDENT 7.0 .TP .B \-e , \-\-encoding Force the input character encoding. .UNINDENT .INDENT 7.0 .TP .B \-s , \-\-stylesheet URL or filename for a user CSS stylesheet. .sp This option can be passed multiple times. .UNINDENT .INDENT 7.0 .TP .B \-m , \-\-media\-type Media type to use for @media, defaults to print. .UNINDENT .INDENT 7.0 .TP .B \-u , \-\-base\-url Base for relative URLs in the HTML input, defaults to the input’s own filename or URL or the current directory for stdin. .UNINDENT .INDENT 7.0 .TP .B \-a , \-\-attachment URL or filename of a file to attach to the PDF document. .sp This option can be passed multiple times. .UNINDENT .INDENT 7.0 .TP .B \-\-pdf\-identifier PDF file identifier. .UNINDENT .INDENT 7.0 .TP .B \-\-pdf\-variant PDF variant to generate. .sp Possible choices: pdf/a\-1b, pdf/a\-2b, pdf/a\-3b, pdf/a\-4b, pdf/a\-2u, pdf/a\-3u, pdf/a\-4u, pdf/ua\-1. .UNINDENT .INDENT 7.0 .TP .B \-\-pdf\-version PDF version number. .UNINDENT .INDENT 7.0 .TP .B \-\-pdf\-forms Include PDF forms. .UNINDENT .INDENT 7.0 .TP .B \-\-uncompressed\-pdf Do not compress PDF content, mainly for debugging purpose. .UNINDENT .INDENT 7.0 .TP .B \-\-custom\-metadata Include custom HTML meta tags in PDF metadata. .UNINDENT .INDENT 7.0 .TP .B \-p, \-\-presentational\-hints Follow HTML presentational hints. .UNINDENT .INDENT 7.0 .TP .B \-\-optimize\-images Optimize size of embedded images with no quality loss. .UNINDENT .INDENT 7.0 .TP .B \-j , \-\-jpeg\-quality JPEG quality between 0 (worst) to 95 (best). .UNINDENT .INDENT 7.0 .TP .B \-\-full\-fonts Embed unmodified font files when possible. .UNINDENT .INDENT 7.0 .TP .B \-\-hinting Keep hinting information in embedded fonts. .UNINDENT .INDENT 7.0 .TP .B \-c , \-\-cache\-folder Store cache on disk instead of memory, folder is created if needed and cleaned after the PDF is generated. .UNINDENT .INDENT 7.0 .TP .B \-D , \-\-dpi Set maximum resolution of images embedded in the PDF. .UNINDENT .INDENT 7.0 .TP .B \-v, \-\-verbose Show warnings and information messages. .UNINDENT .INDENT 7.0 .TP .B \-d, \-\-debug Show debugging messages. .UNINDENT .INDENT 7.0 .TP .B \-q, \-\-quiet Hide logging messages. .UNINDENT .INDENT 7.0 .TP .B \-\-version Print WeasyPrint’s version number and exit. .UNINDENT .INDENT 7.0 .TP .B \-i, \-\-info Print system information and exit. .UNINDENT .INDENT 7.0 .TP .B \-t , \-\-timeout Set timeout in seconds for HTTP requests. .UNINDENT .INDENT 7.0 .TP .B \-h, \-\-help Show this help message and exit. .UNINDENT .UNINDENT .sp \fBThe Awesome Document Factory\fP .sp WeasyPrint is a smart solution helping web developers to create PDF documents. It turns simple HTML pages into gorgeous statistical reports, invoices, tickets… .sp From a technical point of view, WeasyPrint is a visual rendering engine for HTML and CSS that can export to PDF. It aims to support web standards for printing. WeasyPrint is free software made available under a BSD license. .sp It is based on various libraries but \fInot\fP on a full rendering engine like WebKit or Gecko. The CSS layout engine is written in Python, designed for pagination, and meant to be easy to hack on. .INDENT 0.0 .IP \(bu 2 Free software: BSD license .IP \(bu 2 For Python 3.9+, tested on CPython and PyPy .IP \(bu 2 Documentation: \fI\%https://doc.courtbouillon.org/weasyprint\fP .IP \(bu 2 Examples: \fI\%https://weasyprint.org/#samples\fP .IP \(bu 2 Changelog: \fI\%https://github.com/Kozea/WeasyPrint/releases\fP .IP \(bu 2 Code, issues, tests: \fI\%https://github.com/Kozea/WeasyPrint\fP .IP \(bu 2 Code of conduct: \fI\%https://www.courtbouillon.org/code\-of\-conduct\fP .IP \(bu 2 Professional support: \fI\%https://www.courtbouillon.org\fP .IP \(bu 2 Donation: \fI\%https://opencollective.com/courtbouillon\fP .UNINDENT .sp WeasyPrint has been created and developed by Kozea (\fI\%https://kozea.fr/\fP). Professional support, maintenance and community management is provided by CourtBouillon (\fI\%https://www.courtbouillon.org/\fP). .sp Copyrights are retained by their contributors, no copyright assignment is required to contribute to WeasyPrint. Unless explicitly stated otherwise, any contribution intentionally submitted for inclusion is licensed under the BSD 3\-clause license, without any additional terms or conditions. For full authorship information, see the version control history. .SH AUTHOR Simon Sapin and contributors .SH COPYRIGHT Simon Sapin and contributors .\" Generated by docutils manpage writer. .