Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
3 of 6 tasks
Tracked by #1502 ...
RonnyB71 opened this issue Jan 31, 2024 · 1 comment · Fixed by #792
Closed
3 of 6 tasks
Tracked by #1502 ...

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

RonnyB71 opened this issue Jan 31, 2024 · 1 comment · Fixed by #792
Assignees
Labels
kind/user-story Used for issues that describes functionality for our users.

Comments

@RonnyB71
Copy link
Member

RonnyB71 commented Jan 31, 2024

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 Altinn/app-frontend-react#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

  • Given that you enable watermark on the PDF, when you don't implement a custom watermark prover then we should return date, time and Altinn archive reference.
  • Given that you need a custom watermark text, when you implement a custom watermark provider then you should get the custom text returned from the watermark provider.
  • Given that you are on any page, when you show the PDF then the watermark should be printed in the footer area.
  • Given that you enable watermark, when you see show the PDF, then the watermark should stand out (ref. the design)
  • Given that the PDF is generated before the data is complete, when you preview the PDF, then the watermark should show a language specific text for example in Norwegian "Forhåndsvisning" by default.
  • Given that the service owner would like their own text instead of the default, it should be an option to override the text with a specified text resource.
@RonnyB71 RonnyB71 added kind/user-story Used for issues that describes functionality for our users. status/triage status/draft Status: When you create an issue before you have enough info to properly describe the issue. labels Jan 31, 2024
@Magnusrm Magnusrm assigned Magnusrm and unassigned Magnusrm Sep 13, 2024
@Magnusrm Magnusrm self-assigned this Sep 20, 2024
@Magnusrm Magnusrm transferred this issue from Altinn/app-frontend-react Sep 24, 2024
@Magnusrm Magnusrm removed status/draft Status: When you create an issue before you have enough info to properly describe the issue. status/triage labels Sep 24, 2024
@Magnusrm Magnusrm linked a pull request Sep 25, 2024 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/user-story Used for issues that describes functionality for our users.
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants