Weasyprint

Latest version: v65.0

Safety actively analyzes 723683 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 17

60.2

------------

Released on 2023-12-11.

Bug fixes:

* `1982 <https://github.com/Kozea/WeasyPrint/issues/1982>`_:
Fix SVG markers size, position and drawing
* `23cfc775 <https://github.com/Kozea/WeasyPrint/commit/23cfc775>`_:
Draw background behind absolutely positioned replaced boxes
* `fe2f0c69 <https://github.com/Kozea/WeasyPrint/commit/fe2f0c69>`_:
Don’t crash with bitmap fonts with no "glyf" table
* `14605225 <https://github.com/Kozea/WeasyPrint/commit/14605225>`_:
Improve SVG text-anchor attribute

Contributors:

* Guillaume Ayoub

Backers and sponsors:

* Spacinov
* Kobalt
* Grip Angebotssoftware
* Manuel Barkhau
* SimonSoft
* Menutech
* KontextWork
* NCC Group
* René Fritz
* Nicola Auchmuty
* Syslifters
* Hammerbacher
* TrainingSparkle
* Daniel Kucharski
* Healthchecks.io
* Yanal-Yves Fargialla
* WakaTime
* Paheko
* Synapsium
* DocRaptor

60.1

------------

Released on 2023-09-29.

Bug fixes:

* `1973 <https://github.com/Kozea/WeasyPrint/issues/1973>`_:
Fix crash caused by wrong UTF-8 indices

Contributors:

* Guillaume Ayoub

Backers and sponsors:

* Spacinov
* Kobalt
* Grip Angebotssoftware
* Manuel Barkhau
* SimonSoft
* Menutech
* KontextWork
* NCC Group
* René Fritz
* Nicola Auchmuty
* Syslifters
* Hammerbacher
* TrainingSparkle
* Daniel Kucharski
* Healthchecks.io
* Yanal-Yves Fargialla
* WakaTime
* Paheko
* Synapsium
* DocRaptor

60.0

------------

Released on 2023-09-25.

New features:

* `1903 <https://github.com/Kozea/WeasyPrint/issues/1903>`_:
Print form fields
* `1922 <https://github.com/Kozea/WeasyPrint/pull/1922>`_:
Add support for textLength and lengthAdjust in SVG text elements
* `1965 <https://github.com/Kozea/WeasyPrint/issues/1965>`_:
Handle <wbr> tag
* `1970 <https://github.com/Kozea/WeasyPrint/pull/1970>`_:
Handle y offset of glyphs
* `1909 <https://github.com/Kozea/WeasyPrint/issues/1909>`_:
Add a --timeout option

Bug fixes:

* `1887 <https://github.com/Kozea/WeasyPrint/pull/1887>`_:
Fix footnote-call displayed incorrectly for some fonts
* `1890 <https://github.com/Kozea/WeasyPrint/pull/1890>`_:
Fix page-margin boxes layout algorithm
* `1908 <https://github.com/Kozea/WeasyPrint/pull/1908>`_:
Fix IndexError when rendering PDF version 1.4
* `1906 <https://github.com/Kozea/WeasyPrint/issues/1906>`_:
Apply text transformations to first-letter pseudo elements
* `1915 <https://github.com/Kozea/WeasyPrint/pull/1915>`_:
Avoid footnote appearing before its call
* `1934 <https://github.com/Kozea/WeasyPrint/pull/1934>`_:
Fix balance before "column-span: all"
* `1935 <https://github.com/Kozea/WeasyPrint/issues/1935>`_:
Only draw required glyph with OpenType-SVG fonts
* `1595 <https://github.com/Kozea/WeasyPrint/issues/1595>`_:
Don’t draw clipPath when defined after reference
* `1895 <https://github.com/Kozea/WeasyPrint/pull/1895>`_:
Don’t ignore min-width when computing cell size
* `1899 <https://github.com/Kozea/WeasyPrint/pull/1899>`_:
Fix named pages inheritance
* `1936 <https://github.com/Kozea/WeasyPrint/pull/1936>`_:
Avoid page breaks caused by children of overflow hidden boxes
* `1943 <https://github.com/Kozea/WeasyPrint/issues/1943>`_:
Use bleed area for page’s painting area
* `1946 <https://github.com/Kozea/WeasyPrint/issues/1946>`_:
Use margin box of children to define available width for leaders

Contributors:

* Guillaume Ayoub
* Sahil Rohilla
* Azharuddin Syed
* kygoh
* Andy Lenards
* Gaurav Samudra
* Michael Wedl
* Lucie Anglade
* Obeida Shamoun
* Evgeniy Krysanov

Backers and sponsors:

* Spacinov
* Kobalt
* Grip Angebotssoftware
* Manuel Barkhau
* SimonSoft
* Menutech
* KontextWork
* NCC Group
* René Fritz
* Nicola Auchmuty
* Syslifters
* Hammerbacher
* TrainingSparkle
* Daniel Kucharski
* Healthchecks.io
* Yanal-Yves Fargialla
* WakaTime
* Paheko
* Synapsium
* DocRaptor

