Hello
As the question states, is there any way to manually download HTML content that is generated from a function to PDF?
I have already succeeded downloading a div as PDF using "html2pdf.js" javascript library which works fine on a PL/SQL content body Region type. But I want to create a classic report that will have the option to download the desired HTML report on a single column like this:
"SELECT primary_key, col1, col2,
FUNCTION_RETURNING_HTML
(primary_key) "DOWNLOAD" from TABLE"
Without displaying the HTML content on the report.
Is there any way to do this or any alternatives? (we can't use any reporting tool)
EDIT: I have found a solution and pinned it as Answer below.