fix: use v59.0 options for WeasyPrint (#5713)

This commit is contained in:
Guillaume Ayoub 2023-06-09 19:54:35 +02:00 committed by GitHub
parent 0567b3dea2
commit 2e5c9ed160
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -644,7 +644,7 @@ class DocumentInfo(models.Model):
stylesheets=stylesheets,
font_config=font_config,
presentational_hints=True,
optimize_size=("fonts", "images"),
optimize_images=True,
)
except AssertionError:
pdf = None