{"repo":"ljpengelen/markdown-to-pdf","free":true,"listed":false,"github":"https://github.com/ljpengelen/markdown-to-pdf","clone":"git clone https://github.com/ljpengelen/markdown-to-pdf.git","description":"A script to convert Markdown to PDF","language":"Python","stars":74,"topics":["markdown","pdf-generation","python","css"],"license":null,"category":"media-processing","readme_excerpt":"Markdown to PDF This repository contains a simple script that converts Markdown and CSS into PDF documents. The heavy lifting is done by Python-Markdown, a tool for generating HTML from Markdown, and WeasyPrint, a tool for generating PDF documents from HTML and CSS. With this script, my CV in Markdown is converted into a PDF document. Getting Started 1. Install pyenv, a tool for managing Python versions. 1. The file .python-version in the root folder specifies the Python version required by the conversion script. Navigate to the root folder and execute pyenv install to install this Python version. 1. Install cairo , pango , and gdk-pixbuf . On macOS, these tools can be installed with brew . 1. Install pipenv by executing pip install pipenv . There's an issue related to language and region settings that you might run into on Macs, but it's easy to resolve. 1. Create a new virtual environment with all dependencies by executing pipenv install --dev --ignore-pipfile . The flag ignore-pipfile is used to indicate that the exact versions of the dependencies as specified in Pipfile.lock should be installed. The flag dev is used to also install development dependencies. Activating the virtual environment Before executing any of the commands below, you need to activate the virtual environment. You can do so by executing pipenv shell . Your command prompt should now indicate that you've activated the virtual environment. It can be deactivated by executing exit . Generating PDFs The exam","default_branch":null,"files":null,"tree":[],"storefront":"/r/ljpengelen","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ljpengelen/markdown-to-pdf/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}