Skip to content

About

Prepress file preflight — scan PDFs for print-readiness issues, auto-fix color space/bleeds/blacks, generate human-readable reports. Python CLI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

prepress-preflight

Prepress Preflight

Scan PDFs for print-readiness issues — RGB images, low resolution, missing bleeds, wrong black buildup. Auto-fix common issues.

Python Ghostscript License

The Problem

95% of files received from designers aren't print-ready. Prepress operators manually fix: wrong color space, missing bleeds, low-res images, wrong black buildup. Every. Single. Time.

The Solution

# Check a PDF
prepress-preflight check design.pdf

# Auto-fix common issues
prepress-preflight fix design.pdf -o design_printready.pdf

# Get a print checklist
prepress-preflight checklist design.pdf

Quick Start

git clone https://github.com/darshd9941/prepress-preflight.git
cd prepress-preflight
pip install -e .

Optional: install Ghostscript and pikepdf for full analysis:

pip install pikepdf

Features

  • Detect RGB images (should be CMYK)
  • Flag low-resolution images (below 300 DPI)
  • Verify bleeds (0.125in / 3mm)
  • Check black buildup (rich black vs default)
  • Auto-fix: RGB→CMYK conversion via Ghostscript
  • Generate print-readiness checklists

License

MIT License — see LICENSE for details.

Installation

Prerequisites

  • Python 3.8 or higher
  • pip (Python package manager)

Clone the Repository

git clone https://github.com/darshd9941/prepress-preflight.git
cd prepress-preflight

Install Dependencies

pip install -r requirements.txt

Environment Setup

  1. Copy the example environment file:

    cp .env.example .env
  2. Edit .env and add your API keys:

    # Required for Claude vision features
    ANTHROPIC_API_KEY=your-api-key-here

Usage

Web App (if applicable)

streamlit run app.py

CLI Usage

python main.py --help

Python API

from module import MainClass

# Initialize the tool
tool = MainClass()

# Use the tool
result = tool.process("input")
print(result)

Configuration

  • .env - Environment variables (API keys, settings)
  • config.yaml - Configuration file (if applicable)

Examples

See the examples/ directory for detailed usage examples.

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Submit a pull request

License

See LICENSE file for details.

About

Prepress file preflight — scan PDFs for print-readiness issues, auto-fix color space/bleeds/blacks, generate human-readable reports. Python CLI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages