我使用cfdocument
生成PDF文件,并与该代码可以正常使用:与性能cfdocument问题
<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>
如果我包括它里面的#session.footer#
变量,它需要大量的时间来生成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>
页脚变量包含一个完整的页脚部分,我想在文档的末尾添加该页脚部分。我不明白为何这会花费更长的时间。我使用的ColdFusion 10
我会告诉你Ben Nadel的http://www.bennadel.com/blog/1949-the-content-of-this-document-process-通吃更比60000-毫秒到-p rocess.htm。评论部分是要看的地方。很多有缓慢cfdoc问题的人跟踪它们的图像,有时是绝对URL('http ...')vs相对URL('/ ....') – 2015-02-09 22:00:40
* * * session.footer中不知道什么*很难对此做出合理的评论,是的? – 2015-02-10 06:56:32
当然,更多的信息包含在该变量将是很好的。为了找到这个博客条目,我简直就是''cfdocument slow''。 – 2015-02-10 16:21:31