PDFPipe
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.
Installation
Grab the file pdfpipe.py and execute it, or:
pip install pdfpipe
Or, you can download the source and
python setup.py install
or
sudo python setup.py install
if required.
Command-Line Usage
In your command-line:
echo "Hello from a PDF file named output.pdf" | pdfpipe
Or
pdfpipe -p -b -o printable.pdf -s 14 -g Letter --title "Reports for today" report*.txt
Type
pdfpipe --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.:
./pdfpipe.py unicode_text.txt -f "/Library/Fonts/Arial Unicode.ttf"
Metadata
Release files for pdfpipe 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pdfpipe-1.0.tar.gz | 4.2 kB | Without provenance | Details for pdfpipe-1.0.tar.gz |
Release files / pdfpipe-1.0.tar.gz
| Download URL | pdfpipe-1.0.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
39866f648b311938a010db4df598395e6426484701fd056f15ad5de10c755b14
|
|
BLAKE2b-256 checksum How to use checksums |
a1adceb895887b5beb5d01f01ecc8f696259b2192cc348f4d96151618fc6a811
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pdfpipe 1.0
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.