59.0

------------

Released on 2023-05-11.

This version also includes the changes from unstable b1 version listed
below.

Bug fixes:

* `1864 <https://github.com/Kozea/WeasyPrint/issues/1864>`_:
Handle overflow for svg and symbol tags in SVG images
* `1867 <https://github.com/Kozea/WeasyPrint/pull/1867>`_:
Remove duplicate compression of attachments
* `d0ad5c1 <https://github.com/Kozea/WeasyPrint/commit/d0ad5c1>`_:
Override use tag children instead of drawing their references
* `93df1a5 <https://github.com/Kozea/WeasyPrint/commit/93df1a5>`_:
Don’t resize the same image twice when the --dpi option is set
* `1874 <https://github.com/Kozea/WeasyPrint/pull/1874>`_:
Drawn underline and overline behind text

Contributors:

* Guillaume Ayoub
* Timo Ramsauer
* Alexander Mankuta

Backers and sponsors:

* Castedo Ellerman
* Kobalt
* Spacinov
* Grip Angebotssoftware
* Crisp BV
* Manuel Barkhau
* SimonSoft
* Menutech
* KontextWork
* NCC Group
* René Fritz
* Moritz Mahringer
* Yanal-Yves Fargialla
* Piotr Horzycki
* Healthchecks.io
* TrainingSparkle
* Hammerbacher
* Synapsium

59.0b1

--------------

Released on 2023-04-14.

**This version is experimental, don't use it in production. If you find bugs,
please report them!**

Command-line API:

* 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.

Python API:

* 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:

1. Use named parameters for these functions, not positioned parameters.
2. 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.

New features:

* `1853 <https://github.com/Kozea/WeasyPrint/pull/1853>`_,
`1854 <https://github.com/Kozea/WeasyPrint/issues/1854>`_:
Reduce PDF size, with financial support from Code & Co.
* `1824 <https://github.com/Kozea/WeasyPrint/issues/1824>`_,
`1829 <https://github.com/Kozea/WeasyPrint/pull/1829>`_:
Reduce memory use for images
* `1858 <https://github.com/Kozea/WeasyPrint/issues/1858>`_:
Add an option to keep hinting information in embedded fonts

Bug fixes:

* `1855 <https://github.com/Kozea/WeasyPrint/issues/1855>`_:
Fix position of emojis in justified text
* `1852 <https://github.com/Kozea/WeasyPrint/issues/1852>`_:
Don’t crash when line can be split before trailing spaces
* `1843 <https://github.com/Kozea/WeasyPrint/issues/1843>`_:
Fix syntax of dates in metadata
* `1827 <https://github.com/Kozea/WeasyPrint/issues/1827>`_,
`1832 <https://github.com/Kozea/WeasyPrint/pull/1832>`_:
Fix word-spacing problems with nested tags

Documentation:

* `1841 <https://github.com/Kozea/WeasyPrint/issues/1841>`_:
Add a paragraph about unsupported calc() function

Contributors:

* Guillaume Ayoub
* Lucie Anglade
* Alex Ch
* whi_ne
* Jonas Castro

Backers and sponsors:

* Castedo Ellerman
* Kobalt
* Spacinov
* Grip Angebotssoftware
* Crisp BV
* Manuel Barkhau
* SimonSoft
* Menutech
* KontextWork
* NCC Group
* René Fritz
* Moritz Mahringer
* Yanal-Yves Fargialla
* Piotr Horzycki
* Healthchecks.io
* TrainingSparkle
* Hammerbacher
* Synapsium

58.1

------------

Released on 2023-03-07.

Bug fixes:

* `1815 <https://github.com/Kozea/WeasyPrint/issues/1815>`_:
Fix bookmarks coordinates
* `1822 <https://github.com/Kozea/WeasyPrint/issues/1822>`_,
`1823 <https://github.com/Kozea/WeasyPrint/pull/1823>`_:
Fix vertical positioning for absolute replaced elements

Documentation:

* `1814 <https://github.com/Kozea/WeasyPrint/pull/1814>`_:
Fix broken link pointing to samples

Contributors:

* Guillaume Ayoub
* Jonas Castro
* Lucie Anglade
* Menelaos Kotoglou

Backers and sponsors:

* Kobalt
* Grip Angebotssoftware
* Spacinov
* Crisp BV
* Castedo Ellerman
* Manuel Barkhau
* SimonSoft
* Menutech
* KontextWork
* NCC Group
* René Fritz
* Moritz Mahringer
* Yanal-Yves Fargialla
* Piotr Horzycki
* Healthchecks.io
* Hammerbacher
* TrainingSparkle
* Synapsium

Page 3 of 17

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.