Skip to main content

Convert reStructured Text to PDF via ReportLab.

Project description

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).

  • Full user’s manual

Installation and use

Install from PyPI

The latest released version may be installed from PyPI by using pip or easy_install. It does not support Python 3:

sudo pip install 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 my_clone_name
cd my_clone_name
git checkout <desired-branch> # if you want something other than master
sudo python setup.py install

You may want to install it in a virtualenv, but that is beyond the scope of this readme.

Quick-start

To convert a restructuredText document to a PDF, simply:

rst2pdf <document name> output.pdf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rst2pdf-0.94.tar.gz (112.7 kB view details)

Uploaded Source

Built Distribution

rst2pdf-0.94-py2-none-any.whl (168.2 kB view details)

Uploaded Python 2

File details

Details for the file rst2pdf-0.94.tar.gz.

File metadata

  • Download URL: rst2pdf-0.94.tar.gz
  • Upload date:
  • Size: 112.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15

File hashes

Hashes for rst2pdf-0.94.tar.gz
Algorithm Hash digest
SHA256 ad67095dbc15f9d8a34452874c776f5851ef3c0520674849fa396283192a2508
MD5 5185fb021ecb7f43ed543aee3c149b18
BLAKE2b-256 8f28274ed6780007112ca8e498f4eb213369e67f984ea0eb770fe24a4a8d1af7

See more details on using hashes here.

File details

Details for the file rst2pdf-0.94-py2-none-any.whl.

File metadata

  • Download URL: rst2pdf-0.94-py2-none-any.whl
  • Upload date:
  • Size: 168.2 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/2.7.15

File hashes

Hashes for rst2pdf-0.94-py2-none-any.whl
Algorithm Hash digest
SHA256 fb9c59780f5a5a2ae048920c3e5a39163606a5491add5f19f571e7e847715541
MD5 81763f2e9aceac90d81aa55294857740
BLAKE2b-256 8fe743d9d4825b84ede713f8bced41a7cb1c723a01ae6616799a23e0734cf36b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page