Acta 523
Free, open-source DPR 523 compliance form builder for Cultural Resource Management (CRM) archaeology.
Generate print-ready, SHPO-compliant California DPR 523 form packages — including Primary Records, Archaeological Site Records, Building/Structure/Object Records, Continuation Sheets, Photograph Records, Artifact Catalogs, and Location Maps — as a single multi-page PDF.
No cloud dependency, no subscription fees, no vendor lock-in. Your data never leaves your machine.
Quick Start
Prerequisites
- Python 3.10+
- Node.js 22+
Install & Run
git clone https://gitlab.com/mabodu/acta-523.git
cd acta-523
# Install Python dependencies
pip install reportlab pymupdf pyhanko pillow
# Install Node.js dependencies
npm install
# Start development server (Electron + Vite)
npm run dev
Generate a PDF via CLI
echo '{"resource_name":"CA-TEST-001","description":"Site description here...","recorder":"Dr. Jane Smith","date_recorded":"2026-06-03"}' \
| python3 src/crm_form_builder/cli.py --output output.pdf
Sign a PDF with a PAdES digital signature
echo '{...}' | python3 src/crm_form_builder/cli.py \
--output signed.pdf \
--sign --cert my_certificate.pem
Run tests
python3 -m pytest tests/ -v
Features
DPR 523 Form Suite
All 11 standard California OHP form types:
| Form | Name | Tab |
|---|---|---|
| 523A | Primary Record | ✅ |
| 523B | Building, Structure, Object | ✅ |
| 523C | Archaeological Site Record | ✅ |
| 523D | District Record | ✅ |
| 523E | Linear Feature Record | ✅ |
| 523F | Milling Station Record | ✅ |
| 523G | Rock Art Record | ✅ |
| 523H | Artifact Record (catalog) | ✅ |
| 523I | Photograph Record | ✅ |
| 523J | Location Map | ✅ |
| 523K | Sketch Map | ✅ |
PDF Generation Engine
- Auto-flow continuation sheets — long descriptions automatically overflow from the 523A Primary Record onto 523L Continuation Sheets via ReportLab's
autoNextPageTemplate. No manual page-break management. - Official form backgrounds — vector rendering of official OHP PDFs at 300 DPI via PyMuPDF. Not rasterised — pixel-perfect fidelity.
- Precise field coordinates — every field position extracted from the official PDF via automated analysis. Form fields render at their exact locations on the OHP template.
- Photo grid builder — 2-up layout with embedded images, caption blocks, auto-numbering.
- Artifact catalog — variable-row table with header repetition across pages.
- PAdES digital signatures — sign output PDFs with X.509 certificates for SHPO acceptance (requires pyHanko).
Desktop Application (Electron + React)
- Cross-platform — runs on Windows, macOS, and Linux.
- Offline-first — all data stored locally. No internet connection required.
- Project save/load — full form state saved to
.crmprojJSON files, with built-in auto-save and unsaved change protection. - Photo import with EXIF extraction — date taken, GPS coordinates, camera make/model auto-populated on import.
- Interactive Location Map — USGS National Map topographic tile layer with draggable marker.
Tech Stack
| Layer | Technology |
|---|---|
| Desktop framework | Electron (stable, proven cross-platform deployment) |
| Frontend | React 19 + TypeScript + Vite |
| PDF generation | ReportLab 4.x with autoNextPageTemplate |
| Background rendering | PyMuPDF (vector, 300 DPI) |
| State management | Zustand |
| Project files | .crmproj JSON |
| Digital signatures | pyHanko (PAdES-Baseline, PKCS#11) |
| Map tiles | Leaflet + USGS National Map (public domain) |
| Code signing | OV certificate (standard cert authority) |
Architecture
┌──────────────┐
│ React UI │
│ (11 tabs) │
└──────┬───────┘
│ IPC (contextBridge)
┌──────▼───────┐
│ Electron │
│ Main Process│
└──────┬───────┘
│ spawn (stdin/stdout JSON)
┌──────▼───────┐
│ Python │
│ Sidecar │
│ (ReportLab) │
└──────┬───────┘
│ PDF bytes
┌──────▼───────┐
│ OHP-compliant│
│ PDF Package │
└──────────────┘
Dual-Pipeline PDF Generation
The PDF engine uses two parallel rendering strategies:
- Text pipeline — auto-flowing paragraphs via
autoNextPageTemplate. When the description field overflows the 523A page boundary, ReportLab automatically transitions to the 523L Continuation Sheet template. The continuation template references itself, so descriptions of any length are handled seamlessly. - Structured content pipeline — photo grids and artifact tables use explicit
NextPageTemplate+PageBreakfor precise layout control. These are never mixed with the auto-flow mechanism.
Research
This project was built following 12 deep-research prompts that generated 14 research reports covering:
- DPR 523 form field-by-field analysis
- Western US SHPO landscape (CA, NV, AZ, OR, WA, CO, NM, TX)
- PDF generation strategies (AcroFields vs procedural vs hybrid)
- CHRIS and Smithsonian Trinomial systems
- Wildnote and competitor feature analysis
- Section 106 / NHPA integration
- Electron vs Tauri framework comparison
- Cross-domain continuation-sheet patterns (legal, VDP, CSS Paged Media, LaTeX/pdfoverlay, Typst)
- ReportLab
autoNextPageTemplatedeep dive
See docs/research-papers/ and docs/research-prompts/ for the full corpus.
Development
# Code quality
python3 -m pytest tests/ -v
# Alignment verification
python3 scripts/verify_alignment.py \
--generated test_output/my_form.pdf \
--reference assets/forms/dpr_523a_2013.pdf
# Coordinate extraction (when updating form templates)
python3 scripts/extract_precise_coords.py assets/forms/dpr_523a_2013.pdf
# Build for distribution
npm run build:vite # Frontend only
pyinstaller pyinstaller.spec # Python sidecar
npm run dist # Full desktop package
License
MIT — see LICENSE. The official DPR 523 form templates are public domain works of the State of California.
Metadata
Release files for acta-523 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| acta_523-0.1.3.tar.gz | 26.2 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| acta_523-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 46.5 kB
Release files / acta_523-0.1.3.tar.gz
| Download URL | acta_523-0.1.3.tar.gz |
|---|---|
| Size | 26.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb3f4a849e56b716cd431d8937563da5656c8862d688ff7dce0705d6874bae88
|
|
BLAKE2b-256 checksum How to use checksums |
37cdcaf6dd82e435b945ac218f73cb03a297fbcd637f1b426e30c781bcdc8837
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 17, 2026.
Transparency logRelease files / acta_523-0.1.3-py3-none-any.whl
| Download URL | acta_523-0.1.3-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ecd061d6398970aab79cc81561d96e69d92f5fd2ea26aae8717ba30b5f1d2fde
|
|
BLAKE2b-256 checksum How to use checksums |
a51e56b8d3297a1cb18322f845053a897a822add37dc96edfdd2b9dcca484dcf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 17, 2026.
Transparency logSecurity for acta-523 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for acta_523-0.1.3.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.