Metadata-Version: 2.4
Name: compile-pdf-trap
Version: 0.2.3
Summary: CompilePDF trap producer — ink-pair spread/choke trapping with OCG layer output.
Project-URL: Homepage, https://compilepdf.com
Project-URL: Repository, https://github.com/printwithsynergy/compile-pdf-trap
Project-URL: Issues, https://github.com/printwithsynergy/compile-pdf-trap/issues
Author-email: Print With Synergy <iam@quincy.codes>
License: AGPL-3.0-or-later
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.12
Requires-Dist: click>=8.1
Requires-Dist: codex-pdf<2.0,>=1.21.1
Requires-Dist: compile-pdf-core<1.0,>=0.1.0
Requires-Dist: fastapi>=0.110
Requires-Dist: httpx>=0.27
Requires-Dist: pikepdf>=8.13
Requires-Dist: pydantic>=2.6
Requires-Dist: structlog>=24.1
Provides-Extra: dev
Requires-Dist: mypy>=1.9; extra == 'dev'
Requires-Dist: pyclipr>=0.1.6; extra == 'dev'
Requires-Dist: pytest-asyncio>=0.23; extra == 'dev'
Requires-Dist: pytest-cov>=4.1; extra == 'dev'
Requires-Dist: pytest>=8.0; extra == 'dev'
Requires-Dist: ruff>=0.4; extra == 'dev'
Provides-Extra: geom
Requires-Dist: pyclipr>=0.1.6; extra == 'geom'
Provides-Extra: trap-external
Provides-Extra: trap-gs
Provides-Extra: verify-visual
Requires-Dist: anthropic>=0.27; extra == 'verify-visual'
Requires-Dist: pymupdf>=1.24; extra == 'verify-visual'
Description-Content-Type: text/markdown

# compile-pdf-trap

Ink-pair spread/choke trapping with OCG layer output for CompilePDF.

Three engine slots: `pure_python`, `ghostscript`, and `external`. Trap applications are emitted as `CodexFinding(type="trap_applied")` via `TrapApplication.to_codex_finding()` and returned as `trap_findings` in the API response.

## Install

```bash
uv pip install compile-pdf-trap
```

For the Ghostscript engine fallback:

```bash
uv pip install 'compile-pdf-trap[trap-gs]'
```

## Position in the stack

One of four [CompilePDF](https://compilepdf.com) producers (trap, impose, marks, rewrite). Each lives in its own repo and PyPI package so you install only what you need. Producers depend on `compile-pdf-core`, never on each other.

- Repo: https://github.com/printwithsynergy/compile-pdf-trap
- Deployment host: https://github.com/printwithsynergy/compile-pdf
- License: AGPL-3.0-or-later
