// Server-side activity-report PDF rendering via the shared HTML -> PDF pipeline // (OPL-2598). This is the lazy "Download PDF" backend for the hub `/reports` // page: it renders the SAME config-driven `ReportTemplate` the user sees to a // self-contained HTML document, then hands that document to // `@scribe.cool/core/pdf`'s `renderPdf()` so what prints matches the preview. // // Like `../invoice/render-html-pdf` and `../pdf`, this module pulls in the heavy // renderer (playwright-core, and on serverless @sparticuz/chromium), so it is // intentionally NOT re-exported from any broad index. Import it directly from // "@scribe.cool/core/report/render-report-pdf" only on PDF download paths. // // SECURITY (untrusted config + report content): // - The branding config's colors are serialized into a RAW