Skip to main content

Compress PDF files with Ghostscript

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gs_pdf_compress-0.2.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gs_pdf_compress-0.2.1-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file gs_pdf_compress-0.2.1.tar.gz.

File metadata

  • Download URL: gs_pdf_compress-0.2.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for gs_pdf_compress-0.2.1.tar.gz
Algorithm Hash digest
SHA256 3ec2c6f9d9d4d0e57bf773f6f567476f95320c56244a808c60f6eb39177154e1
MD5 e3fc290b247740b8fbb5a313006eeb9a
BLAKE2b-256 6b1af3df04e8481943129d181ce8049725657ee572444e9b248757037700d697

See more details on using hashes here.

File details

Details for the file gs_pdf_compress-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gs_pdf_compress-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 45d8faf61d3ea5a689966caf09e3716b1f6e133f07ef3b4d551d429939d21606
MD5 8d1b646aec06e467f5d6dc4cc0030e07
BLAKE2b-256 db406e0d151c416736e9370b55f8675af6b8cd9df539c01bb51d384b1f37fcfd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page