# Sample Inputs

These checked-in inputs are intended to pair with the provider example configs under `../configs/`.

Available files:

- `report.md`: sample Markdown report for `docparser process`
- `page.html`: sample HTML page for `docparser inspect`
- `renewal-form.png`: sample OCR-ready form image for `docparser process`
- `renewal-scan.pdf`: sample image-only PDF for `docparser process` and PDF OCR fallback

From the `docparser-core` package root, you can run:

```bash
# OCR the scanned PDF sample through the PDF rasterization fallback path
npx docparser process ./examples/inputs/renewal-scan.pdf \
  --config ./examples/configs/openrouter-hosted.mjs \
  --format json \
  --quiet

# OCR the sample form image with the native Tesseract + OpenRouter config
npx docparser process ./examples/inputs/renewal-form.png \
  --config ./examples/configs/native-tesseract-openrouter.mjs \
  --format json \
  --quiet

# OCR the sample form image with the Tesseract.js + OpenRouter config
npx docparser process ./examples/inputs/renewal-form.png \
  --config ./examples/configs/tesseract-js-openrouter.mjs \
  --format json \
  --quiet

# OCR the sample form image with the fully local Ollama config
npx docparser process ./examples/inputs/renewal-form.png \
  --config ./examples/configs/ollama-local.mjs \
  --format json \
  --quiet

# OCR the sample form image with the direct Claude config
npx docparser process ./examples/inputs/renewal-form.png \
  --config ./examples/configs/claude-direct.mjs \
  --format json \
  --quiet

# OCR the sample form image with the organization gateway config
npx docparser process ./examples/inputs/renewal-form.png \
  --config ./examples/configs/organization-gateway-openai.mjs \
  --format json \
  --quiet

# OCR the sample form image with the hosted OpenRouter OCR + LLM example config
npx docparser process ./examples/inputs/renewal-form.png \
  --config ./examples/configs/openrouter-hosted.mjs \
  --format json \
  --quiet

# Process the sample report with a checked-in provider config
npx docparser process ./examples/inputs/report.md \
  --config ./examples/configs/openrouter-hosted.mjs \
  --format json \
  --quiet

# Inspect the sample HTML page without chunking
npx docparser inspect ./examples/inputs/page.html
```