Weasyprint

Latest version: v63.1

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

Scan your dependencies

Page 3 of 17

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-Yvez 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-Yvez 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-Yvez Fargialla
* Piotr Horzycki
* Healthchecks.io
* Hammerbacher
* TrainingSparkle
* Synapsium

58.0

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

Released on 2023-02-17.

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

Bug fixes:

* `1807 <https://github.com/Kozea/WeasyPrint/issues/1807>`_:
Don’t crash when out-of-flow box is split in out-of-flow parent
* `1806 <https://github.com/Kozea/WeasyPrint/issues/1806>`_:
Don’t crash when fixed elements aren’t displayed yet in aborted line
* `1809 <https://github.com/Kozea/WeasyPrint/issues/1809>`_:
Fix background drawing for out-of-the-page transformed boxes

Contributors:

* Guillaume Ayoub

Backers and sponsors:

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

58.0b1

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

Released on 2023-02-03.

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

New features:

* `61 <https://github.com/Kozea/WeasyPrint/issues/61>`_,
`1796 <https://github.com/Kozea/WeasyPrint/pull/1796>`_:
Support PDF forms, with financial support from Personalkollen
* `1173 <https://github.com/Kozea/WeasyPrint/issues/1173>`_:
Add style for form fields

Bug fixes:

* `1777 <https://github.com/Kozea/WeasyPrint/issues/1777>`_:
Detect JPEG/MPO images as normal JPEG files
* `1771 <https://github.com/Kozea/WeasyPrint/pull/1771>`_:
Improve SVG gradients

Contributors:

* Guillaume Ayoub
* Lucie Anglade

Backers and sponsors:

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

57.2

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

Released on 2022-12-23.

Bug fixes:

* `0f2e377 <https://github.com/Kozea/WeasyPrint/commit/0f2e377>`_:
Print annotations with PDF/A
* `0e9426f <https://github.com/Kozea/WeasyPrint/commit/0e9426f>`_:
Hide annotations with PDF/UA
* `1764 <https://github.com/Kozea/WeasyPrint/issues/1764>`_:
Use reference instead of stream for annotation appearance stream
* `1783 <https://github.com/Kozea/WeasyPrint/pull/1783>`_:
Fix multiple font weights for font-face declarations

Contributors:

* Guillaume Ayoub

Backers and sponsors:

* Grip Angebotssoftware
* Manuel Barkhau
* Crisp BV
* SimonSoft
* Menutech
* Spacinov
* KontextWork
* René Fritz
* NCC Group
* Kobalt
* Tom Pohl
* Castedo Ellerman
* Moritz Mahringer
* Piotr Horzycki
* Gábor Nyers
* Sidharth Kapur

Page 3 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.