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

57 Commits

Author SHA1 Message Date
Simon Sapin
1d1bf9cdc9 Flake8. 2013-04-11 12:08:53 +02:00
Simon Sapin
171438f48e 2013 2013-04-03 16:23:48 +02:00
Simon Sapin
c70b00b5b8 More WIP: cairocffi and pango cffi. 2012-12-29 01:36:06 +01:00
Simon Sapin
0444be5fba Fix PDF metadata with zoom != 1 2012-11-22 22:49:30 +01:00
Simon Sapin
54b46c4b46 Typo fix 2012-10-08 12:13:33 +02:00
Simon Sapin
a7131bd10f Remove unused imports 2012-10-05 22:12:19 +02:00
Simon Sapin
ba06e7eecc Nicer whitespace in PDF objects. 2012-10-05 22:06:38 +02:00
Simon Sapin
732f7187a4 Fix bookmarks writing in PDF.
The new prepare_metadata() already adds bookmark_root_id to
all values, no need to add it again in write_pdf_metadata()
2012-10-05 21:59:08 +02:00
Simon Sapin
bedcbfe4ed Remove a debugging print() 2012-10-05 21:50:37 +02:00
Simon Sapin
eda4bc604e Move resolution to *.write_png only. 2012-10-05 20:12:05 +02:00
Simon Sapin
6e63903a13 Add metadata in the low-level API. 2012-10-04 13:06:41 +02:00
Simon Sapin
a85c137754 Bug fix: unit conversion for PDF metadata. 2012-09-24 12:46:11 +02:00
Simon Sapin
7966e9fed6 Generalize hinting and resolution
... in the low-level API, not just PNG output.
2012-09-20 19:24:58 +02:00
Simon Sapin
20fe60040d Document low-level output functions. 2012-09-20 17:57:15 +02:00
Simon Sapin
ac220e9a4d Refactor the PNG output to use the low-level API
… not intermediate ImageSurface objects.
2012-09-18 12:58:58 +02:00
Simon Sapin
6354398139 Add a low-level public API 2012-09-12 19:33:16 +02:00
Simon Sapin
30533879b2 Fixed #2: Crash in PDF outlines with malformed bookmark-level sequence. 2012-07-23 16:12:45 +02:00
Simon Sapin
cca18bdfe9 Kill Document in pdf.py and text.py 2012-07-12 16:14:35 +02:00
Simon Sapin
fb3777b317 Get rid of page.outer_width and outer_height
.margin_width() and .margin_height() can be used instead.
2012-07-03 14:07:39 +02:00
Simon Sapin
78461b81f1 Test the Navigator 2012-06-23 04:58:14 +02:00
Simon Sapin
8497a7fc90 Fix the tests on PDF links 2012-06-14 22:06:30 +02:00
Simon Sapin
34ae5ec116 Remove redundant links on text boxes; Browser polish 2012-06-14 21:09:59 +02:00
Simon Sapin
b98820df5b Switch from margin area to border area for the link "hit box" 2012-06-14 20:11:12 +02:00
Simon Sapin
95e0ad2707 Warn instead of crash on missing on #foo without id="foo" 2012-06-01 18:32:43 +02:00
Simon Sapin
d694a98350 Rename the utils module to 'urls' 2012-05-23 15:13:57 +02:00
Simon Sapin
848bf33f87 Have PDF readers display the bookmarks by default.
... although evince seems to just ignore it.
2012-05-22 14:47:50 +02:00
Simon Sapin
267010a930 Rename destinations to anchors for internal hyperlinks. 2012-05-22 12:37:48 +02:00
Simon Sapin
d7676f8081 Test hyperlinks, fix internal hyperlink parsing. 2012-05-21 18:43:08 +02:00
Simon Sapin
866efdf62c Do not repeat bookmarks on a fragmented box
Also a better way not to repeat margin/padding/border and list markers.
2012-05-21 14:22:32 +02:00
Simon Sapin
33cd706f0d Refactor the metadata stuff into the pdf module. 2012-05-20 17:04:22 +02:00
Simon Sapin
1b3f7d478f Test the PDF parser (but not writer) 2012-05-20 16:11:50 +02:00
Simon Sapin
b1b5d85b41 Write bookmarks and links with the new PDF module. 2012-05-20 15:55:57 +02:00
Simon Sapin
8b994c2ec6 Use the new pdf module. 2012-05-20 13:56:04 +02:00
Simon Sapin
699af8a9f5 Remove the old pdf module. 2012-05-20 13:55:07 +02:00
Simon Sapin
c828f3835d Avoid using OrderedDict (for Python 2.6). 2012-05-18 17:18:58 +02:00
Simon Sapin
383f7b642b PDF: use a line iterator instead of .pop(0) 2012-05-18 16:31:39 +02:00
Guillaume Ayoub
525f1030c5 Useless typo 2012-05-18 16:23:08 +02:00
Guillaume Ayoub
9211fa570d Remove borders around links 2012-05-18 16:08:18 +02:00
Guillaume Ayoub
bfeb102c98 Test bookmarks 2012-05-18 15:38:57 +02:00
Simon Sapin
8c3f16fc8c Fix URI encoding per RFC 3986 and 3987. 2012-05-18 09:13:09 +02:00
Guillaume Ayoub
64cb7b4104 Handle the bookmarks as a tree 2012-05-17 22:46:03 +02:00
Guillaume Ayoub
111932edf5 Add first-level bookmarks, use floats for XY positions, fix little things 2012-05-15 19:29:54 +02:00
Simon Sapin
1ff949b888 Have the PDF post-process run on Python3 (links are broken) 2012-05-15 13:40:36 +02:00
Guillaume Ayoub
76c15235e6 Replace the PDF class by a function 2012-05-15 03:29:57 +02:00
Guillaume Ayoub
488a6a99c9 Remove the "active" attribute 2012-05-15 01:56:19 +02:00
Guillaume Ayoub
ff8d50ce3e Remove a useless attribute 2012-05-15 01:28:09 +02:00
Guillaume Ayoub
65a286f12f Stupid typo 2012-05-15 01:16:39 +02:00
Guillaume Ayoub
bb2727417f Write the PDF without the second iteration on initial lines 2012-05-15 01:15:07 +02:00
Guillaume Ayoub
34c12fe3ef Remove a useless continue 2012-05-15 00:32:19 +02:00
Guillaume Ayoub
b38ce4f0a3 Clean again the pdf module 2012-05-15 00:30:20 +02:00