{"id":13498154,"url":"https://github.com/rst2pdf/rst2pdf","last_synced_at":"2025-10-21T20:35:12.395Z","repository":{"id":28569680,"uuid":"32087385","full_name":"rst2pdf/rst2pdf","owner":"rst2pdf","description":"Use a text editor.  Make a PDF.","archived":false,"fork":false,"pushed_at":"2024-10-16T08:40:19.000Z","size":20594,"stargazers_count":550,"open_issues_count":114,"forks_count":150,"subscribers_count":34,"default_branch":"main","last_synced_at":"2024-10-31T09:38:56.657Z","etag":null,"topics":["hacktoberfest","pdf","pdf-generation","presentation-tools","python","restructuredtext"],"latest_commit_sha":null,"homepage":"http://rst2pdf.github.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rst2pdf.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.rst","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-03-12T16:19:02.000Z","updated_at":"2024-10-31T06:29:06.000Z","dependencies_parsed_at":"2024-01-17T00:46:07.233Z","dependency_job_id":"2a99d140-93e1-496c-894f-1be3611a89f7","html_url":"https://github.com/rst2pdf/rst2pdf","commit_stats":{"total_commits":3560,"total_committers":65,"mean_commits":54.76923076923077,"dds":"0.43595505617977526","last_synced_commit":"9bb7e8ee8b597a7cd40f36e89fc10f76c0d0a5ca"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rst2pdf%2Frst2pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rst2pdf%2Frst2pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rst2pdf%2Frst2pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rst2pdf%2Frst2pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rst2pdf","download_url":"https://codeload.github.com/rst2pdf/rst2pdf/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222426446,"owners_count":16982684,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hacktoberfest","pdf","pdf-generation","presentation-tools","python","restructuredtext"],"created_at":"2024-07-31T20:00:52.448Z","updated_at":"2025-10-21T20:35:12.372Z","avatar_url":"https://github.com/rst2pdf.png","language":"Python","readme":".. image:: https://img.shields.io/pypi/v/rst2pdf.svg\n    :target: https://pypi.org/project/rst2pdf/\n\n.. image:: https://img.shields.io/pypi/pyversions/rst2pdf.svg\n    :target: https://pypi.org/project/rst2pdf/\n\n.. image:: https://img.shields.io/pypi/l/rst2pdf.svg\n    :target: https://pypi.org/project/rst2pdf/\n\n=======================================\nrst2pdf: Use a text editor. Make a PDF.\n=======================================\n\nThe usual way of creating PDF from reStructuredText is by going through LaTeX.\nThis tool provides an alternative by producing PDF directly using the ReportLab\nlibrary.\n\nMore information is available at the `main website \u003chttps://rst2pdf.org\u003e`_.\n\n\nFeatures\n--------\n\n* User-defined page layout. Multiple frames per page, multiple layouts per\n  document.\n\n* Page transitions\n\n* Cascading stylesheet mechanism, define only what you want changed.\n\n* Supports TTF and Type1 font embedding.\n\n* Any number of paragraph styles using the class directive.\n\n* Any number of character styles using text roles.\n\n* Custom page sizes and margins.\n\n* Syntax highlighter for many languages, using Pygments.\n\n* Supports embedding almost any kind of raster or vector images.\n\n* Supports hyphenation.\n\n* `Sphinx \u003chttps://www.sphinx-doc.org\u003e`_ integration\n\n* `Full user's manual \u003chttps://rst2pdf.org/manual.html\u003e`_\n\nInstallation\n------------\n\n*rst2pdf* supports Python 3.9 or greater. Version 0.102 was the last version to support Python 3.8. Version 0.99 was\nthe last version to support Python 3.6 \u0026 3.7, with 0.97 the last version to support Python 2.7.\n\nInstall from PyPI (pipx)\n~~~~~~~~~~~~~~~~~~~~~~~~\n\nThe latest released version may be installed from PyPI by using ``pipx``::\n\n    $ pipx install rst2pdf\n\nrst2pdf also has support for a number of features that require additional dependencies. Installation of all the\nrequired dependencies using ``pipx`` may be installed using::\n\n    $ pipx install rst2pdf[aafiguresupport,mathsupport,plantumlsupport,rawhtmlsupport,sphinx,svgsupport]\n\nInstall from PyPI (uv)\n~~~~~~~~~~~~~~~~~~~~~~\n\nAs with ``pipx`` above, the latest released version may be installed from PyPI by using\n`uv \u003chttps://docs.astral.sh/uv\u003e`_::\n\n    $ uv tool install rst2pdf\n\nIf you don't have ``uv``, please see `the installation docs \u003chttps://docs.astral.sh/uv/getting-started/installation/\u003e`_\n\nInstallation of all the required dependencies using ``uv`` may be installed using::\n\n    $ uv tool install rst2pdf[aafiguresupport,mathsupport,plantumlsupport,rawhtmlsupport,sphinx,svgsupport]\n\nInstall from Snap\n~~~~~~~~~~~~~~~~~\n\nIf you are using a system that supports `snaps \u003chttps://snapcraft.io/\u003e`__\nthen you can install from there with::\n\n    $ snap install rst2pdf\n\nInstall from GitHub\n~~~~~~~~~~~~~~~~~~~\n\nWork on rst2pdf has restarted on GitHub, with the goals of adding new\nfeatures, addressing outstanding issues, and not breaking anything. You\ncan clone the repository and install this version::\n\n    $ git clone https://github.com/rst2pdf/rst2pdf\n    $ cd rst2pdf\n    $ git checkout \u003cdesired-branch\u003e # if you want something other than main\n    $ uv tool install .[aafiguresupport,mathsupport,plantumlsupport,rawhtmlsupport,sphinx,svgsupport]\n\nIf you intend to work on rst2pdf's source code, see ``doc/DEVELOPERS.rst``.\n\nUsage\n-----\n\nTo convert a reStructuredText document to a PDF, simply run::\n\n    $ rst2pdf \u003cdocument name\u003e output.pdf\n\nFor information on available options, use ``-h``::\n\n    $ rst2pdf -h\n\nTo enable basic integration with Sphinx, modify your ``conf.py`` file to enable\nthe ``rst2pdf.pdfbuilder`` extension and configure the ``pdf_documents``\noption. For example::\n\n    extensions = [\n        # ...\n        'rst2pdf.pdfbuilder',\n    ]\n\n    # Grouping the document tree into PDF files. List of tuples\n    # (source start file, target name, title, author, options).\n    pdf_documents = [\n        ('index', 'MyProject', 'My Project', 'Author Name'),\n    ]\n\nFor information on the ``pdf_documents`` option and the many other options\navailable, refer to the `manual \u003chttps://rst2pdf.org/static/manual.pdf\u003e`_.\n\nContributing\n------------\n\nSee `CONTRIBUTING \u003cCONTRIBUTING.rst\u003e`_.\n\nCode of conduct\n---------------\n\nrst2pdf is an inclusive and welcoming community. To participate in this project, everyone is bound by our\n`Community Code of Conduct \u003cCODE_OF_CONDUCT.rst\u003e`_.\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frst2pdf%2Frst2pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frst2pdf%2Frst2pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frst2pdf%2Frst2pdf/lists"}