Guillaume Ayoub
8810f82841
Add an option to follow presentational hints
2016-08-30 19:10:53 +02:00
Guillaume Ayoub
b2a5d7a98f
Add a presentational-hints option
2016-08-30 18:15:30 +02:00
Guillaume Ayoub
c5c06e6c01
Version 0.31
2016-08-28 16:25:35 +02:00
Guillaume Ayoub
ba66649c19
Version 0.30
2016-07-18 17:33:42 +02:00
Guillaume Ayoub
da2e3b3f18
Fix the way *_encoding properties are handled
...
See #334
2016-07-15 18:31:58 +02:00
Guillaume Ayoub
f1019b876a
Fix the html5lib-0.99999999 support
...
Fix #334 .
2016-07-15 17:50:31 +02:00
Guillaume Ayoub
f90f20519e
Version 0.29
2016-06-17 14:09:59 +02:00
Guillaume Ayoub
35ea72b3f6
Version 0.28
2016-05-16 11:52:45 +02:00
Guillaume Ayoub
208cf6b89a
Version 0.27
2016-04-08 13:23:54 +02:00
Guillaume Ayoub
41575e2f24
Version 0.26
2016-01-29 19:55:36 +01:00
Guillaume Ayoub
da96902bda
Fix many PEP8 errors and warnings
...
- Put line breaks after operators (that's OK)
- Don't assign lambdas, use functions (well, that's really explicit in
PEP8, it's really verbose but why not)
- Put imports at the beginning of the file (only special cases for us)
2016-01-15 12:48:25 +01:00
Guillaume Ayoub
c47ed0c8f6
Version 0.25
2015-12-17 12:01:34 +01:00
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
Simon Sapin
20fe60040d
Document low-level output functions.
2012-09-20 17:57:15 +02:00
Simon Sapin
933554f7ed
Moar docs for the low-level API.
2012-09-20 17:21:44 +02:00
Simon Sapin
19dd654678
Adapt docs for 0.15
2012-09-20 17:08:03 +02:00
Simon Sapin
a0853a3fc1
Merge branch 'sphinx-doc'
2012-09-20 16:53:33 +02:00
Simon Sapin
87d5741376
Integrate the sphinx docs with docstrings.
2012-09-19 17:37:52 +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
a09eb52b97
Tag v0.14
2012-08-03 17:55:14 +02:00
Simon Sapin
2614821fa9
Add support for <base href="..."> element in HTML.
2012-08-03 15:22:26 +02:00
Simon Sapin
4abf401f9e
Simplify Document and remove magic properties.
2012-08-03 13:00:14 +02:00
Simon Sapin
1864d3365a
s/medium/media_type/ s/user_agent_stylesheets/ua_stylesheets/
2012-08-02 13:04:31 +02:00
Chung Wu
a51562149c
Can specify the @media medium to use (defaults to print)
2012-08-01 19:09:48 -07:00
Simon Sapin
4c0bcc3b6e
Mention pixbuf in the changelog.
2012-07-31 13:01:52 +02:00
Simon Sapin
c39d4119c8
Fix MIME type registering: always use native strings.
2012-07-29 15:13:45 +02:00
Simon Sapin
67dc1c80e8
Start the changelog for 0.14
2012-07-28 22:33:20 +02:00
Simon Sapin
1fa71a7036
Tag v0.13
2012-07-23 19:15:19 +02:00
Simon Sapin
714fc401d0
Tag v0.12
2012-07-19 11:55:21 +02:00
Simon Sapin
4a6fff4384
Make mime_type optional in custom URL fetchers
2012-07-18 14:34:43 +02:00
Simon Sapin
a0cf7c7617
Test url_fetcher, make it work on stylesheets
2012-07-13 13:21:59 +02:00
Simon Sapin
2768dea548
Add `url_fetcher
` to the public API
2012-07-13 12:24:55 +02:00
Simon Sapin
5ca1d9ab3a
Next is 0.12. Or is it?
2012-07-04 19:53:20 +02:00
Simon Sapin
ffda839f5e
Add the changelog for 0.11
2012-07-04 14:29:11 +02:00
Simon Sapin
f01e714192
Tag v0.10
2012-06-25 16:12:04 +02:00
Simon Sapin
541214ee71
Add a resolution
parameter for PNG output in the public API.
...
The resolution is counted in PNG pixels per CSS inch.
Note however that CSS pixels are always 1/96 CSS inch.
With the default resolution of 96, CSS pixels match PNG pixels.
2012-06-22 08:49:48 +02:00
Simon Sapin
040eb765df
Remove backends in favor of methods on Document
...
This much genericity was not that useful.
2012-06-21 17:22:01 +02:00
Simon Sapin
fc2fdb622c
Add get_png_pages to the public API
2012-06-21 11:33:19 +02:00
Simon Sapin
a83ff7b0ee
Fix #772 : Use redirected URLs as base URLs
2012-06-14 22:08:34 +02:00
Simon Sapin
61c335766a
Next is 0.10
2012-06-06 11:21:06 +02:00
Simon Sapin
4ec6757077
Tag v0.9
2012-06-04 18:57:50 +02:00
Simon Sapin
4f4c99e35c
Remove unused imports.
2012-05-31 14:41:01 +02:00
Simon Sapin
b7cf69dc66
Download HTML URLs with the same mechanism as everything else.
...
Previously we passed the URLs to lxml.
lxml does not support as many protocols, and did not send
any User-Agent HTTP header.
2012-05-31 14:38:34 +02:00
Simon Sapin
76430b5269
Also accept a parsed lxml tree for the HTML class.
2012-05-24 17:41:05 +02:00
Simon Sapin
d694a98350
Rename the utils module to 'urls'
2012-05-23 15:13:57 +02:00
Simon Sapin
b6ea3821b8
Remove unused imports
2012-05-22 16:34:41 +02:00
Simon Sapin
61dc177573
Refactor the PNG/PDF differences into a new 'backends' module.
2012-05-22 16:19:09 +02:00
Simon Sapin
d7676f8081
Test hyperlinks, fix internal hyperlink parsing.
2012-05-21 18:43:08 +02:00
Simon Sapin
1ff949b888
Have the PDF post-process run on Python3 (links are broken)
2012-05-15 13:40:36 +02:00
Simon Sapin
e1040a8d66
Next is 0.9
2012-05-07 18:32:07 +02:00