Provenance for ingest's synthetic test inputs. Four PDFs (text-layer, cross-page continuation, table form, image-only scan for real OCR) generated by generate-synthetic-pdfs.py with invariant metadata, their regeneration toolchain (ReportLab, Pillow, pdftoppm) and strict heading/table/OCR assertions; three Word round-trip DOCX files for document-amendment-libreoffice.test.ts — the accepted doc.haus file with _dh_ paragraph pointers kept byte for byte, plus unedited and edited LibreOffice 26.2.4.2 saves re-zipped with fixed 1980-01-01 times; and synthetic-msg.ts, which builds Outlook .msg files at test time in the MS-OXMSG layout with MS-OXRTFCP-compressed RTF. All content is invented, with no client data or model calls. Read before regenerating fixtures or debugging ingest PDF, Word round-trip or Outlook upload tests.
Synthetic PDF regression fixtures
These four PDFs were freshly authored for doc.haus on 15 October 2026. All text,
page layouts, table cells and images originate in generate-synthetic-pdfs.py.
They contain invented workshop/equipment descriptions, not client documents,
actual parties, downloaded agreements, copied document wording or imported PDF
objects. The generator reads no external document. The scan embeds pixels from
our generated text-layer PDF; it has zero embedded text characters. Built-in PDF
Helvetica fonts are used without copied font files. These authored fixtures are
part of the doc.haus source release under the repository license.
| Fixture | Regression purpose |
|---|---|
synthetic-text-layer.pdf |
Born-digital text, title, numbered subheadings and complete body extraction. |
synthetic-continuation.pdf |
Two-page instruction continued across a page boundary, retained in its section and followed by a distinct next section. |
synthetic-table.pdf |
Bordered two-column form with distinct row labels, values and placeholder fields. |
synthetic-scanned.pdf |
Image-only copy of the authored workshop plan, exercising real Poppler/Tesseract OCR and the parser's scan fallback. |
Regenerate from this directory with Python 3, ReportLab 4.4.3, Pillow 11.3.0 and
Poppler pdftoppm on PATH. Use a disposable environment rather than installing
packages into the application checkout:
uv venv /tmp/dochaus-pdf-fixtures
uv pip install --python /tmp/dochaus-pdf-fixtures/bin/python reportlab==4.4.3 pillow==11.3.0
/tmp/dochaus-pdf-fixtures/bin/python generate-synthetic-pdfs.py
ReportLab uses invariant metadata. Repeated generation with the same toolchain produces identical bytes. Poppler versions may rasterize fonts differently, so record the rendering version when intentionally regenerating the scan. The initial scan used Poppler 26.03.0. Metadata identifies only synthetic fixtures; no user identity, original document metadata or local filesystem path is embedded.
Validation: render every page with pdftoppm -png and inspect the result; inspect
PDF metadata and verify the scan has no text layer; run bun test src/pdf.test.ts
from services/ingest. The tests retain strict structured-heading, table and OCR
assertions. They do not skip those checks when an extractor or OCR tool is absent.
Required runtime dependencies are the package's LiteParse/unpdf stack and the
local pdftoppm and tesseract executables. No model provider or paid request is
used. Regeneration tools are development-only and are not required to run tests
against the committed PDFs.
Synthetic Word round-trip fixtures
These three DOCX files were authored for doc.haus on 17 October 2026 from
invented supply-terms wording. They contain no client documents, actual
parties or copied agreement text. They exercise
src/document-amendment-libreoffice.test.ts.
| Fixture | Regression purpose |
|---|---|
synthetic-word-accepted.docx |
Working file written by doc.haus after an accepted change: heading, numbered list, table, open item and a header reference, with a _dh_ paragraph pointer on every body paragraph. |
synthetic-word-libreoffice-saved.docx |
The accepted file opened and saved by LibreOffice 26.2.4.2 (soffice --headless --convert-to "docx:MS Word 2007 XML") with no edit. |
synthetic-word-libreoffice-edited.docx |
The same LibreOffice save of a copy whose retention paragraph was first changed in its XML to "Records must be retained securely for three months." |
The accepted file is kept byte for byte as doc.haus wrote it. Its metadata names
only doc.haus. The two LibreOffice saves were checked for user names, hostnames,
paths and timestamps. Their document properties name only doc.haus and the
LibreOffice version. They were re-zipped with unchanged part contents and fixed
1980-01-01 entry times, so no save time is embedded. The live test in the same
file repeats the save with the installed soffice and is skipped when it is
absent. No model provider or paid request is used.
Synthetic Outlook email generator
synthetic-msg.ts writes Outlook (.msg) emails for tests at run time; no .msg
binary is checked in. It builds an OLE compound file in the MS-OXMSG layout with
the compound-file writer of @kenjiuno/msgreader, the reader ingest uses, and
compresses RTF bodies in the MS-OXRTFCP format. Every subject, address, body and
attachment comes from the test that calls it: invented example.test content,
no real email, person or organization. It reads no external file and calls no
model provider. It exercises src/outlook-msg.test.ts and the Outlook upload
case in src/source-upload-http.test.ts.