Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tdegeus/pdfnofonts
Remove all fonts from PDF file using Ghostscript
https://github.com/tdegeus/pdfnofonts
Last synced: 11 days ago
JSON representation
Remove all fonts from PDF file using Ghostscript
- Host: GitHub
- URL: https://github.com/tdegeus/pdfnofonts
- Owner: tdegeus
- License: mit
- Created: 2019-11-08T17:44:34.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-29T09:44:33.000Z (almost 5 years ago)
- Last Synced: 2024-04-16T06:53:19.134Z (7 months ago)
- Language: Python
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pdfnofonts
[![Travis](https://travis-ci.org/tdegeus/pdfnofonts.svg?branch=master)](https://travis-ci.org/tdegeus/pdfnofonts)
[![Build status](https://ci.appveyor.com/api/projects/status/olcapcdgsfnp1wj4?svg=true)](https://ci.appveyor.com/project/tdegeus/pdfnofonts)
[![Conda Version](https://img.shields.io/conda/vn/conda-forge/pdfnofonts.svg)](https://anaconda.org/conda-forge/pdfnofonts)Simple module to convert (using GhostScript) PDFs such that all fonts are converted to outlines.
## Command-line script
```none
pdfnofonts [options] ...
```## Python module
```python
import pdfcnofonts
pdfnofonts.combine(...)
```# Contents
- [Disclaimer](#disclaimer)
- [Getting pdfnofonts](#getting-pdfnofonts)
- [Using conda](#using-conda)
- [Using PyPi](#using-pypi)
- [From source](#from-source)
- [Usage](#usage)
- [Usage from Python](#usage-from-python)
- [Basic usage](#basic-usage)
- [Arguments](#arguments)
- [Options](#options)# Disclaimer
This library is free to use under the [MIT license](https://github.com/tdegeus/pdfnofonts/blob/master/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](https://github.com/tdegeus/pdfnofonts). As always, the code comes with no guarantee. None of the developers can be held responsible for possible mistakes.
Download: [.zip file](https://github.com/tdegeus/pdfnofonts/zipball/master) | [.tar.gz file](https://github.com/tdegeus/pdfnofonts/tarball/master).
(c - [MIT](https://github.com/tdegeus/pdfnofonts/blob/master/LICENSE)) T.W.J. de Geus (Tom) | [email protected] | www.geus.me | [github.com/tdegeus/pdfnofonts](https://github.com/tdegeus/pdfnofonts)
# Getting pdfnofonts
## Using conda
```bash
conda install -c conda-forge pdfnofonts
```This will install all necessary dependencies.
## Using PyPi
```bash
pip install pdfnofonts
```This will install the necessary Python modules, **but not GhostScript**.
## From source
```bash
# 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`):
```none
Usage:
pdfnofonts [options] ...Options:
-s, --silent Do not print any progress.
--verbose Verbose all commands.
-h, --help Show help.
--version Show version.
```# Usage from Python
## Basic usage
```python
import pdfnofonts
pdfnofonts.combine(...)
```## Arguments
+ `file` (``)
PDF file.## Options
+ `verbose` (**`False`** | `True`)
Verbose all commands and their output.