を使用して PDF を作成しようとしていますcfdocumentが、ColdFusion が例外をスローし続け、これを回避する方法が見つかりません。
これは私が使用しているコードです:
<cfdocument format="pdf" filename="rep_report.pdf" overwrite="yes" name="rep_report">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<style>
<cfinclude template="stylesheets/bootstrap.min.css">
</style>
<cfinclude template="views/_reputationTable.cfm">
</body>
</html>
</cfdocument>
そして、これは例外です:
An exception occurred when performing document processing.
The cause of this exception was that: coldfusion.document.spi.DocumentExportException: java.lang.NullPointerException.
The error occurred in E:/sites/xAmplifier.com/admin/rep_report_template.cfm: line 43
Called from E:/sites/xAmplifier.com/admin/wheels/events/onrequest.cfm: line 1
Called from E:/sites/xAmplifier.com/admin/rep_report_template.cfm: line 43
Called from E:/sites/xAmplifier.com/admin/wheels/events/onrequest.cfm: line 1
41 : </style>
42 :
43 : <cfinclude template="views/_reputationTable.cfm">
44 : </body>
45 : </html>
私の問題は、テンプレートを含めようとしている部分のようですが、残念ながらこれを回避する方法がありません.
含まれているテンプレートを保持して cfdocument を使用する方法について何か提案はありますか?