I am generating a pdf using cfdocument and it is working perfectly with this code:
<cfdocument format="PDF" fontembed="true" saveAsName="file1" mimetype="application/pdf" localUrl="true">
<cfoutput>
#response.filecontent#
<cfdocumentitem type="footer">
#cfdocument.currentpagenumber# of #cfdocument.totalpagecount#
</cfdocumentitem>
</cfoutput>
</cfdocument>
If I include the #session.footer# variable inside it, it takes a lot of time to generate the PDF.
<cfdocument format="PDF" fontembed="true" saveAsName="file1" mimetype="application/pdf" localUrl="true">
<cfoutput>
#response.filecontent#
#session.footer#
<cfdocumentitem type="footer">
#cfdocument.currentpagenumber# of #cfdocument.totalpagecount#
</cfdocumentitem>
</cfoutput>
</cfdocument>
The footer variable contains a complete footer section which I want to add at the end of the document. I am don't understand why it is this is taking so much longer. I am using ColdFusion 10.
http...) vs relative urls (/....) - Regular Josession.footer, it's rather hard to make sensible commentary on this, yes? - Adam Cameroncfdocument slow. - Regular Josession.footercontain<img>tags? - Abram