1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-05 00:21:15 +03:00
Commit Graph

296 Commits

Author SHA1 Message Date
Guillaume Ayoub
c7b00e82e4 Add pattern type 2020-12-21 14:37:59 +01:00
Guillaume Ayoub
5f1710b74c Use references for smasks in images 2020-12-20 13:57:36 +01:00
Guillaume Ayoub
e166a672f5 Use a font dictionary shareda across the whole document 2020-12-20 12:37:17 +01:00
Guillaume Ayoub
5e932d3fca Revert "Use the same Resources dictionary across the whole document"
This reverts commit af92f3eba6.
2020-12-19 20:06:16 +01:00
Guillaume Ayoub
e4bcb07d55 Use the font descriptor as a reference 2020-12-19 19:02:24 +01:00
Guillaume Ayoub
af92f3eba6 Use the same Resources dictionary across the whole document 2020-12-19 19:01:29 +01:00
Guillaume Ayoub
b2f7afd29d Revert "Don’t compress streams"
This reverts commit d0ca0da6bb.
2020-12-12 22:44:41 +01:00
Guillaume Ayoub
d0ca0da6bb Don’t compress streams 2020-12-12 22:34:43 +01:00
Guillaume Ayoub
30c21d92e9 Fully remove Cairo from documentation and code 2020-12-10 22:47:27 +01:00
Guillaume Ayoub
5f5f30d3e8 Support transparent gradients 2020-11-30 19:12:41 +01:00
Guillaume Ayoub
431c11e7a0 Put write_png in testing suite for license considerations 2020-10-26 17:26:01 +01:00
Guillaume Ayoub
01fe5504e4 Fix links 2020-10-23 13:08:29 +02:00
Guillaume Ayoub
12999bded8 Merge branch 'master' into pydyf 2020-10-23 12:36:03 +02:00
Lucie Anglade
30bf467ce8 Cairo use hex string when there are parenthesis for TAG_LINK but not for TAG_DEST so an id is not represented by the same string in the pdf and pdf reader can make the link between them. Using urllib.parse.quote replaces special chars and so Cairo stop using hex string and pdf reader are happy. 2020-09-13 18:42:56 +02:00
Lucie Anglade
325c9cb7b4 Fix test 2020-09-10 12:04:13 +02:00
Lucie Anglade
c5a06dbeae Clean code 2020-09-10 11:58:19 +02:00
Lucie Anglade
1519424378 Fix ci’s isort 2020-09-10 00:57:08 +02:00
Lucie Anglade
b1bb6b78bb isort 2020-09-10 00:52:41 +02:00
Lucie Anglade
a9a24f754f Use download attribute in <a> to define filename for attachment 2020-09-10 00:51:03 +02:00
Guillaume Ayoub
c9b27bdbb4 Simplify image mode management 2020-08-03 18:18:55 +02:00
Guillaume Ayoub
4539a91101 Handle images with transparency color 2020-08-02 15:44:39 +02:00
Guillaume Ayoub
b1baa9ea51 Handle trasparent images 2020-08-02 15:07:32 +02:00
Guillaume Ayoub
ed5c4ed5ee Fix links matrices 2020-08-01 15:13:03 +02:00
Guillaume Ayoub
9d29716b91 Merge remote-tracking branch 'origin/master' into pydyf 2020-07-31 14:46:36 +02:00
Mike Voets
d08c5b4fd6 Fix lint issues 2020-07-17 09:29:03 +12:00
Guillaume Ayoub
3d4cb04904 Add an image cache that can be shared between documents
Fix #969.
2020-06-22 16:32:12 +02:00
Guillaume Ayoub
c56b96b3c1 Add an option to optimize embedded images size 2020-06-22 16:05:14 +02:00
Guillaume Ayoub
7cbaa243c3 Fix shading dictionary 2020-06-08 16:34:28 +02:00
Guillaume Ayoub
8f9e15a57e Handle image-rendering 2020-06-08 00:01:09 +02:00
Guillaume Ayoub
c9ecb2366c Small fixes for images 2020-06-07 21:17:29 +02:00
Guillaume Ayoub
075bfad788 Fix some gradients tests 2020-06-07 20:54:40 +02:00
Guillaume Ayoub
a673ad113c Handle images less than 32×32 2020-06-07 17:05:36 +02:00
Lucie Anglade
2a1c33d0ba Filter depending image format 2020-06-07 16:12:47 +02:00
Lucie Anglade
2a4020f57c Use jpeg2000 to save pillow image when format is not jpeg 2020-06-07 16:04:25 +02:00
Guillaume Ayoub
57994a18b0 Fix document parameter in contexts 2020-06-07 15:38:16 +02:00
Guillaume Ayoub
c50e9aff11 Use dedicated resources for x-objects and patterns 2020-06-07 15:18:00 +02:00
Guillaume Ayoub
64e9d4c1c2 Handle gradients positions and repeats 2020-06-07 11:20:38 +02:00
Guillaume Ayoub
0350a8c055 Handle very simple gradients 2020-06-07 00:32:47 +02:00
Guillaume Ayoub
9b1cd0e870 Merge branch 'pydyf' of gitlab.com:courtbouillon/weasyprint into pydyf 2020-06-06 11:17:11 +02:00
Guillaume Ayoub
b00346924b Don’t release memory allocated by ffi.new
These objects are owned by the Python object and are automatically released
when garbage-collected.
2020-06-04 01:27:38 +02:00
Lucie Anglade
86b32fa2c2 Different colorspace depending of image format 2020-06-03 19:46:58 +02:00
Lucie Anglade
7eff99018e Use unique image name 2020-06-03 18:01:25 +02:00
Lucie Anglade
f530502e05 Handle jpg images 2020-06-03 17:58:53 +02:00
Guillaume Ayoub
d70e556c39 Improve memory allocation and fix or document memory leaks 2020-06-02 18:17:33 +02:00
Guillaume Ayoub
8e8aba0afa Compress streams 2020-06-01 11:48:17 +02:00
Guillaume Ayoub
603ee2659a Improve text rendering speed 2020-06-01 01:12:32 +02:00
Guillaume Ayoub
47815d1b01 Handle font subsets 2020-05-31 01:20:38 +02:00
Guillaume Ayoub
9372b94e8d Clean formatted strings 2020-05-30 15:55:44 +02:00
Guillaume Ayoub
11901bb9ea Clean document.py 2020-05-30 01:11:30 +02:00
Guillaume Ayoub
e61dd3a761 Don’t crash when font can’t be optimized 2020-05-30 00:30:13 +02:00