Hi everyone,
I'm building an audit report generation feature in OutSystems 11 using an AI agent (hosted in ODC) that returns a formatted HTML string. The flow works like this:
My current approach uses HTMLString2PDF (HTML2PDF Forge component) as a Client Action to convert the HTML and download the PDF directly in the browser. This works fine for downloading, but since it runs client-side it doesn't return Binary Data, so I can't store the PDF in the database.
The problem: Every time the user clicks the button, a new call is made to the AI agent, which may return a slightly different report. I need to generate the PDF once, store it in the database, and always serve the same file on subsequent downloads.
What I need: A server-side solution that:
We have already tested some server-side components from Forge but ran into issues with both of them:
Has anyone solved this pattern? What's the recommended approach for server-side HTML-to-PDF generation in O11 that returns Binary Data?
Thanks in advance!
Hi Leonel, have you tried this action, as it takes url or html as input and returns PDFBinary. If this is not useful then try UltimatePDF