- install rst2pdf
- register rst2pdf in your conf.py Sphinx config
extensions = ['sphinx.ext.autodoc','rst2pdf.pdfbuilder']
- run
sphinx-build -bpdf sourcedir outdir
Thursday, May 06, 2010
Sphinx PDF with rst2pdf
I deliberately omit word LaT*X in my post to avoid missing people who add '-LaT*X' in search queries. Yes, it is possible to generate PDF with Sphinx without LaT*X in cross-platform way. Yes, on Windows too. You will need only rst2pdf. Actually integration with Sphinx is well described in rst2pdf manual (text and PDF), but people find it hard to find this information, so I'll quote checklist here:
Subscribe to:
Post Comments (Atom)
Good post and this mail helped me alot in my college assignement. Thanks you for your information.
ReplyDeleteThank you for this tip!
ReplyDeleteI am surprised this tip is still actual, but I am glad it helped.
ReplyDeleteExcellent...i followed this and when i run the comment I am getting the below warning
ReplyDeleteWARNING: "pdf_documents" config value references unknown document contents
any idea how to fix this
To me it seems that there is something wrong with your configuration. The error is printed by this code -http://code.google.com/p/rst2pdf/source/browse/trunk/rst2pdf/pdfbuilder.py#145 I'd try writing to rst2pdf guys.
ReplyDelete