rst2pdf: Use a text editor. Make a PDF.
The usual way of creating PDF from reStructuredText is by going through LaTeX. This tool provides an alternative by producing PDF directly using the ReportLab library.
More information is available at the main website
Features
User-defined page layout. Multiple frames per page, multiple layouts per document.
Page transitions
Cascading stylesheet mechanism, define only what you want changed.
Supports TTF and Type1 font embedding.
Any number of paragraph styles using the class directive.
Any number of character styles using text roles.
Custom page sizes and margins.
Syntax highlighter for many languages, using Pygments.
Supports embedding almost any kind of raster or vector images.
Supports hyphenation and kerning (using wordaxe).
Installation
Install from PyPI
The latest released version may be installed from PyPI by using pip. It supports Python 2.7 or 3.6+:
$ pip install --user rst2pdf
Install from GitHub
Work on rst2pdf has restarted on GitHub, with the goals of supporting Python 3, addressing outstanding issues, and not breaking anything. You can clone the repository and install this version:
$ git clone https://github.com/rst2pdf/rst2pdf rst2pdf $ cd rst2pdf $ git checkout <desired-branch> # if you want something other than master $ pip install --user .
You may want to install it in a virtualenv, but that is beyond the scope of this readme.
Usage
To convert a restructuredText document to a PDF, simply run:
$ rst2pdf <document name> output.pdf
Metadata
Release files for rst2pdf 0.96
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rst2pdf-0.96.tar.gz | 109.6 kB | Without provenance | Details for rst2pdf-0.96.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rst2pdf-0.96-py3-none-any.whl | Python 3 | none | any | Details for rst2pdf-0.96-py3-none-any.whl |
Total release size: 274.8 kB
Release files / rst2pdf-0.96.tar.gz
| Download URL | rst2pdf-0.96.tar.gz |
|---|---|
| Size | 109.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69ce86b8cfad8da366e0c52caccd9d1aa617e69ca5c3a50feb5519e829d198c4
|
|
BLAKE2b-256 checksum How to use checksums |
6cee1f50a67549188a6967b485779e08f6585cc27765e7039598f7b3dc0fa7d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5
|
Release files / rst2pdf-0.96-py3-none-any.whl
| Download URL | rst2pdf-0.96-py3-none-any.whl |
|---|---|
| Size | 165.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
69111f6e84b65110e7cc75d468eb3c941dfaaca53cd2ee2ece29981a65b6fe8c
|
|
BLAKE2b-256 checksum How to use checksums |
c3629b54e97954e2e8d780212e034bcd7c06da13054b165b51e6b71b5630e5e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5
|
Security for rst2pdf 0.96
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.