pdfnofonts

Script to remove fonts from PDF file (wrapper around GhostScript)


Keywords
PDF, GhostScript
License
MIT
Install
pip install pdfnofonts==1.1.0

Documentation

pdfnofonts

Travis Build status Conda Version

Simple module to convert (using GhostScript) PDFs such that all fonts are converted to outlines.

Command-line script

pdfnofonts [options] <files>...

Python module

import pdfcnofonts
pdfnofonts.combine(...)

Contents

Disclaimer

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

Getting pdfnofonts

Using conda

conda install -c conda-forge pdfnofonts

This will install all necessary dependencies.

Using PyPi

pip install pdfnofonts

This will install the necessary Python modules, but not GhostScript.

From source

# 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.

Usage

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.

Usage from Python

Basic usage

import pdfnofonts
pdfnofonts.combine(...)

Arguments

  • file (<str>)

    PDF file.

Options

  • verbose (False | True)

    Verbose all commands and their output.