CFDOCUMENT 在生成简单的 PDF (ColdFusion) 时超时

时间:2021-03-17 14:41:31

标签: pdf coldfusion timeout

我在 ColdFusion 中生成带有徽标图像的非常简单的 PDF 文档。我收到此错误。

此文档处理的内容需要超过 60000 毫秒的处理时间。

 <cfdocument name="pdfdoc" margintop="1.5"  format="pdf" pageheight="15" pagetype="custom" pagewidth="11"  fontEmbed="yes" >
            <cfif Fee_Agreement_Contact_Name EQ "">
                <cfset Fee_Agreement_Contact_Name = QFeeAgreement.Contact_Full_Name>
            </cfif>
            <cfif Fee_Agreement_Contact_JobTitle EQ "">
                <cfset Fee_Agreement_Contact_JobTitle =  QFeeAgreement.Contact_Job_Title>   
            </cfif> 
            <div style="width: 830px;">#request.Fee_Agreement_Text#</div>
            <div class="clear"></div>
            <div style="margin:15px 0 0 0;">
                <cfif Fee_Agreement_Contact_Name NEQ "">
                    <div style="font-size:14px; font-family: Arial;"><b>Full Name:</b> #Fee_Agreement_Contact_Name#</div>
                </cfif>
                <cfif Fee_Agreement_Contact_JobTitle NEQ "">
                    <div style="font-size:14px; font-family: Arial;"><b>Job Title:</b>  #Fee_Agreement_Contact_JobTitle#</div>
                </cfif>
                <cfif Fee_Agreement_AcceptReject_Date NEQ "">
                    <div style="font-size:14px; font-family: Arial;"><b>Agreement Accepted On:</b> #DateFormat(Fee_Agreement_AcceptReject_Date,"mmm d, yyyy")# at #TimeFormat(Fee_Agreement_AcceptReject_Date, 'hh:mm tt')#</div>
                </cfif>
            </div>
        </cfdocument>
     
        <cfif  request.IndustryID EQ 4 >
            <!--- <cfset image="../../images/sterling_logo.png"> ---><!--- Task 3025, Feb 9, 2015 by omer --->
            <cfset image="../../images/sls_logo_high_resolution.jpg">
            <cfset position = "270,1000">
            <cfimage source="#image#" action="read" name="myWatermark">  
            <cfset ImageScaleToFit(myWatermark,250,100)> 
         <cfelse >
            <cfset myWatermark="../../images/Fep_Exective_Search.png">
            <cfset position = "190,1000">
        </cfif>
        <cfpdf name="pdfdoc" source="pdfdoc" action="addWatermark" foreground="yes" image=#myWatermark# overwrite="yes" position=#position#>

如何在 ColdFusion 中解决此问题?

0 个答案:

没有答案
相关问题