OS Manuals

/usr/bin/weasyprint

Executable binaries for weasyprint installed for python3.10

From py3.10-weasyprint-bin 70.0-r1 (enterprise-packages), captured 2026-11-08 by running weasyprint --help (exit 0). permalink

/usr/lib/python3.10/site-packages/weasyprint/text/fonts.py:70: UserWarning: No fonts configured in FontConfig. Expect ugly output.
  warn('No fonts configured in FontConfig. Expect ugly output.')
usage: weasyprint [-h] [-i] [--version] [-s STYLESHEETS] [-a ATTACHMENTS]
                  [--attachment-relationship ATTACHMENT_RELATIONSHIPS]
                  [--pdf-identifier PDF_IDENTIFIER]
                  [--pdf-variant {pdf/a-1b,pdf/a-2b,pdf/a-3b,pdf/a-2u,pdf/a-3u,pdf/a-4u,pdf/a-1a,pdf/a-2a,pdf/a-3a,pdf/a-4e,pdf/a-4f,pdf/ua-1,pdf/ua-2,pdf/x-1a,pdf/x-3,pdf/x-4,pdf/x-5g,debug}]
                  [--pdf-version PDF_VERSION] [--pdf-forms] [--pdf-tags] [--uncompressed-pdf]
                  [--xmp-metadata XMP_METADATA] [--custom-metadata]
                  [--output-intent OUTPUT_INTENT] [-p] [--optimize-images] [-j JPEG_QUALITY]
                  [-D DPI] [--full-fonts] [--hinting] [-c CACHE] [-e ENCODING] [-m MEDIA_TYPE]
                  [-u BASE_URL] [-t TIMEOUT] [--allowed-protocols ALLOWED_PROTOCOLS]
                  [--no-http-redirects] [--fail-on-http-errors] [-v | -d | -q]
                  input output

Render web pages to PDF.

positional arguments:
  input                 URL or filename of the HTML input, or - for stdin
  output                filename where output is written, or - for stdout

options:
  -h, --help            show this help message and exit
  -i, --info            print system information and exit
  --version             print WeasyPrint’s version number and exit

rendering options:
  -s STYLESHEETS, --stylesheet STYLESHEETS
                        URL or filename for a user CSS stylesheet
  -a ATTACHMENTS, --attachment ATTACHMENTS
                        URL or filename of a file to attach to the PDF document
  --attachment-relationship ATTACHMENT_RELATIONSHIPS
                        Relationship of the attachment file to attach to the PDF
  --pdf-identifier PDF_IDENTIFIER
                        PDF file identifier
  --pdf-variant {pdf/a-1b,pdf/a-2b,pdf/a-3b,pdf/a-2u,pdf/a-3u,pdf/a-4u,pdf/a-1a,pdf/a-2a,pdf/a-3a,pdf/a-4e,pdf/a-4f,pdf/ua-1,pdf/ua-2,pdf/x-1a,pdf/x-3,pdf/x-4,pdf/x-5g,debug}
                        PDF variant to generate
  --pdf-version PDF_VERSION
                        PDF version number
  --pdf-forms           include PDF forms
  --pdf-tags            tag PDF for accessibility
  --uncompressed-pdf    do not compress PDF content, mainly for debugging purpose
  --xmp-metadata XMP_METADATA
                        URL or filename of a file to include into the XMP metadata
  --custom-metadata     include custom HTML meta tags in PDF metadata
  --output-intent OUTPUT_INTENT
                        srgb, device-cmyk, or CSS identifier of the output intent color space
  -p, --presentational-hints
                        follow HTML presentational hints
  --optimize-images     optimize size of embedded images with no quality loss
  -j JPEG_QUALITY, --jpeg-quality JPEG_QUALITY
                        JPEG quality between 0 (worst) to 95 (best)
  -D DPI, --dpi DPI     set maximum resolution of images embedded in the PDF
  --full-fonts          embed unmodified font files when possible
  --hinting             keep hinting information in embedded fonts
  -c CACHE, --cache-folder CACHE
                        store cache on disk instead of memory, folder is created if needed and
                        cleaned after the PDF is generated

HTML options:
  -e ENCODING, --encoding ENCODING
                        force the input character encoding
  -m MEDIA_TYPE, --media-type MEDIA_TYPE
                        media type to use for @media, defaults to print
  -u BASE_URL, --base-url 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

URL fetcher options:
  -t TIMEOUT, --timeout TIMEOUT
                        set timeout in seconds for HTTP requests
  --allowed-protocols ALLOWED_PROTOCOLS
                        only authorize comma-separated list of protocols for fetching URLs
  --no-http-redirects   do not follow HTTP redirects
  --fail-on-http-errors
                        abort document rendering on any HTTP error

command-line logging options:
  -v, --verbose         show warnings and information messages
  -d, --debug           show debugging messages
  -q, --quiet           hide logging messages
Options (24)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
-i, --infoprint system information and exithelp
--versionprint WeasyPrint’s version number and exithelp
--attachment-relationship ATTACHMENT_RELATIONSHIPSRelationship of the attachment file to attach to the PDFhelp
--pdf-identifier PDF_IDENTIFIERPDF file identifierhelp
--pdf-variant pdf/a-1bPDF variant to generatehelp
--pdf-version PDF_VERSIONPDF version numberhelp
--pdf-formsinclude PDF formshelp
--pdf-tagstag PDF for accessibilityhelp
--uncompressed-pdfdo not compress PDF content, mainly for debugging purposehelp
--xmp-metadata XMP_METADATAURL or filename of a file to include into the XMP metadatahelp
--custom-metadatainclude custom HTML meta tags in PDF metadatahelp
--output-intent OUTPUT_INTENTsrgb, device-cmyk, or CSS identifier of the output intent color spacehelp
-p, --presentational-hintsfollow HTML presentational hintshelp
--optimize-imagesoptimize size of embedded images with no quality losshelp
-D, --dpi DPIset maximum resolution of images embedded in the PDFhelp
--full-fontsembed unmodified font files when possiblehelp
--hintingkeep hinting information in embedded fontshelp
--allowed-protocols ALLOWED_PROTOCOLSonly authorize comma-separated list of protocols for fetching URLshelp
--no-http-redirectsdo not follow HTTP redirectshelp
--fail-on-http-errorsabort document rendering on any HTTP errorhelp
-v, --verboseshow warnings and information messageshelp
-d, --debugshow debugging messageshelp
-q, --quiethide logging messageshelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.