Skip to content

Investigate PDF encryption and evaluate a change to the used library #14234

Description

@SORMAS-JanBoehme

Problem Description

We have received the following feedback from Luxembourg:

When sending documents by email, SORMAS converts them into PDF and secures them using the national health ID. During this process, the layout of the document changes significantly, which makes the final prescription difficult to use.

As a result, I have to spend considerable time adjusting and testing the original document to ensure that the final secured PDF resembles the intended layout.

I also tested uploading a PDF directly into the “Documents” section and then sending it. In that case, the layout is preserved, but this approach is not practical for daily use due to the time required.

Proposed Change

According to a first rough check, this may be related to the used library (Apache PDFBox) for creating and encrypting the PDF files.

Using another library like iText may resolve the issue.

Added Value/Benefit

Making sure that documents look the same one converted into PDF is very relevant to avoid manual corrections and trust of the user in SORMAS.

Acceptance Criteria

  • PDF files should look exactly the same as the original document after generation and encrpytion.

Implementation Details

No response

Mockups

No response

Additional Information

No response

Metadata

Metadata

Assignees

Labels

changeA change of an existing feature (ticket type)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions