Annotation Viewer

View and edit document annotation

Drop document here

or click to browse (PDF, JPG, PNG)

AI Agent Instructions for Generating Standalone HTML

RECOMMENDED: Use the Python script:

  1. Fetch: https://audittoolbox.com/apps/annotation-generate.py.txt (use .txt to get plain text)
  2. Save locally as annotation-generate.py
  3. Run: python annotation-generate.py --document doc.pdf --extractions data.json
  4. Options: --output html (editable) or --output burned (permanent annotations)

Alternative: Manual template replacement:

  1. Fetch this page: https://audittoolbox.com/apps/annotation-viewer/
  2. Replace "__EMBEDDED_DOCUMENT__" with base64 data URL of document
  3. Replace "__EMBEDDED_EXTRACTIONS__" with JSON extractions object
  4. Return the modified HTML

JSON extractions format:

{"extractions": [{"field": "Invoice Number", "value": "INV-001", "box_2d": [ymin, xmin, ymax, xmax], "page": 1}]}