1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-08-17 16:40:45 +03:00
Commit Graph

290 Commits

Author SHA1 Message Date
Guillaume Ayoub
5c8b3a2433 Add option to include default sRGB profile for RGB colors 2024-07-10 07:21:01 +02:00
Guillaume Ayoub
1f41486af4 Log warning when unknown rendering option is given 2024-07-03 10:29:31 +02:00
Guillaume Ayoub
56acbc422e Version 62.3 2024-06-21 17:46:31 +02:00
Guillaume Ayoub
af118df140 Version 62.2 2024-06-04 16:16:14 +02:00
Guillaume Ayoub
37814abb6d Version 62.1 2024-05-06 16:47:18 +02:00
Guillaume Ayoub
d5d7ce369a Version 62.0 2024-04-30 15:51:07 +02:00
Guillaume Ayoub
29597ab893 Use ruff to replace flake8 and isort 2024-04-24 16:01:13 +02:00
Guillaume Ayoub
cfd2e308aa Version 61.2 2024-03-08 11:33:05 +01:00
Guillaume Ayoub
4b28713ee4 Version 61.1 2024-02-26 13:51:36 +01:00
Guillaume Ayoub
78861efc57 Version 61.0 2024-02-12 10:59:33 +01:00
Guillaume Ayoub
586998ea8d Fix PDF format of attachment creation and modification dates
Fix #2064.
2024-02-12 10:41:28 +01:00
Guillaume Ayoub
cec6e5ec3e Only add AF values for PDF/A-2+ 2024-02-02 16:42:10 +01:00
Guillaume Ayoub
05a34e7d9b Merge branch 'main' into pdfa3 2024-02-02 16:01:30 +01:00
Guillaume Ayoub
9113cee23d Allow Path objects for HTML’s base_url parameter 2024-01-04 10:46:51 +01:00
Guillaume Ayoub
95c9dc0aa3 Allow text-based file objects for CSS 2023-12-16 23:07:55 +01:00
Guillaume Ayoub
f58fd3b42b Clean code handling keyword args for html5lib.parse 2023-12-16 22:21:15 +01:00
Viktor Shevtsov
92948eb2e5 Filter args with value None before calling html5lib.parse 2023-12-14 23:52:51 +03:00
Guillaume Ayoub
fd9f1d98e2 Version 60.2 2023-12-11 13:08:39 +01:00
Guillaume Ayoub
01c5e972b9 Version 60.1 2023-09-29 09:56:49 +02:00
Guillaume Ayoub
dc6d3fa309 Version 60.0 2023-09-25 17:58:46 +02:00
Guillaume Ayoub
35d69fa056 Version 59.0 2023-05-11 11:26:30 +02:00
Timo Ramsauer
b505d56199 Merge branch 'master' of github.com:timoramsauer/WeasyPrint into HEAD 2023-04-24 15:29:58 +02:00
Timo Ramsauer
e9edc43f64 Added missing PDF/a-3 attributes to Embedded File
SubType, CreationDate and ModDate were added
2023-04-24 15:26:25 +02:00
Guillaume Ayoub
e881acca2e Version 59.0b1 2023-04-14 16:08:17 +02:00
Guillaume Ayoub
a723182b40 Use cache option instead of cache_folder
The CLI only allows to pass cache folders, but the Python API allows
dictionaries. "cache" is definitely a better name.
2023-04-14 15:28:36 +02:00
Guillaume Ayoub
7bcfb14998 Use dictionary to store API options
This commit uses an "option" dictionary to store various API options that were
used as arguments in many public and private functions. This change allows to
easily document default values, to reduce the number of arguments and to avoid
many repetitions in documentation and signatures.

The changes to the public API are minimal, and should only have an impact for
users who passed unnamed arguments.
2023-04-13 19:34:22 +02:00
Guillaume Ayoub
6ff1b97f4c Remove font hinting information by default
Even if it can be an important feature for some users, the fact that nobody
ever complained means that it’s not useful for the majority of users. The
option is available but disabled by default.
2023-04-12 10:26:11 +02:00
Guillaume Ayoub
2358a01bc4 Add an option to disable hinting
Hinting is now enabled by default. Fix #1858.
2023-04-09 21:21:03 +02:00
Guillaume Ayoub
e2ae74e7ef Don’t reference DiskCache in documentation 2023-04-07 23:30:40 +02:00
Guillaume Ayoub
3a745c5be9 Add the --dpi option 2023-04-07 23:30:40 +02:00
Guillaume Ayoub
eb6491f895 Add API controlling JPEG quality 2023-04-07 23:30:40 +02:00
Guillaume Ayoub
fdbdfc150c Add API to compress generated PDF files
This feature compresses PDF streams (as it was already the case) and ask pydyf
to use a compact PDF structure with compressed object stream and
cross-reference object (for PDF version >=1.5).
2023-04-07 23:30:40 +02:00
Guillaume Ayoub
74823d32b7
Merge pull request #1829 from Kozea/save-memory
Save memory
2023-03-26 13:05:25 +02:00
Guillaume Ayoub
11bc4e52e4 Version 58.1 2023-03-07 10:56:57 +01:00
Guillaume Ayoub
44001c5383 Add --cache-folder option to temporarily store images on disk 2023-03-05 23:07:59 +01:00
Guillaume Ayoub
07e43dc4c2 Clean lazy image loading 2023-03-05 23:07:59 +01:00
ac
9ec71c6aa0 Stopped keeping images in memory in order to consume less RAM.
Stopped used BytesIO when writing PDF to file or streams. Also to reduce RAM consumption.
2023-03-05 23:07:59 +01:00
Guillaume Ayoub
c0034fa9b0 Version 58.0 2023-02-17 11:00:13 +01:00
Guillaume Ayoub
9d1dbe5438 Version 58.0b1 2023-02-03 15:45:04 +01:00
Guillaume Ayoub
ec1424d979 Handle the appearance property 2023-01-23 12:38:12 +01:00
Guillaume Ayoub
a626d6d59b Add an option to write PDF forms 2023-01-23 11:27:44 +01:00
Guillaume Ayoub
943cb3a09b Version 57.2 2022-12-23 15:29:13 +01:00
Guillaume Ayoub
ccd305e792 Version 57.1 2022-11-04 10:32:34 +01:00
Guillaume Ayoub
dcdc63df17 Version 57.0 2022-10-18 22:15:53 +02:00
Guillaume Ayoub
1d64134faa Version 57.0b1 2022-09-22 17:06:06 +02:00
Guillaume Ayoub
f6a13ed636 Merge branch '56.x' 2022-07-24 14:43:18 +02:00
Guillaume Ayoub
b889ceb99d Version 56.1 2022-07-24 14:38:41 +02:00
Guillaume Ayoub
c37886611e Merge branch '56.x' 2022-07-07 21:40:37 +02:00
Guillaume Ayoub
10da5691d5 Version 56.0 2022-07-07 21:33:36 +02:00
Guillaume Ayoub
5d9e5f7040 Update and fix URLs in comments and documentation 2022-06-28 15:59:06 +02:00