Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

Python command line tool to quickly create PDFs from text content

Project Description

A command-line tool in Python. Pass it one or more text files, or pipe something from stdin, and it will produce a text-only PDF file.

Handy for quickly printing plain text content in a clean and predictable format. Specify font, font size, orientation and paper size from the command line.


Grab the file and execute it, or:

pip install pdfpipe

Or, you can download the source and

python install


sudo python install

if required.

Command-Line Usage

In your command-line:

echo "Hello from a PDF file named output.pdf" |

Or -p -b -o printable.pdf -s 14 -g Letter --title "Reports for today" report*.txt

Type --help

for more information on the available options.

Fonts and Unicode

The FPDF library knows about the following font families:

Courier, Arial, Times, Symbol, ZapfDingbats

Which can all be chosen as the font with the -f option. By default, Courier will be used for the monospace font, Arial (helvetica) for proportional (-p).

If you need to print non-latin text, or want a different font for any other reason, instead specify the full path to a TTF font file. E.g.:

./ unicode_text.txt -f "/Library/Fonts/Arial Unicode.ttf"

Release history Release notifications

This version
History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pdfpipe-1.0.1.tar.gz (4.4 kB) Copy SHA256 hash SHA256 Source None Sep 25, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page