Skip to content

bowmanjd/pyweasyprintdemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyweasyprintdemo

Examples for using WeasyPrint as a Python library.

Feel free to read the related article.

Installation

Clone this repository, then make it the working directory:

git clone https://github.com/bowmanjd/pyweasyprintdemo.git
cd pyweasyprintdemo

Recommended: create a virtual environment and activate it. Then, pip install -e .

Usage

mkdir out
python weasyprintdemo.py sample.html out/sample.pdf

If you installed in a currently active virtual environment, as recommended above, you can use a shorter form: weasyprintdemo sample.html out/sample.pdf

Contributing

Please feel free to submit pull requests and/or open issues.

License

Copyright 2020 Jonathan Bowman. All documentation and code contained in this repository may be freely shared in compliance with the Apache License, Version 2.0, and is provided “AS IS” without warranties or conditions of any kind.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages