Guillaume Ayoub
1aae1452da
Avoid int overflows when converting units from/to double
...
Fix #2262 .
2024-10-05 14:04:07 +02:00
Guillaume Ayoub
d0ac723854
Merge pull request #2192 from yanntrividic/main
...
Adding annotations to the PDF to link back its content to its source.
2024-09-28 17:42:57 +02:00
Guillaume Ayoub
8da63da982
Fix tests
2024-09-28 17:40:58 +02:00
yanntrividic
7276b5f282
Dest key added to the debug annotations
2024-09-28 17:25:28 +02:00
Guillaume Ayoub
b33b917781
@liZe's code has been integrated into the PR
2024-09-28 17:25:20 +02:00
Yann Trividic
b4bb02a53a
ruff checks passed!
2024-09-28 17:23:17 +02:00
Yann Trividic
3ac5eb832f
WeasyPrint now produces a LinkAnnotation for each HTMLElement with an id attribute.
2024-09-28 17:23:17 +02:00
Guillaume Ayoub
d5a9485efb
Merge pull request #2260 from Kozea/float-overflow
...
Avoid float collision with box establishing formatting context
2024-09-27 21:36:36 +02:00
Guillaume Ayoub
af990507bc
Avoid float collision with box establishing formatting context
...
Related to #2019 .
2024-09-27 20:56:41 +02:00
Guillaume Ayoub
d5d71afb01
Add method on boxes testing if they establish a formatting context
...
That’s more consistent with other equivalent methods.
2024-09-27 20:28:25 +02:00
Guillaume Ayoub
61690992f8
Merge pull request #2242 from Kozea/svg-size
...
Handle svg tags with no size
2024-09-25 22:32:13 +02:00
Guillaume Ayoub
3d2d15dce4
Add test of SVG with no explicit size
2024-09-25 22:23:35 +02:00
Guillaume Ayoub
a5d8412d0f
Add warning about antivirus false detection
...
Fix #2254 .
2024-09-23 11:48:31 +02:00
Guillaume Ayoub
e6de621360
Merge pull request #2257 from Kozea/html5
...
Use tinyhtml5 instead of html5lib
2024-09-21 09:21:46 +02:00
Guillaume Ayoub
3ad8c23e21
Use tinyhtml5 instead of html5lib
2024-09-20 23:53:58 +02:00
Guillaume Ayoub
41c818d663
Merge pull request #2252 from Kozea/page-groups
...
Handle page groups
2024-09-16 10:52:56 +02:00
Guillaume Ayoub
b7867d4d6e
Split page and page selection types
2024-09-15 09:10:08 +02:00
Guillaume Ayoub
953f7d63c6
Fix tests
2024-09-15 09:10:08 +02:00
Guillaume Ayoub
b86fd65b88
Update documentation about page groups
2024-09-15 09:10:08 +02:00
Guillaume Ayoub
ccd29c9bbe
Handle page groups
2024-09-15 09:10:08 +02:00
Guillaume Ayoub
7681902839
Avoid useless line breaks in code
2024-09-15 09:07:49 +02:00
Guillaume Ayoub
c762d50fc6
Invert color of the model scheme in documentation on dark themes
2024-09-03 09:04:47 +02:00
Guillaume Ayoub
958dd552a3
Clean ffi declarations
2024-08-28 08:29:03 +02:00
Guillaume Ayoub
37002a588a
Use single method to set SVG sizes
2024-08-27 22:31:13 +02:00
Guillaume Ayoub
ac165d5bd2
Avoid storing svg size as attributes
2024-08-27 22:13:50 +02:00
Guillaume Ayoub
d566245d6a
Display symbol but not its children
2024-08-27 22:13:50 +02:00
Guillaume Ayoub
0ed5045646
Set svg inner size for nested svg tags
2024-08-27 22:13:49 +02:00
Guillaume Ayoub
199918813e
Use bounding box for svg tags with no size
2024-08-27 22:13:28 +02:00
Guillaume Ayoub
438531fa23
Don’t apply hinting subset twice
...
It seems to be broken with variable fonts.
2024-08-25 01:00:15 +02:00
Guillaume Ayoub
1711d5996a
Display caught exceptions when debugging WeasyPrint
2024-08-24 23:51:04 +02:00
Guillaume Ayoub
b08110faf7
Merge pull request #2231 from dhdaines/issue-2222
...
Fix several problems related to flex-direction: column
2024-08-24 23:18:27 +02:00
Guillaume Ayoub
1f4a6ffc0f
Keep shorter algorithm to collect flex items in lines
2024-08-24 23:12:39 +02:00
Guillaume Ayoub
acdce9f224
Remove useless enumerate calls
2024-08-24 23:12:39 +02:00
Guillaume Ayoub
3c47212d2d
Change style of some comments in flex layout
2024-08-24 23:12:36 +02:00
Guillaume Ayoub
9d78e1f374
Remove debugging logs
...
See #2231 and #2220 .
2024-08-24 22:28:48 +02:00
Guillaume Ayoub
c5175861e6
Don’t display object id in repr string
...
Even if it could be useful for print()-based debugging sessions, it gives
different results depending on the id field presence, and is actually
useless when using a debugger and unrelated to #2231 .
Let’s use a debugger!
2024-08-24 22:21:38 +02:00
Guillaume Ayoub
c68a465638
Capture all logging messages in tests
...
The level been added to avoid debug messages that were not used before. This
will be handled differently in a future commit.
2024-08-24 22:19:09 +02:00
Guillaume Ayoub
cbf10b9dc7
Don’t fail when markers are undefined references
...
Fix #2239 .
2024-08-23 13:44:43 +02:00
Guillaume Ayoub
95a4253c73
Merge pull request #2238 from Kozea/windows-flags
...
Set explicit flags when loading DLLs on Windows
2024-08-23 10:45:08 +02:00
Guillaume Ayoub
57cbd2910b
Reorder libraries to search for MSYS libraries at the beginning
...
Related to #2230 .
2024-08-23 10:15:23 +02:00
Guillaume Ayoub
998db441a6
Search in MSYS path before GTK to find libraries on Windows
2024-08-23 10:08:08 +02:00
Guillaume Ayoub
2ae2ef7352
Set explicit flags when loading DLLs on Windows
...
Fix #2230 .
2024-08-23 09:49:35 +02:00
Guillaume Ayoub
176bd71a47
Store original and PDF stream images in different cache slots
...
We used to replace the original image by the PDF stream image in cache after
the first PDF rendering. It’s broken because the PDF stream image is not a
valid image, and can’t be opened by Pillow if it has to be rendered twice.
Replacing the original image with the final one was probably supposed to save
some time and/or some memory, but my quick tests show no performance problem
with this commit.
Fix #1942 , fix #2228 .
2024-08-22 23:14:35 +02:00
Guillaume Ayoub
6ebb4f44ef
Apply stylesheet and other basic operations to SVG root tag
...
Related to #1740 and #2234 .
2024-08-22 15:19:44 +02:00
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
1043ffced1
Don’t display SVG symbols directly
...
Related to #2234 .
2024-08-22 00:18:45 +02:00
David Huggins-Daines
6cacfd672e
Merge remote-tracking branch 'origin/main' into issue-2222
2024-08-19 09:25:12 -04:00