Skip to Main Content

Oracle APEX Download PL/SQL Sub Region

Hello,
I have a sub region on an Apex 19.2, i would like to download the code inside in pdf. I have an idea of chaging the mime-type of the page, but i would like to know the best way to do this. Does it possible to be done?
I have tryed some google int with htp.p() but that doesnt works! I can't use pl/sql package because the content can't be hold in a clob
Here is what i have tryed inside the subregion.
owa_util.mime_header('application/pdf', false);
htp.p('Content-Disposition: attachment; filename="myfile.pdf"');
owa_util.http_header_close;
but all this do is writing Content-Disposition... to the screen! :)
Any idea? Thanks for your help.

Comments
Post Details
Added on Jun 10 2021
3 comments
37 views