.\" 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" "Jan 15, 2023" "57.2" "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 .sp .nf .ft C weasyprint [options] .ft P .fi .UNINDENT .UNINDENT .sp The input is a filename or URL to an HTML document, or \fB\-\fP to read HTML from stdin. The output is a filename, or \fB\-\fP to write to stdout. .sp Options can be mixed anywhere before, between, or after the input and output. .INDENT 7.0 .TP .B \-e , \-\-encoding Force the input character encoding (e.g. \fB\-e utf\-8\fP). .UNINDENT .INDENT 7.0 .TP .B \-s , \-\-stylesheet Filename or URL of a user cascading stylesheet (see \fI\%Stylesheet Origins\fP) to add to the document (e.g. \fB\-s print.css\fP). Multiple stylesheets are allowed. .UNINDENT .INDENT 7.0 .TP .B \-m , \-\-media\-type Set the media type to use for \fB@media\fP\&. Defaults to \fBprint\fP\&. .UNINDENT .INDENT 7.0 .TP .B \-u , \-\-base\-url Set the base for relative URLs in the HTML input. Defaults to the input’s own URL, or the current directory for stdin. .UNINDENT .INDENT 7.0 .TP .B \-a , \-\-attachment Adds an attachment to the document. The attachment is included in the PDF output. This option can be used multiple times. .UNINDENT .INDENT 7.0 .TP .B \-\-pdf\-identifier PDF file identifier, used to check whether two different files are two different versions of the same original document. .UNINDENT .INDENT 7.0 .TP .B \-\-pdf\-variant PDF variant to generate (e.g. \fB\-\-pdf\-variant pdf/a\-3b\fP). .UNINDENT .INDENT 7.0 .TP .B \-\-pdf\-version PDF version number (default is 1.7). .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 \fI\%HTML presentational hints\fP\&. .UNINDENT .INDENT 7.0 .TP .B \-O , \-\-optimize\-size Optimize the size of generated documents. Supported types are \fBimages\fP, \fBfonts\fP, \fBall\fP and \fBnone\fP\&. This option can be used multiple times, \fBall\fP adds all allowed values, \fBnone\fP removes all previously set values. .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 Show the version number. Other options and arguments are ignored. .UNINDENT .INDENT 7.0 .TP .B \-h, \-\-help Show the command\-line usage. Other options and arguments are ignored. .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.7+, 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. .