PDF

rst2pdf – Convert reStructuredText Documents to PDF

rst2pdf is a command-line application that converts reStructuredText documents directly into PDF files. It uses ReportLab rather than passing documents through a LaTeX toolchain, making it a useful option for automated documentation, publishing scripts and Python-based workflows. Output appearance can be extensively controlled through reusable stylesheets and page templates.

This is free and open source software.

Key Features

  • Converts reStructuredText source files directly into PDF documents from the command line.
  • Uses ReportLab for PDF generation without requiring an intermediate LaTeX document.
  • Supports user-defined page templates, page sizes, margins and document layouts.
  • Allows multiple frames on a page and multiple page layouts within one document.
  • Provides a cascading stylesheet mechanism for controlling typography, spacing, colours and other presentation details.
  • Accepts YAML stylesheets that can be maintained separately and reused across documents.
  • Embeds TrueType and Type 1 fonts in generated PDF files.
  • Supports custom paragraph styles through reStructuredText class directives.
  • Supports character-level formatting through custom interpreted-text roles.
  • Uses Pygments to provide syntax highlighting for source-code examples.
  • Embeds raster images and supported vector graphics in generated documents.
  • Offers optional hyphenation to improve line breaking and paragraph layout.
  • Includes Sphinx integration for producing PDF versions of larger documentation projects.
  • Can add diagrams through optional integrations including PlantUML and aafigure.
  • Provides optional support for mathematical content, SVG graphics and raw HTML processing.
  • Supports page transitions and other presentation-oriented PDF features.
  • Can be installed in an isolated environment using tools such as pipx or uv.
  • Runs on contemporary Python releases and is suitable for scripted or continuous-integration workflows.

Website: github.com/rst2pdf/rst2pdf
Support:
Developer: rst2pdf maintainers
License: MIT License

rst2pdf is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

PDF Tools
ScribusDesktop page layout software producing commercial grade PDF output
ONLYOFFICECloud online office suite with great PDF functionality
LibreOffice DrawVector graphics editor and diagramming tool that can create PDFs
PDFBoxJava tool for working with PDF documents
GhostscriptGhostscript PostScript / PDF interpreter
DangerzoneMake PDFs safe
pdf-compressCompress an overly large PDF file to smaller monochrome
PoDoFoEasy to use PDF parsing and creation library
veraPDFIndustry supported PDF/A validation
pdfgrepCommand-line utility to search text in PDF files
RescribeDesktop tool for performing OCR
PDF4QTPDF editor
Scans to PDFCreate small, searchable PDFs from scanned documents
rst2pdfConverts reStructuredText files into styled documents
Paper ClipEdit PDF document metadata
open-pdf-signAdds standards-based digital signatures, timestamps and validation
pdfposterPrint large posters on multiple sheets
plakativStretches PDF or raster image across multiple pages
PDF Metadata EditorSimple GUI tool
unlockRSimple tool to decrypt PDF files
pdfresurrectAnalyze PDF documents
DensifyCompress PDF files using Ghostscript
IceBoxConverts images into a PDF file

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted