Hi Outsystems Community,
for some reason the PrintToPDF_Advanced action is only generating a blank page when using it via the REST caller. The normal set up works. I used the exact same setup as provided in the GitHub docs. It does work properly even with the PrintToPDF_Advanced action when I'm not using it via REST but with the setup via REST I only get a blank page...
I tried to get the logs via the other described workflow. But these also did not work. The .zip file was always broken and could not be unpacked...
I recorded a loom to pinpoint the issue:
Troubleshooting Print to PDF Issue - Watch Video
Any help/idea would be super helpful!
Thanks & bestKonsti
Hi @Konsti ,
I noticed you didn't set any output in your rest API. By default, if your REST API in OutSystems doesn't explicitly return any output, the body of the response will be empty and throw an error message.
Define an output parameter that will hold the data you want to send back in the response body and populate it accordingly.
It should work after this.
Kind Regards,
Tami
Hi @Tami,
thank you for your response! I'm not sure how this should impact the result at all as the UltimatePDF library is calling the API to Post the PDF. So what should I return here. Also, I'm not having an issue with thrown error messages but with a blank page PDF (no error thrown).
Anyway, I tested your proposed setup. Unfortunately, it did not change anything...
In their example implementation there is no response either:
Best
Konsti