Hello,
we use Ultimate PDF (O11) to create PDFs. As a layout we use "PrintLayout" and the creation of the PDF is done via "PrintToPDF".The content of the PDF is a screen that is not public and is used exclusively for the content of the PDF.The screen content is dynamically built up at runtime via input parameters.
What we see now is that whenever an error occurs during the creation of a PDF, the error message is naturally returned to the PDF screen and then the creation of the PDF cannot be prevented. The end user will then receive a PDF with an error screen in his upload folder.
"No data found" is not the problem here - but Security Exceptions or Communication Exceptions that can occur at runtime due to faults in the platform and then intercepted by the application's Common OnException.
Of course, the error is written in the logging and is documented in the service center.
Nevertheless, I would like to avoid that the end user can first create the PDF without any message in the frontend and then realize that something went wrong when opening the PDF.
The goal should be to give the end user a warning that an error has occurred - without the PDF being created. I have already tried to resolve the communication between the current end user screen and the PDF screen via a client variable. This caused the session to hang up for the end user.
Anyway - if we no longer upload the generated PDFs to the enduser in the future and instead send these PDFs automatically directly by email, It must be ensured that the PDFs contain only valid data.
Has anyone found the same problem and a solution to it? I'd be grateful for ideas,
Regards, Christine
Make the PDF screen public (anonymous access) and secure it with a one-time token: