Guillaume Ayoub
ccf770d2a9
Include referenced element position to define use tag implicit size
...
Related to #2234 .
2024-08-22 15:04:08 +02:00
Guillaume Ayoub
abe921439f
Remove unused import
2024-08-22 00:37:07 +02:00
Guillaume Ayoub
b75e683c98
Correctly apply cascade and CSS management to use tags
...
Related to #2234 .
2024-08-22 00:32:58 +02:00
Guillaume Ayoub
cf72dfc790
Fallback to bounding box size for used elements with no size
...
Related to #2234 .
2024-08-22 00:19:22 +02:00
Guillaume Ayoub
dd7cee28a0
Use new pydyf API
2024-07-06 16:40:27 +02:00
Guillaume Ayoub
21829a29de
Only fix gradient size when gradient transformation is applied
2024-05-30 13:27:34 +02:00
Guillaume Ayoub
ff2acf193a
Ensure that gradient size is positive to please some PDF readers
...
This was broken with Chrome and macOS Preview for example.
2024-05-30 13:19:38 +02:00
Guillaume Ayoub
29597ab893
Use ruff to replace flake8 and isort
2024-04-24 16:01:13 +02:00
Guillaume Ayoub
cf9e7cda2b
Support percentages for opacity
...
Fix #1986 .
2024-02-03 10:57:04 +01:00
Guillaume Ayoub
981ed5843c
Clean code for SVG patterns
2023-09-04 22:48:57 +02:00
Guillaume Ayoub
d0ad5c1f28
Override use tag children instead of drawing their references
...
This change fixes cases when use tags are not supposed to be really drawn, for
example when used to clip paths.
2023-04-29 17:03:13 +02:00
Guillaume Ayoub
88dc3df4aa
Fix and test repeating linear gradients
2022-12-02 15:31:16 +01:00
Guillaume Ayoub
c4c23fca73
More fixes around SVG gradients
2022-11-18 22:59:56 +01:00
Guillaume Ayoub
a843257e54
Improve tests and fix code for SVG gradients
2022-11-14 23:24:24 +01:00
Guillaume Ayoub
a7f46b272c
Fix tests
2022-11-14 13:27:30 +01:00
Guillaume Ayoub
0625bf7256
Fix repeating radial gradients in SVG
2022-11-14 10:35:47 +01:00
Guillaume Ayoub
e2b30af70b
Fix and clean many linear gradients in SVG
2022-11-14 09:39:50 +01:00
Guillaume Ayoub
df97154331
Fix linear gradients transform matrix
2022-11-13 17:47:30 +01:00
Guillaume Ayoub
c7265f5bc2
Improve coverage and fix gradient painting
2022-09-27 10:59:31 +02:00
Guillaume Ayoub
11bc920910
Merge branch '56.x'
2022-07-10 20:38:07 +02:00
Guillaume Ayoub
f2cecc78ea
Fix gradients with opacity set
...
Fix #1678 .
2022-07-10 20:37:33 +02:00
Guillaume Ayoub
5d9e5f7040
Update and fix URLs in comments and documentation
2022-06-28 15:59:06 +02:00
Guillaume Ayoub
358b9469bf
Merge pull request #1651 from Kozea/pdfa
...
Support PDF/A
2022-06-13 14:52:12 +02:00
Guillaume Ayoub
26d5d8264d
Don’t check origin when URL only contains fragment
...
Fix #1650 .
2022-05-27 17:32:16 +02:00
Guillaume Ayoub
61ee64ecac
Fix domain for gradients
2022-05-27 11:26:24 +02:00
Guillaume Ayoub
09364c254e
Refactor PDF generation
2022-05-27 11:26:15 +02:00
Guillaume Ayoub
50ad4d1ac0
Fix relative paths for SVG files stored as data URLs
...
Fix #1641 .
2022-05-10 14:31:25 +02:00
Guillaume Ayoub
0792c0d3a3
Clean docstrings in modules
2022-03-25 11:47:27 +01:00
Guillaume Ayoub
abb3184b9e
Put the Matrix class in a separate module
...
It avoids imports in functions and makes document.py a bit smaller.
2022-03-19 17:47:28 +01:00
Guillaume Ayoub
302f09d54a
Always use absolute paths to get hrefs in SVG
...
Also be more fault-tolerant when trying to render use tags.
Fix #1531 .
2022-01-03 14:14:36 +01:00
Guillaume Ayoub
37af386852
Cache SVG use tags
...
Fix #1439 .
2021-09-11 14:57:47 +02:00
Guillaume Ayoub
783378d14a
Fix reference for percentages
2021-07-31 08:29:23 +02:00
Guillaume Ayoub
3e11acafb2
Include origin translation into matrix for patterns
2021-07-31 01:06:50 +02:00
Guillaume Ayoub
fd973a195a
Fix origin translation for SVG gradients
2021-07-31 00:57:47 +02:00
Lucie Anglade
11a175efc7
Handle x and y in use tags
2021-07-30 16:32:25 +02:00
Lucie Anglade
d80e99dd6c
Fix use tags referencing svg and symbols, new episode
2021-07-30 15:49:10 +02:00
Lucie Anglade
6de791a3a1
Fix use tags referencing svg and symbols
2021-07-30 15:42:51 +02:00
Lucie Anglade
9bcece11fe
Fix blend mode
2021-07-30 15:12:06 +02:00
Guillaume Ayoub
5a53e11608
Clean and fix some cases of SVG gradients
2021-07-25 18:30:32 +02:00
pbregener
96daadf742
More robust handling of SVG use tags
...
Fixes #1399
2021-07-20 18:10:04 +02:00
Guillaume Ayoub
c7b97fa3bf
Handle simple cases of clip-path
...
Fix #1374 .
2021-07-18 09:36:14 +02:00
Guillaume Ayoub
add1dad80b
Use named parameters for stream transformation
2021-07-17 14:25:58 +02:00
Guillaume Ayoub
231736d73e
Use the original SVG tree when drawing patterns
...
In Pattern, we want self.tree to be the pattern tree when we call draw(), but
we want self.tree to be the original SVG tree for everything else, like finding
defs.
This commit replaces self.tree with the original SVG tree after we call draw().
Fix #1394 .
2021-07-12 11:42:07 +02:00
Guillaume Ayoub
c0c9879bc5
Handle stroke-opacity and fill-opacity
...
This commit also cleans a lot of things about the way opacity is handled,
with many small bug fixes.
Fix #1371 .
2021-06-02 20:35:06 +02:00
Guillaume Ayoub
41d4a262d3
Don’t copy the already-cascaded style when copying nodes
...
Fix #1370 .
2021-06-01 22:30:54 +02:00
Guillaume Ayoub
edf47f5311
Copy nodes when drawing them as use tags
...
Fix #1370 .
2021-06-01 22:11:11 +02:00
Guillaume Ayoub
0f8deb86a7
Include stroke width in bounding box
...
Fix #1367 .
2021-05-30 09:50:40 +02:00
Guillaume Ayoub
41ab0f86e7
Cascade inherited attributes for use tags
...
Fix #1365 .
2021-05-27 12:04:41 +02:00
Guillaume Ayoub
26cc19ce16
Fix double x/y transform for use tags
...
Fix #1345 .
2021-04-28 21:57:15 +02:00
Guillaume Ayoub
6069fcd61a
Remove unused code
2021-04-26 18:03:59 +02:00