https://github.com/eden-box/pdfworkshop
:page_with_curl: PDF compress tool, using iLovePDF API
https://github.com/eden-box/pdfworkshop
compression ilovepdf pdf python python3
Last synced: 7 months ago
JSON representation
:page_with_curl: PDF compress tool, using iLovePDF API
- Host: GitHub
- URL: https://github.com/eden-box/pdfworkshop
- Owner: eden-box
- License: mit
- Created: 2019-06-18T13:27:59.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T04:39:14.000Z (almost 3 years ago)
- Last Synced: 2025-02-04T09:34:21.731Z (8 months ago)
- Topics: compression, ilovepdf, pdf, python, python3
- Language: Python
- Homepage: https://pypi.org/project/pdfworkshop/
- Size: 54.7 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```bash
pip install pdfworkshop
```
or
```bash
python setup.py install
```or
```bash
pip install -e ~/local_fork_repo_path/
```## How to run
```bash
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](https://developer.ilovepdf.com/).
Any value can be configured using:
```bash
pdfworkshop config
```## Commands
- list-config - list configuration values
- config \ \ - 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
```bash
pdfworkshop list-config
```
- Define the API public_key value
```bash
pdfworkshop config public_key
```
- Run PDF compress tool
```bash
pdfworkshop run
```## License
This project is licensed under the MIT License - see [LICENSE](LICENSE) file for details.