Skip to main content

Convert reStructured Text to PDF via ReportLab.

Project description

https://travis-ci.org/rst2pdf/rst2pdf.svg?branch=master https://img.shields.io/pypi/v/rst2pdf.svg https://img.shields.io/pypi/pyversions/rst2pdf.svg https://img.shields.io/pypi/l/rst2pdf.svg

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

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 Snap

If you are using a system that supports snaps then you can install from there with:

$ snap 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 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

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.97.tar.gz (140.0 kB view details)

Uploaded Source

Built Distribution

rst2pdf-0.97-py3-none-any.whl (165.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rst2pdf-0.97.tar.gz
  • Upload date:
  • Size: 140.0 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for rst2pdf-0.97.tar.gz
Algorithm Hash digest
SHA256 343a2a75b2fe8cdf174c170a547a43b294129e68e24be8c18a6b9d1494c9f0b1
MD5 b63d59e1abc28b22fb2e699010754fdf
BLAKE2b-256 844848d7caf18915e46abbf8d9e9602176851ae5268a3babdaa98147f8be2c12

See more details on using hashes here.

File details

Details for the file rst2pdf-0.97-py3-none-any.whl.

File metadata

  • Download URL: rst2pdf-0.97-py3-none-any.whl
  • Upload date:
  • Size: 165.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for rst2pdf-0.97-py3-none-any.whl
Algorithm Hash digest
SHA256 dd5490112a35ac8dc5bbc64be01ee460d1fcde80086560ca2bda8ee6e6f1ccb1
MD5 dbeb6f0f5869236524d3ee34e6c8bd46
BLAKE2b-256 84eadd042d2c37a1f3090f6ccf809eacff42fa29f96f6f795ca27e88617f7cf8

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