The awesome document factory
BSD-3-CLAUSE License
Read about this release on our blog.
Backers and sponsors:
This is a security update.
We strongly recommend to upgrade WeasyPrint to the latest version if you use WeasyPrint 61.0 or 61.1. Older versions are not impacted.
Released on 2024-02-26.
Read about this release on our blog.
DocumentMetadata.attachments
is now a list of Attachment
objects, not(url, description)
tuples.Published by liZe about 1 year ago
Published by liZe about 1 year ago
Read about this release on our blog.
This version also includes the changes from unstable b1 version listed below.
Read about this release on our blog.
This version is experimental, don't use it in production. If you find bugs, please report them!
Read about this release on our blog.
The --optimize-size
option and its short equivalent -O
have been deprecated. To activate or deactivate different size optimizations, you can now use:
--uncompressed-pdf
,--optimize-images
,--full-fonts
,--hinting
,--dpi <resolution>
, and--jpeg-quality <quality>
.A new --cache-folder <folder>
option has been added to store temporary data in the given folder on the disk instead of keeping them in memory.
Global rendering options are now given in **options
instead of dedicated parameters, with slightly different names. It means that the signature of the HTML.render()
, HTML.write_pdf()
and Document.write_pdf()
has changed. Here are the steps to port your Python code to v59.0:
Use named parameters for these functions, not positioned parameters.
Rename some the parameters:
image_cache
becomes cache
(see below),identifier
becomes pdf_identifier
,variant
becomes pdf_variant
,version
becomes pdf_version
,forms
becomes pdf_forms
,The optimize_size
parameter of HTML.render()
, HTML.write_pdf()
and Document()
has been removed and will be ignored. You can now use the uncompressed_pdf
, full_fonts
, hinting
, dpi
and jpeg_quality
parameters that are included in **options
.
The cache
parameter can be included in **options
to replace image_cache
. If it is a dictionary, this dictionary will be used to store temporary data in memory, and can be even shared between multiple documents. If it’s a folder Path or string, WeasyPrint stores temporary data in the given temporary folder on disk instead of keeping them in memory.
This version also includes the changes from unstable b1 version listed below.
Read about this release on our blog.
This version is experimental, don't use it in production. If you find bugs, please report them!
Read about this release on our blog.
@font-face
declarationsread_text
function when files
is availableThis version also includes the changes from unstable b1 version listed below.
Read about this release on our blog.
This version is experimental, don't use it in production. If you find bugs, please report them!
Read about this release on our blog.
This version also includes the changes from unstable b1 version listed below.
Read about this release on our blog.
This version is experimental, don't use it in production. If you find bugs, please report them!
Read about this release on our blog.
This version also includes the changes from unstable b1 version listed below.
Read about this release on our blog.