PDF compressor utility, using iLovePDF API
Project description
pdfworkshop
PDF compress tool, using iLovePDF API
Prerequisites
The application is compatible with Windows and Linux based systems. Python version 3.4 or above is assumed to be installed, as well as pip package manager utility and setuptools module.
Installation
pip install pdfworkshop
or
python setup.py install
How to run
pdfworkshop -h
Configuration
The public_key value must be defined before using the tool for the first time. The required public key can be obtained by creating a developer account in iLovePDF. The value can be configured using:
pdfworkshop config public_key new_public_key_value
The input/ouput directories can also be configured. Their default values are set to a directory called 'input' and 'output' according to the current path from where the tool was called.
Commands
- list-config - list tool configuration values
- config <option> <value> - edit tool configuration values
- run - compress all PDF files stored in input_dir, storing the result in output_dir
Example run
To exercise some of the available commands, one can try to:
- List the current configuration
pdfworkshop list-config
- Define the API public_key value
pdfworkshop config public_key <new_public_key>
- Run PDF compress tool
pdfworkshop run
License
This project is licensed under the MIT License - see LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pdfworkshop-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa3c23722fce8369470e5eee502eba295f4b2ef935e3af34fafd2a32cc25f6a9 |
|
MD5 | d01e8c12b0026a5c214b8a1ef38f98a4 |
|
BLAKE2b-256 | e6985ac5a44a0a70c876627dc92e060f8bbe35b81e01ed341a3ad78ae3d2ea70 |