Metadata-Version: 2.1
Name: pdf-compressor
Version: 0.1.0
Summary: CLI + Python API for batch compressing PDFs with iLovePDF.com
Home-page: https://github.com/janosh/pdf-compressor
Author: Janosh Riebesell
Author-email: janosh.riebesell@gmail.com
License: MIT
Description: <p align="center">
          <img src="static/favicon.svg" alt="Svelte Masonry" height=150>
        </p>
        
        [![Tests](https://github.com/janosh/pdf-compressor/workflows/Tests/badge.svg)](https://github.com/janosh/pdf-compressor/actions)
        [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/janosh/pdf-compressor/main.svg)](https://results.pre-commit.ci/latest/github/janosh/pdf-compressor/main)
        [![PyPI](https://img.shields.io/pypi/v/pdf-compressor)](https://pypi.org/project/pdf-compressor)
        [![This project supports Python 3.8+](https://img.shields.io/badge/Python-3.8+-blue.svg)](https://python.org/downloads)
        
        > The code in `ilovepdf.py` was inspired by Andrea Bruschi's [`pylovepdf`](https://github.com/AndyCyberSec/pylovepdf).
        
        Command line PDF compression powered by the free [iLovePDF API](https://developer.ilovepdf.com).
        
        ## Installation
        
        ```sh
        pip install pdf-compressor
        ```
        
        ## Usage
        
        Tell `pdf-compressor` your iLovePDF API key (if you haven't yet, get one by signing up at <https://developer.ilovepdf.com/signup>):
        
        ```sh
        pdf-compressor --set-api-key project_public_7c854a9db0...
        ```
        
        Then start compressing!
        
        ```sh
        pdf-compressor **/*.pdf
        ```
        
        ## Options
        
        `pdf-compressor` has the following flags:
        
        - `-i/--inplace` (optional, default: `False`): Whether to compress PDFs in place.
        - `-s/--suffix` (optional, default: `-compressed`): String to append to the filename of compressed PDFs. Mutually exclusive with `--inplace` flag.
        - `--set-api-key` (optional): Set the public key needed to authenticate with the iLovePDF API.
        - `--debug` (optional, default: `False`): When true, iLovePDF won't process the request but only reports the parameters that would have been sent to the server.
        - `-v/--version` (optional): Get the current version.
        
Keywords: pdf,compression,ilovepdf,cli
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Provides-Extra: test
