# Document Generator V2 delivery examples

Seven invoice PDFs show how scan effects and simulated text errors change a
document. Each PDF includes annotation JSON, source text, page images and
COCO and LayoutLM exports.

## What is included

- `matched-invoice/`: one invoice delivered five ways: clean, photocopy scan,
  faded scan, phone photo and image-only. The scan effects use strength 55.
  All five share the same source text. Scanned and image-only PDFs have no
  selectable text layer.
- `ocr-corruption/`: two separate invoices at OCR simulation quality 70.
  `visible-ocr-errors` has errors printed on the page and in its text layer.
  `corrupt-text-layer` looks clean but has errors in the hidden text layer.
- `invoice-conditions-suite.json` and `ocr-corruption-suite.json`: the two
  generation plans.
- `inventory.json` and `SHA256SUMS.txt`: file inventory and checksums.
- `source-provenance.json`: the application build and generation settings.

Annotations record the clean page image in `pages` and the delivered page
image in `delivered_pages`. `embedded_text` contains the extracted text layer;
`ocr_quality` records measured text corruption. This is not a measurement of
an external OCR engine.

## Generate similar examples

Extract the Windows application download. Copy both suite JSON files from this
sample set into the application folder containing `DocumentGenerator_v2.0.exe`,
then open PowerShell in that folder. Use new output folders for each run:

```powershell
& '.\_internal\DocumentGenerator_v2.0_cli.exe' generate --suite invoice-conditions-suite.json --output matched-invoice `
  --workers 2 --export coco layoutlm --export-rendition delivered `
  --split-seed 2601017 --split-percentages 80 10 10 --validate

& '.\_internal\DocumentGenerator_v2.0_cli.exe' generate --suite ocr-corruption-suite.json --output ocr-corruption `
  --workers 2 --export coco layoutlm --export-rendition delivered `
  --split-seed 2601018 --split-percentages 80 10 10 --validate
```

For Linux launchers, see [the platform instructions](https://docsetgenerator.com/getting-started#command-line).
Exact replay requires the same application build and resources. The build
identity is recorded in `source-provenance.json`.

## Use

Free to use for testing, development, demos and evaluation, including commercial
use. No signup or attribution is required.
