Skip to main content

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.

Release files for pdfworkshop 1.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pdfworkshop 1.1.2
File Size Uploaded
pdfworkshop-1.1.2.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pdfworkshop 1.1.2
File Interpreter ABI Platform
pdfworkshop-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.6 kB

Release files / pdfworkshop-1.1.2.tar.gz

Download URL pdfworkshop-1.1.2.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
16cae97f929ecff6cf2916e69a17cab1ebce2364f9224f276b27398cd2c9c944
BLAKE2b-256 checksum
How to use checksums
572e67ce5f64f4724f65b431bd17e32c23b063906eed8ef937d7205220135a87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.17 CPython/3.6.9 Linux/4.15.0-74-generic

Release files / pdfworkshop-1.1.2-py3-none-any.whl

Download URL pdfworkshop-1.1.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
716cbb7929934e4532af46608c5a50941551d4e793e1b22391e38187d41930c1
BLAKE2b-256 checksum
How to use checksums
99ddb1e8b4fc4180a4a0b19075d3b4254051d063d8797cfe0de6c78bb8fb02fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/0.12.17 CPython/3.6.9 Linux/4.15.0-74-generic

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page