*Epic CLI Manual — [index](../MANUAL.md)*

# 14. Recipes

```bash
# Intake a customer file
java -jar java-epic-cli.jar --preflight artwork.pdf > report.json

# Which inks are really used? (blank plates report utilized:false)
java -jar java-epic-cli.jar --list-spot-colors artwork.pdf

# Hairline check with press specs, overlays to S3
java -jar java-epic-cli.jar --thin-line=0.5:0.75 artwork.pdf s3://bucket/tl/p%d.png

# Rename a plate everywhere (survives reopening in Illustrator)
java -jar java-epic-cli.jar --swap-spot-colors="Spot Gloss=HA Clear:0,0,0,0.3" in.pdf out.pdf

# Rotate + mirror for film, in one pass
java -jar java-epic-cli.jar --rotate180 --mirror in.pdf film.pdf

# Impose a run from a plan that carries its own sheet and destination
java -jar java-epic-cli.jar --imposition=s3://bucket/plans/run42.json

# Discover a logo's inks, inspect, then snap to the real ones
java -jar java-epic-cli.jar --vectorize --input=logo.png --output=logo.pdf --report=logo.json
java -jar java-epic-cli.jar --vectorize --input=logo.png --output=logo.pdf \
    --colors="PANTONE 185 C:0,100,79,0@E4002B;PANTONE 282 C:100,68,0,54@041E42" --overprint

# Two-ink job, smooth curves, Illustrator-grade simplification
java -jar java-epic-cli.jar --vectorize --input=art.png --output=art.pdf \
    --max-colors=2 --fit=curves --simplify-curves --report=art.json

# Lift a vector design into editable objects + live-text report
java -jar java-epic-cli.jar --extract-objects design.pdf --with-text --report=design.json

# Reference three-plate press stack with AI-navigable layers
java -jar java-epic-cli.jar --backers=art.pdf \
    --plates="spot('HA Underbase',0,0.5,0.25,0)-1.0,spot('HA Clear',0.5,0,0.25,0)+0.25,spot('HA Adhesive',0.25,0.5,0,0)+0.5"

# Compile a design with live editable text for Illustrator handoff
java -jar java-epic-cli.jar --compile=design.json        # request has ai_private: true

# Generate a derivative batch (per-dataset status in the JSON)
java -jar java-epic-cli.jar --derivatives=W2302N-DerivativeBatch.zip --output=out/
```
