Skip to main content

Build Status PyPI version

A command line tool to convert files to fancy PDFs.

This tool generates nice-looking reports, letters, presentations etc. from Markdown. Other formats also work, but aren't really supported. The only Output format is PDF.

You can use custom themes with customizable fonts, logos and names.

Installation

You can install this tool by running pip install make_pdf.

Requirements

This project requires python (at leas 3.6) and pip.

Furthermore, texlive and a bunch of packages for it need to be installed. Here I opted for just installing texlive-most on Arch Linux.

If you're running this on Linux you may need to install pandoc.

Furthermore, you need the following fonts: Roboto, Inconsolata and Yanone Kaffeesatz installed.

From source

You can also build it from source yourself.

  1. Clone this repository: git clone https://git.eorlbruder.de/EorlBruder/mdp2df.git
  2. Install with pip: pip install .

Usage

By default, this tool only requires an input-file. Thus, the following command works as a minimal example:

make_pdf plain test.md

This command will create a test-plain.pdf-file. You can also provide multiple input-files make_pdf plain test.md test1.md.

All input-file-types supported by pandoc are supported, but some features will only work with markdown.

You'll get a bunch more information with make_pdf --help or using the --help flag after any command.

You'll also find much more information in the docs.

Commands

Make_pdf has four commands for generating files.

The first one you already know, it's plain. This generates a simple document, like for example a report or a handout.

Then there's newsletter. This is very similar to plain - only that every section gets displayed in a box, as well as the title.

Next we have letter. This command needs some extra metadata and generates a formal letter.

Last but not least there's presentation which generates a beamer-presentation.

Every command will generate a file with the name of the mode as its suffix, so for example make_pdf letter test.md generates test-letter.pdf.

Options

You can provide every command with options. You can find out which ones are available in particular by using make_pdf <command> --help.

Metadata

Files generally get generated with their metadata. You have several options to provide them.

First, if you're using Markdown you can provide the title, author and date at the beginning of the file:

% Title
% Author
% Date

You can also provide them in a yaml-block:

---
title: Title
author: Author
date: Date
---

You can also provide them via a separate yml-file, which you just provide together with the input-files:

make_pdf plain metadata.yml file.md

Last, there's also the option to provide them as options:

make_pdf plain file.md --title Title --author Author --date Date

If you don't provide a date, it will be automatically set to today's date. If you don't want this behaviour, you can disable it with the --no-automatic-date-option.

Contribute

To see how to contribute please have a look at the CONTRIBUTING.md-file.

Metadata

Release files for make_pdf 0.1.0.post4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for make_pdf 0.1.0.post4
File Size Uploaded Provenance
make_pdf-0.1.0.post4.tar.gz 57.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for make_pdf 0.1.0.post4
File Interpreter ABI Platform
make_pdf-0.1.0.post4-py3-none-any.whl Python 3 none any Details

Total release size: 116.5 kB

Release files / make_pdf-0.1.0.post4.tar.gz

Download URL make_pdf-0.1.0.post4.tar.gz
Size 57.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8a95770f620a150c4d9224f7461638ea7bf8f375b658a2243aa317283ed280cc
BLAKE2b-256 checksum
How to use checksums
6303ada60aa8793ceedc4ba53ff8d6bafe1e54a2ceb1dadee08d995d93a3af9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.0

Release files / make_pdf-0.1.0.post4-py3-none-any.whl

Download URL make_pdf-0.1.0.post4-py3-none-any.whl
Size 58.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ab5d2301424a93c7c53b4e909bf34ec99b6d177303dfc7a8ad18a1c06879a92
BLAKE2b-256 checksum
How to use checksums
d4d71946b98881549f617a0817ac4e88173c56b9cf6137288e12d887eb2380ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.0

Security for make_pdf 0.1.0.post4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page