Weasyprint

Latest version: v62.1

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

Scan your dependencies

Page 2 of 10

60.1

Bug fixes

* 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-Yvez Fargialla
* WakaTime
* Paheko
* Synapsium
* DocRaptor

60.0

Read about this release [on our blog](https://www.courtbouillon.org/blog/00045-weasyprint-60).

New features

* 1903: Print form fields
* 1922: Add support for textLength and lengthAdjust in SVG text elements
* 1965: Handle `<wbr>` tag
* 1970: Handle y offset of glyphs
* 1909: Add a --timeout option

Bug fixes

* 1887: Fix footnote-call displayed incorrectly for some fonts
* 1890: Fix page-margin boxes layout algorithm
* 1908: Fix IndexError when rendering PDF version 1.4
* 1906: Apply text transformations to first-letter pseudo elements
* 1915: Avoid footnote appearing before its call
* 1934: Fix balance before "column-span: all"
* 1935: Only draw required glyph with OpenType-SVG fonts
* 1595: Don’t draw clipPath when defined after reference
* 1895: Don’t ignore min-width when computing cell size
* 1899: Fix named pages inheritance
* 1936: Avoid page breaks caused by children of overflow hidden boxes
* 1943: Use bleed area for page’s painting area
* 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-Yvez Fargialla
* WakaTime
* Paheko
* Synapsium
* DocRaptor

59.0

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

Read about this release [on our blog](https://www.courtbouillon.org/blog/00044-weasyprint-59).

Bug fixes

* 1864: Handle overflow for svg and symbol tags in SVG images
* 1867: Remove duplicate compression of attachments
* d0ad5c1: Override use tag children instead of drawing their references
* 93df1a5: Don’t resize the same image twice when the --dpi option is set
* 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

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

Read about this release [on our blog](https://www.courtbouillon.org/blog/00043-weasyprint-59-beta).

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, 1854: Reduce PDF size, with financial support from Code & Co.
* 1824, 1829: Reduce memory use for images
* 1858: Add an option to keep hinting information in embedded fonts

Bug fixes

* 1855: Fix position of emojis in justified text
* 1852: Don’t crash when line can be split before trailing spaces
* 1843: Fix syntax of dates in metadata
* 1827, 1832: Fix word-spacing problems with nested tags

Documentation

* 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

Bug fixes

* 1815: Fix bookmarks coordinates
* 1822, 1823: Fix vertical positioning for absolute replaced elements

Documentation

* 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

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

Read about this release [on our blog](https://www.courtbouillon.org/blog/00040-weasyprint-58).

Bug fixes

* 1807: Don’t crash when out-of-flow box is split in out-of-flow parent
* 1806: Don’t crash when fixed elements aren’t displayed yet in aborted line
* 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

Page 2 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.