Skip to content

b4stien/wktopdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wktopdf - wkhtmltopdf python bindings

wktopdf is a set of Python bindings to the whtmltopdf C library. wktopdf works with Python 2&3 as well as PyPy, and is released under the MIT license.

It aims at providing a (more) convenient way to generate PDF files from HTML resources. A mandatory code sample:

>>> pdf = wktopdf.from_html('<h1>Hello world!</h1>')
>>> pdf.bytes
...
>>> pdf.save_to_file('hello_world.pdf')

Library status

Even though wktopdf is already working for some simple cases, it should still be considered highly experimental.

How to install

TODO

Inspiration

Pygit2 has to be credited for the way these bindings are written as most of the setup code and the C interface is extracted from there.

About

Python bindings for wkhtmltopdf C library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors