PDF / Print optimization — current state & uplift options
Date: 2026-05-20 · Surface: pa_claim_cockpit_render.py (claim cockpit at reports.dare.co.uk/dare_claim_cockpit_*) · Status: Parked sketch — current implementation shipped, uplift options documented for future return
Dan’s question, 2026-05-20:
“Let me ask a question, the print-to-pdf has some adjusted code within it, parameters etc, or is it just a straight-up convert (vanilla)?”
This report is the honest answer: the button is vanilla, the CSS is custom — but lightly so. It documents what’s there, what’s not, and what to add when paper output becomes load-bearing.
What’s currently in the cockpit (shipped 2026-05-20)
The button (vanilla)
<button type="button" class="print-btn" onclick="window.print()">🖨 Print this cockpit</button>
Triggers the browser’s native print dialog. Same code path that produces “Save as PDF” in macOS Print → PDF → Save. No JavaScript library, no PDF generator, no headless Chrome. Just window.print().
The CSS (custom — but the light end of what’s possible)
22 lines of @media print rules layered into the existing stylesheet: