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

116 Commits

Author SHA1 Message Date
Alex Eftimie
93f497bf11 Replace utf8 with utf-8 for gettext compatibility 2015-11-25 09:38:01 +02:00
Simon Sapin
f5edde6c67 v0.24 2015-08-04 16:33:05 +02:00
Simon Sapin
8b09651e5a Changelog for v0.23 2014-09-16 20:56:28 +01:00
Simon Sapin
24d6c0cb27 Changelog for v0.22 2014-05-05 11:53:38 +01:00
Simon Sapin
dd9ff47c94 Fix code formatting 2014-04-27 18:16:14 +01:00
Colin Leitner
da916a32a6 Added an Attachment class for attachments provided through the API instead of the URL/description tuples 2014-04-25 23:35:43 +02:00
Colin Leitner
a084a5b517 Refactored attachments attribute from the HTML class to an argument for write_pdf 2014-04-22 20:40:46 +02:00
Colin Leitner
846a5bedb4 Refactored the url_fetcher argument for write_pdf to an attribute of the Document class 2014-04-18 15:11:45 +02:00
Colin Leitner
5f16ac536e Clarified attachment documentation 2014-04-07 19:32:48 +02:00
Colin Leitner
e458380190 Added support for PDF attachments (v2) 2014-04-04 12:32:21 +02:00
Simon Sapin
b11e4e2d94 Changelog for v0.21 2014-01-11 12:13:14 +00:00
Simon Sapin
c34221d215 2014. 2014-01-10 14:27:02 +00:00
Guillaume Ayoub
dcd640ddce Version 0.20.2 2013-12-18 17:26:57 +01:00
Guillaume Ayoub
f31f270552 Version 0.20.1 in __init__ 2013-12-16 13:46:47 +01:00
Guillaume Ayoub
674598cace Fix source selector generator not ending with stylesheets using bad mimetype 2013-12-13 14:12:31 +01:00
Guillaume Ayoub
82a188e86a Merge pull request #112 from Kozea/html5lib
Switch to html5lib to parse HTML. Fix #12.
2013-10-17 05:22:51 -07:00
Florian Mounier
e3d7bad55b Be careful logging.warn is deprecated 2013-08-19 14:38:09 +02:00
Simon Sapin
3589303449 Bump version number, there is at least PDF metadata as a new feature. 2013-07-26 13:56:13 +01:00
Simon Sapin
4069a1cc36 Switch to html5lib to parse HTML. Fix #12. 2013-07-24 13:21:48 +01:00
Simon Sapin
eb08733938 Add PDF metadata parsed from HTML. Fix #77.
<title> → /Title
<meta name=author> → /Author
<meta name=description> → /Subject
<meta name=keywords> → /Keywords
<meta name=generator> → /Creator
<meta name=dcterms.created> → /CreationDate
<meta name=dcterms.modified> → /ModDate
"WeasyPrint vX.Y" → /Producer
2013-07-22 00:13:11 +01:00
Simon Sapin
783de80f30 Tentative fix for #97: w.HTML(positional_argument) crashes Python < 2.6.5 2013-07-11 18:43:11 +01:00
Simon Sapin
05e1cb22b2 URL fetching: enforce closing sockets/files with a context manager. 2013-06-20 15:16:47 +01:00
Simon Sapin
711d5aa19b Small refactoring. 2013-06-20 12:40:21 +01:00
Simon Sapin
9d5cebb5ce URL fetching: use an intermediate function rather than a wrapper 2013-06-20 12:17:03 +01:00
Simon Sapin
12966087ee Changelog for v0.19.2 2013-06-18 16:40:18 +01:00
Simon Sapin
22b4a95406 Changelog for v0.19.1 2013-04-30 17:08:33 +02:00
Simon Sapin
c5a90f09ac Changelog and docs for v0.19 2013-04-18 11:59:44 +02:00
Simon Sapin
171438f48e 2013 2013-04-03 16:23:48 +02:00
Simon Sapin
c53a01f18f Changelog for v0.18. 2013-03-30 23:44:12 +01:00
Simon Sapin
f284205e78 Changelog for v0.17.1 2013-03-18 19:40:53 +01:00
Simon Sapin
055f9a3637 Import stuff early, do not try to run --help without importing. 2013-02-25 15:21:25 +01:00
Simon Sapin
294be548b0 All tests passsing with cffi!! 2012-12-29 14:55:59 +01:00
Simon Sapin
c70b00b5b8 More WIP: cairocffi and pango cffi. 2012-12-29 01:36:06 +01:00
Simon Sapin
d2040ac77a WIP: use Pango and cairo through cffi.
Use cairocffi
Ditch pycairo, PyGTK and PyGobject-introspection.
2012-12-28 23:17:04 +01:00
Simon Sapin
773bbfe431 Changelog for JPEG embedding. 2012-12-20 20:21:13 +01:00
Simon Sapin
85bbfa9258 Rename PDF scale to zoom, have the default be 1 rather than 0.75
The 0.75 factor is an implementation detail that should not be exposed
in the API.
2012-11-22 22:31:26 +01:00
Simon Sapin
dda3817880 Merge branch 'patch-1' of https://github.com/mbarkhau/WeasyPrint 2012-11-22 20:10:09 +01:00
mbarkhau
0e09ce8ff9 Add scale factor to write_pdf of HTML class 2012-11-22 18:58:22 +01:00
Simon Sapin
6f56613441 Do not require HtmlElement.
* Do not use element.base_url which only exists in lxml.html.HtmlElement
* Use lxml.etree.HtmlParser instead of lxml.html

This is one step toward using the html5lib parser, but see
https://github.com/Kozea/WeasyPrint/pull/12
2012-11-06 13:55:39 +01:00
Simon Sapin
3072fff2e5 Docs docs docs.
But no ducks.
2012-10-08 19:51:18 +02:00
Simon Sapin
eda4bc604e Move resolution to *.write_png only. 2012-10-05 20:12:05 +02:00
Simon Sapin
e1f5863bc8 Refine docstrings. 2012-10-05 18:50:40 +02:00
Simon Sapin
a05470d006 Remove with_size in Document.write_png
The method now always returns a tuple with the size.
HTML.write_png however still does not return the size.
2012-10-05 18:27:45 +02:00
Simon Sapin
c2b2b8c2ea Escape non-ASCII characters in hyperlinks. 2012-10-04 19:12:34 +02:00
Simon Sapin
6e63903a13 Add metadata in the low-level API. 2012-10-04 13:06:41 +02:00
Simon Sapin
09ff532828 The Document is back! (But different.) 2012-10-02 18:59:02 +02:00
Simon Sapin
7f033001b7 Remove HTML.get_png_pages 2012-10-02 15:59:59 +02:00
Simon Sapin
f33c91742d Get rid of the Document class (finally!) 2012-09-25 16:37:18 +02:00
Simon Sapin
b066fcf4e8 Doc details. 2012-09-24 12:46:07 +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