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.6 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
or
pip install -e ~/local_fork_repo_path/
How to run
pdfworkshop -h
Configuration
name | default | description |
---|---|---|
input_dir | ./ | Directory where PDF files will be collected from. |
output_dir | ./output/ | Directory where the compressed PDF files will be stored. |
public_key | "" | Your public API key. |
suffix | "" | The suffix given to compressed files (before the extension). |
recursive | False | Boolean indicating if input_dir must be scanned recursively. |
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 on iLovePDF. Any value can be configured using:
pdfworkshop config <config_name> <new_config_value>
Commands
- list-config - list configuration values
- config <option> <value> - edit tool configuration values
- run - compress all PDF files stored in input_dir, storing the result in output_dir
How to use
By default, the PDF files to compress should be on the directory from where the tool will be called. After using the run command, an output directory will be created, where all compressed files will be stored.
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
File details
Details for the file pdfworkshop-1.1.2.tar.gz
.
File metadata
- Download URL: pdfworkshop-1.1.2.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.6.9 Linux/4.15.0-74-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16cae97f929ecff6cf2916e69a17cab1ebce2364f9224f276b27398cd2c9c944 |
|
MD5 | 32531c27ec93d2b5283436efb8605d1e |
|
BLAKE2b-256 | 572e67ce5f64f4724f65b431bd17e32c23b063906eed8ef937d7205220135a87 |
File details
Details for the file pdfworkshop-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: pdfworkshop-1.1.2-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/3.6.9 Linux/4.15.0-74-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 716cbb7929934e4532af46608c5a50941551d4e793e1b22391e38187d41930c1 |
|
MD5 | 8f5489487e648b61963950da4fd260c3 |
|
BLAKE2b-256 | 99ddb1e8b4fc4180a4a0b19075d3b4254051d063d8797cfe0de6c78bb8fb02fa |