我正在生成一个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。