I am trying to create PDF using below code. It takes more then 2 hours to generate PDF.
<cfheader name="Content-Disposition" value="attachment; filename=MyReport.pdf">
<cfcontent type="application/pdf">
<cfdocument format="PDF" orientation="portrait" marginbottom="1" marginleft="0.5" marginright="0.5" margintop="1" overwrite="true" >
<cfdocumentitem type="footer" evalAtPrint = "true" >
This is Footer
</cfdocumentitem>
<cfinclude template="ReportData.cfm">
</cfdocument>
When I remove cfdocumentitem type="footer" code, it generates PDF right away. What could be the reason? Anyone pls help. Thank you in advance.