Metadata-Version: 2.4
Name: gs-pdf-compress
Version: 0.2.1
Summary: Compress PDF files with Ghostscript
Project-URL: Homepage, https://github.com/clorteau/pdfcompress
Project-URL: Issues, https://github.com/clorteau/pdfcompress/issues
Author-email: Clem Lorteau <spam@lorteau.fr>
License-Expression: MIT
License-File: LICENSE.txt
Keywords: compression,ghostscript,pdf,python,qt,qt6
Classifier: Environment :: X11 Applications :: Qt
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.6
Requires-Dist: pyqt6
Description-Content-Type: text/markdown

# PDFCompress

Compress PDF files using Ghostscript.

# Requirements

* Python 3
* PyQT 6
* Ghostscript

# Installation

## Archlinux

`$ yay -S gs-pdf-compress`

## from PyPI

`$ pipx install gs-pdf-compress`

## from source or wheel package

`$ pipx install <package_file>`

# Usage

## Command line

```
$ ./pdfcompress.py -h
usage: pdfcompress.py [-h] [-i INPUT] [-o OUTPUT] [-c {screen,ebook,prepress,printer,default}]
[-f] [--version]Compress a PDF file using Ghostscript.options:
-h, --help            show this help message and exit
-i, --input INPUT     Path to the input PDF file (default: None)
-o, --output OUTPUT   Path to the output compressed PDF file (default: None)
-c, --compression {screen,ebook,prepress,printer,default}
Compression level: default, screen (72 dpi), ebook (150 dpi), printer
(300 dpi), prepress (highest) (default: default)
-f, --force           Force overwrite of output file without confirmation (default: False)
--version             show program's version number and exit
```

## QT Interface

![screenshot](https://lorteau.fr/pdfcompress/screenshot.png)
