I have attempted to email a pdf report (shared components BI Publisher rtf template) as an attachment. The email is generated but a blank pdf is attached that cannot be opened. When trying to open document, the popup says the file type is wrong or corrupted. My APEX process calls the 3 below procedures to attach the report.
APEX_UTIL.DOWNLOAD_PRINT_DOCUMENT... (also tried APEX_UTIL.GET_PRINT_DOCUMENT)
APEX_MAIL.SEND...
APEX_MAIL.ADD_ATTACHMENT...
I don't have much experience with the apex_uitl print procedures. Any thoughts of why the pdf is failing?