Altinn / app-lib-dotnet

Libraries used in Altinn Apps
BSD 3-Clause "New" or "Revised" License
8 stars 11 forks source link

Option to add a watermark on the generated PDF receipts #787

Closed RonnyB71 closed 1 month ago

RonnyB71 commented 9 months ago

Description

There is a need to add a watermark stamp on the generated PDF receipts to ensure that the PDF is actually generated after submitting the form. "Clever" users have used the build in print preview to fake a form being submitted to avoid payment steps later in the process. The case manager in the municipalities use the watermark as part of their routine and we should continue to support this feature from Altinn 2.

The watermark itself is basically a text value including date/time for when the PDF was generated as well as a reference id provided by the service owner.

The solution should be dynamic in terms of what values goes into the watermark allowing the application developers to construct the value based on date/time, values from the data model and/or instance metadata.

Additional Information

This issue should be considered i relation to https://github.com/Altinn/app-frontend-react/issues/1805, and maybe allow for the inclusion of a "not valid" watermark if the PDF is generated before the final data submission.

Example image showing watermarks in red image

Design

Component : https://www.figma.com/design/aECTVzeAa3sJDucjYWQuUQ/Oppsummering-og-PDF?node-id=966-190399&t=1JdATXK1BkP2v3qF-4

Example: https://www.figma.com/design/aECTVzeAa3sJDucjYWQuUQ/Oppsummering-og-PDF?node-id=1081-140542&t=1JdATXK1BkP2v3qF-4

Tasks

No response

Acceptance Criterias

Edavda commented 3 months ago

Komponent: https://www.figma.com/design/aECTVzeAa3sJDucjYWQuUQ/Oppsummering-og-PDF?node-id=966-190399&t=1JdATXK1BkP2v3qF-4