PDF: show the approval steps as in the app instead of the table

Description

Goal

In the PDF of one work item / page (AP-427) and of the PDF step (AP-541), show each approval's steps the way the app shows them, instead of the steps table. To be done when a customer asks for it.

Background

The PDF shows the steps as a table (#, Step, Decision, Date, Comment), shared with the native Confluence export of the macros (AP-1913). The table already holds all the information. Decided on 2026-11-17: keep the table, and keep the current PDF engine (server-side, no browser). A headless browser on the server would print the app's view 1:1, but needs Chrome on the backend (memory and CPU per export), blocked network access for that browser, and a rework of AP-427 / AP-541.

Change

  • Rebuild the app's step view in the PDF template (templates/pdf/reference-approvals.html.ftl, openhtmltopdf, no flexbox):

    • per step a status icon, a type icon, the name, the decision, the date and the comment;

    • group and vote members indented under their step;

    • parallel groups as framed blocks with the coloured stripe and title.

  • No avatars (the PDF engine loads nothing from the network).

  • Used by the PDF of one work item / page and by the PDF step. The approvals list export (AP-2368) keeps the table.

Notes

  • About 1 day of work.

  • Changes to the app's step view are not carried into the PDF automatically; this template is a second version of the look to keep in step.