Skip to content

GridForge v1.9.1 — Night-Red Export Fill, PDF Form Cleanup & Red-Dark Contrast Fixes

Latest

Choose a tag to compare

@jremick jremick released this 30 Nov 05:02

GridForge v1.9.1 — Night-Red Export Fill, PDF Form Cleanup Hardening & Red-Dark Contrast Fixes

Fix-forward patch release for v1.9.0 (#19) restoring the Red-Light Safe (night-red) dark paper fill in KMZ and MBTiles exports, preventing double-compressed Form XObjects in the PDF closepath cleanup, bounding PDF form parsing and cloning, and raising the remaining Night-Red (red-dark) sheet rules to 3:1 contrast.

Highlights

  • Red-Light Safe Export Paper & Labels (#19, src/gridforge/export/{kmz,mbtiles}.py):
    • Restored the night-red KMZ and MBTiles paper fill to (28, 12, 12) and labelled their metadata RED-LIGHT, matching the sheet badge; the night-red and red-dark identifiers are unchanged and red-dark exports still say RED-DARK.
  • PDF Closepath Cleanup Hardening (#19, src/gridforge/render/layout.py):
    • Rewrote Form XObjects that already carry a /Filter with set_data only (no second flate_encode, which poppler reported as Unknown operator x<9c>) and dropped stale /DecodeParms.
    • Left streams whose declared /Length exceeds the remaining shared parse budget untouched before decoding, and applied the depth-32 form cap before PdfWriter clones the page so deeper chains cannot raise RecursionError.
  • Night-Red (red-dark) Sheet Contrast & Missing-Icon Outlines (#19, src/gridforge/render/{layout,styles}.py, src/gridforge/geo/declination.py):
    • Raised the collar rule, collar fallback box, map-key rules, slope-swatch stroke, declination and grid-reference rules to #A04048 (3.11:1 on #14080B) and the fold mark to #A84850 (3.47:1); missing SVG markers on red-dark use the palette halo for their outline.

Pull & Run (amd64 + arm64)

docker pull ghcr.io/jremick/gridforge:v1.9.1

Or self-host via Docker Compose:

git clone https://github.com/jremick/gridforge.git && cd gridforge
mkdir -p packs out
docker compose -f docker-compose.ghcr.yml up -d

Verification

  • Targeted Regression Suite (tests/unit/test_nov28_live_fixes.py):
    • Added coverage for pre-compressed and self-referencing Form XObjects, over-deep form chains, dropped /DecodeParms, undecoded over-budget streams, /app/assets/icons/ QML icon hrefs, the halo outline, the RED-LIGHT export label, and 3:1 red-dark contrast; QGIS is detected with importlib.util.find_spec so the pytest process never imports QGIS or PyQt5.

See CHANGELOG.md for full details.