Weasyprint

Latest version: v63.1

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

Scan your dependencies

Page 14 of 17

0.15

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

Released on 2012-10-09.

* Add a low-level API that enables painting pages individually on any
cairo surface.
* **Backward-incompatible change**: remove the ``HTML.get_png_pages``
method. The new low-level API covers this functionality and more.
* Add support for the ``font-stretch`` property.
* Add support for ``page:blank`` to select blank pages.
* New Sphinx-based and improved docs
* Bug fixes:

- Importing Pango in some PyGTK installations.
- Layout of inline-blocks with `vertical-align: top` or `bottom`.
- Do not repeat a block’s margin-top or padding-top after a page break.
- Performance problem with large tables split across many pages.
- Anchors and hyperlinks areas now follow CSS transforms.
Since PDF links have to be axis-aligned rectangles, the bounding box
is used. This may be larger than expected with rotations that are
not a multiple of 90 degrees.

0.14

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

Released on 2012-08-03.

* Add a public API to choose media type used for media.
(It still defaults to ``print``). Thanks Chung Lu!
* Add ``--base-url`` and ``--resolution`` to the command-line API, making it
as complete as the Python one.
* Add support for the ``<base href="...">`` element in HTML.
* Add support for CSS outlines
* Switch to gdk-pixbuf instead of Pystacia for loading raster images.
* Bug fixes:

- Handling of filenames and URLs on Windows
- Unicode filenames with older version of py2cairo
- ``base_url`` now behaves as expected when set to a directory name.
- Make some tests more robust

0.13

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

Released on 2012-07-23.

* Add support for PyGTK, as an alternative to PyGObject + introspection.
This should make WeasyPrint easier to run on platforms that not not have
packages for PyGObject 3.x yet.
* Bug fix: crash in PDF outlines for some malformed HTML documents

0.12

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

Released on 2012-07-19.

* Add support for collapsed borders on tables. This is currently incompatible
with repeating header and footer row groups on each page: headers and footers
are treated as normal row groups on table with ``border-collapse: collapse``.
* Add ``url_fetcher`` to the public API. This enables users to hook into
WeasyPrint for fetching linked stylesheets or images, eg. to generate them
on the fly without going through the network.
This enables the creation of `Flask-WeasyPrint
<https://packages.python.org/Flask-WeasyPrint/>`_.

0.11

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

Released on 2012-07-04.

* Add support for floats and clear.
Together with various bug fixes, this enables WeasyPrint to pass the Acid2
test! Acid2 is now part of our automated test suite.
* Add support for the width, min-width, max-width, height, min-height and
max-height properties in page. The size property is now the size of the
page’s containing block.
* Switch the Variable Dimension rules to `the new proposal
<https://github.com/SimonSapin/css/blob/master/margin-boxes-variable-dimension>`_.
The previous implementation was broken in many cases.
* The ``image-rendering``, ``transform``, ``transform-origin`` and ``size``
properties are now unprefixed. The prefixed form (eg. -weasy-size) is ignored
but gives a specific warning.

0.10

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

Released on 2012-06-25.

* Add ``get_png_pages()`` to the public API. It returns each page as
a separate PNG image.
* Add a ``resolution`` parameter for PNG.
* Add *WeasyPrint Navigator*, a web application that shows WeasyPrint’s
output with clickable links. Yes, that’s a browser in your browser.
Start it with ``python -m weasyprint.navigator``
* Add support for `vertical-align: top` and `vertical-align: bottom`
* Add support for `page-break-before: avoid` and `page-break-after: avoid`
* Bug fixes

Page 14 of 17

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.