rst2pdf - Convert reStructuredText documents to PDF
rst2pdf [options] [input] [-o output]
The usual way of creating PDF from reStructuredText (ReST) is by
going through LaTeX. The rst2pdf utility provides an alternative by
producing PDF directly using the ReportLab library.
The possible values are:
- 0.
- Suppress all transformations. (Do nothing.)
- 1.
- Performs default SmartyPants transformations: quotes (including
backticks-style), em-dashes, and ellipses. "--" (dash dash) is
used to signify an em-dash; there is no support for en-dashes.
- 2.
- Same as --smart-quotes=1, except that it uses the old-school typewriter
shorthand for dashes: "--" (dash dash) for en-dashes,
"---" (dash dash dash) for em-dashes.
- 3.
- Same as --smart-quotes=2, but inverts the shorthand for dashes:
"--" (dash dash) for em-dashes, and "---" (dash dash
dash) for en-dashes.
- --blank-first-page
- Add a blank page at the beginning of the document.
- --break-side=VALUE
- How section breaks work. Can be "even", and sections start in an
even page,"odd", and sections start in odd pages, or
"any" and sections start in the next page,be it even or odd. See
also the -b option.
- --date-invariant
- Don't store the current date in the PDF. Useful mainly for the test suite,
where we don't want the PDFs to change.
- -e EXTENSIONS
- Alias for --extension-module
- --extension-module=EXTENSIONS
- Add a helper extension module to this invocation of rst2pdf (module must
end in .py and be on the python path)
- --custom-cover=FILE
- Template file used for the cover page. Default: cover.tmpl
- --use-floating-images
- Makes images with :align: attribute work more like in rst2html. Default:
False
- --use-numbered-links
- When using numbered sections, adds the numbers to all links referring to
the section headers. Default: False
- --strip-elements-with-class=CLASS
- Remove elements with this CLASS from the output. Can be used multiple
times.
$ rst2pdf rest.txt -o out.pdf
Produce an out.pdf file which is a PDF version of the ReST
document rest.txt.
Chris Lamb <chris@chris-lamb.co.uk> for the Debian
project