ColdFusion10 CFDocument debug output

試著忘記壹切 提交于 2020-01-15 06:05:30

问题


Is there a way to capture the complete HTML code from CFDocument before it generates the actual Document/PDF (for debugging)?

The tag itself doesn't seem to support it.

What works partially is storing the separate parts of the HTML via cfsavecontent but I can't capture the whole thing at once:

<cfsavecontent variable="test123">
    <style type="text/css" media="screen">
        <!-- Style based on paperSize-->
        <cfoutput>
            #request.paperSize.css#
        </cfoutput>
    </style>
</cfsavecontent>

<cfdump var="#test123#" output="#expandPath('./test123.html')#" format="html">

So I thought of two ways:

  • Raising the log level of the underlying PDF component or some other way to revealing the code from there? (Is it iText?)
  • "Escaping" the HTML code so I can read the HTML in the PDF (no idea how to do this in CF)

Any ideas how I could go about this?

来源:https://stackoverflow.com/questions/38430373/coldfusion10-cfdocument-debug-output

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!