Skip to content

Commit

Permalink
Add note about WeasyPrint Cairo vs pydyf in README; update CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
fdemmer committed Feb 24, 2022
1 parent 68f4007 commit a504c14
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.1.0.post2] - 2022-02-24

Another post-release backporting fixes from 2.x for those still using WeasyPrint/Cairo.

- Add `font_config` argument to `WeasyTemplateResponse.get_css()` to properly
set up the `weasyprint.CSS` instance for `weasyprint.HTML.render()` (20f701b, #54)
- Add Django 3.2 & 4.0 to test matrix, remove 3.0 & 3.1

## [2.1.0] - 2021-10-28

- Add `font_config` argument to `WeasyTemplateResponse.get_css()` to properly
Expand Down
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ Install and update using `pip`_:
If you run into any problems be sure to check their `install instructions
<https://weasyprint.readthedocs.io/en/latest/install.html>`_ for help!

.. important::
In version 53 WeasyPrint switched to pydyf as PDF generator instead of Cairo.
With that change PNG output was dropped and you might encounter other
changes in the generated PDF.

You can continue using WeasyPrint/Cairo by installing django-weasyprint 1.x!


Usage
-----
Expand Down

0 comments on commit a504c14

Please sign in to comment.