How to create a PDF out of Sphinx documentation tool?
-
I am able to generate HTML documentation using Sphinx. But how to create an all in one PDF of my documentation?
-
Answer:
If you have checked the official Sphinx user guide, you might have noticed that it mentioned a tool called rst2pdf, which is relatively easy to handle compared with other alternatives. rst2pdf user manual (you can simply refer to the "Sphinx" chapter) http://sphinx.pocoo.org/sphinx-rst2pdf.pdf
Zejian Zhang at Quora Visit the source
Other answers
1. Install rst2pdf - use your package manager (or) - pip install rst2pdf (or) - easy_install rst2pdf 2. Add rst2pdf to the list of extensions in http://conf.py extensions = ['rst2pdf.pdfbuilder'] This list will be empty if you accepted the defaults when the project was setup. If not, just append 'rst2pdf.pdfbuilder' to the list. 3. Add a pdf_documents variable to http://conf.py pdf_documents = [('index', u'rst2pdf', u'Sample rst2pdf doc', u'Your Name'),] # index - master document # rst2pdf - name of the generated pdf # Sample rst2pdf doc - title of the pdf # Your Name - author name in the pdf For all supported options, please check the manual http://lateral.netmanagers.com.ar/static/manual.pdf. There is also a Sphinx related section towards the end of the manual. 4. Generate pdf sphinx-build -b pdf source build/pdf The generated pdf will be in the build/pdf directory. For convenience, you can add this command to Makefile/make.bat (Windows)
Vimalkumar Velayudhan
Related Q & A:
- How To Create A Profile In Facebook?Best solution by Yahoo! Answers
- How To Create A Forum?Best solution by Super User
- How To Create A Wap Site For Free?Best solution by Yahoo! Answers
- How to create a semantic search box and engines?Best solution by Stack Overflow
- How to read a PDF file with PHP?Best solution by Stack Overflow
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.