Giter VIP home page Giter VIP logo

rst2pdf's Introduction

https://travis-ci.org/rst2pdf/rst2pdf.svg?branch=master

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 does not support Python 3:

$ 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

rst2pdf's People

Contributors

akrabat avatar pmaupin avatar ralsina avatar oz123 avatar lornajane avatar alexwlchan avatar pappasam avatar stephenfin avatar natebragg avatar evandotpro avatar hscdl avatar manfield avatar oesteban avatar lamby avatar eseifert avatar wkentaro avatar konstantinshemyak avatar lucas-c avatar flying-sheep avatar renatolfc avatar shreyasbapat avatar svenschwermer avatar tk0miya avatar tkhyn avatar wikiwide avatar a1s avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.