Simple module to convert (using GhostScript) PDFs such that all fonts are converted to outlines.
pdfnofonts [options] <files>...
import pdfcnofonts
pdfnofonts.combine(...)
This library is free to use under the MIT license. Any additions are very much appreciated, in terms of suggested functionality, code, documentation, testimonials, word-of-mouth advertisement, etc. Bug reports or feature requests can be filed on GitHub. As always, the code comes with no guarantee. None of the developers can be held responsible for possible mistakes.
Download: .zip file | .tar.gz file.
(c - MIT) T.W.J. de Geus (Tom) | tom@geus.me | www.geus.me | github.com/tdegeus/pdfnofonts
conda install -c conda-forge pdfnofonts
This will install all necessary dependencies.
pip install pdfnofonts
This will install the necessary Python modules, but not GhostScript.
# Download pdfnofonts
git checkout https://github.com/tdegeus/pdfnofonts.git
cd pdfnofonts
# Install
python -m pip install .
This will install the necessary Python modules, but not GhostScript.
The usage is as follows (see pdfnofonts --help
):
Usage:
pdfnofonts [options] <files>...
Options:
-s, --silent Do not print any progress.
--verbose Verbose all commands.
-h, --help Show help.
--version Show version.
import pdfnofonts
pdfnofonts.combine(...)
-
file
(<str>
)PDF file.
-
verbose
(False
|True
)Verbose all commands and their output.