Sphinx WeasyPrint builder
Sphinx WeasyPrint builder is a PDF generator for Sphinx without usage of LaTeX.
You can install it with pip:
pip install sphinx_weasyprint_builder
Or with setup.py:
python setup.py install
You can configure your output with these options:
Each one has the same behavior of its equivalent for html builder.
In addition, you can set these three variables:
This builder analyzes generated HTML to extract with BeautifulSoup a footer and a header. They are removed from main HTML and reinjected on each page, conforming to theme's CSS. By default, no header and no footer.
Use compatible selectors for BeautifulSoup.
Just launch the following:
Why an other PDF builder for Sphinx?
LaTeX is really hard to use and to personalize. There's also an other project to make PDF without LaTeX.
This plugin is just singlehtml output with conversion to PDF.