Skip to main content

Overview

The most common workflow: define a document as JSON, generate clean PDF/PNG, then produce realistic photo variations.

Step 1: Define Your Document

Create a JSON file with header, items, and optional observations:
doc.json

Step 2: Generate the Document

This produces three files: HTML (source), PNG (screenshot), PDF (printable).

Step 3: Generate Photo Variations

The doc_description parameter helps the image generator preserve key fields. Include the document number, reference numbers, and any critical values.

Full Pipeline (Document + Photos in One Call)