#297: optional office-to-PDF converter — config, API, cache, UI routing #421
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "preview-convert"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Gotenberg-compatible converter integration, strictly optional (
preview.converterUrl/CAIRN_PREVIEW_CONVERTER_URL, env wins). Newinternal/previewpackage: streaming multipart client, version-keyed bounded disk cache (default 200 MB, oldest evicted), per-key single-flight; full httptest suite (cache hit, single-flight, eviction, error path, URL-route rules). New endpointsGET /api/v1/preview/formats+GET /api/v1/preview/pdf(auth'd, inline PDF, recents-recorded, 100 MB source cap, 502 on converter failure). Frontend: boot probe →feat.convert, converting card → converted PDF in the existing viewer with chip, legacy-format card with admin-only deployment-guide hint, failures land on the retryable pvFail card. Default routed formats: doc/ppt/odt/odp/rtf/docx/pptx (spreadsheets stay client-side; overridable). Part of #297 — packaging (Helm/compose) and docs follow.