<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Long reports return: Unable to render template.  Timeout during evaluation of pdf-utils operations]]></title><description><![CDATA[<p>Hello,</p>
<p>The full exception is:</p>
<pre><code class="language-blah">jsreport.Client.JsReportException: 'Unable to render template.  Timeout during evaluation of pdf-utils operations'
</code></pre>
<p>I seem to receive this any time I am rendering a report 30 pages or over. pdf-utils is setup to perform a merge of a page footer for each page.</p>
<p>Here is the config.json of my &quot;master&quot; template:</p>
<pre><code class="language-json">{
    &quot;folder&quot;: {
        &quot;shortid&quot;: &quot;ITA_ZvJ&quot;
    },
    &quot;shortid&quot;: &quot;B1lecBzF1B&quot;,
    &quot;name&quot;: &quot;sales-order&quot;,
    &quot;recipe&quot;: &quot;chrome-pdf&quot;,
    &quot;engine&quot;: &quot;handlebars&quot;,
    &quot;chrome&quot;: {
        &quot;printBackground&quot;: true,
        &quot;displayHeaderFooter&quot;: false
    },
    &quot;creationDate&quot;: &quot;2019-06-20T14:20:13.845Z&quot;,
    &quot;modificationDate&quot;: {
        &quot;$$date&quot;: 1561409017044
    },
    &quot;_id&quot;: &quot;BXlf7xpYCnmvS5l1&quot;,
    &quot;$entitySet&quot;: &quot;templates&quot;,
    &quot;data&quot;: {
        &quot;shortid&quot;: &quot;BJeiXcfFJr&quot;
    },
    &quot;pdfOperations&quot;: [
        {
            &quot;type&quot;: &quot;merge&quot;,
            &quot;templateShortid&quot;: &quot;H1xcBlBK1B&quot;,
            &quot;enabled&quot;: true,
            &quot;renderForEveryPage&quot;: true,
            &quot;mergeWholeDocument&quot;: false
        }
    ]
}
</code></pre>
<p>And here is the config.json for the footer:</p>
<pre><code class="language-json">
{
    &quot;folder&quot;: {
        &quot;shortid&quot;: &quot;ITA_ZvJ&quot;
    },
    &quot;shortid&quot;: &quot;H1xcBlBK1B&quot;,
    &quot;name&quot;: &quot;sales-order-footer&quot;,
    &quot;recipe&quot;: &quot;chrome-pdf&quot;,
    &quot;engine&quot;: &quot;handlebars&quot;,
    &quot;chrome&quot;: {
        &quot;printBackground&quot;: true
    },
    &quot;creationDate&quot;: &quot;2019-06-20T17:20:28.090Z&quot;,
    &quot;modificationDate&quot;: {
        &quot;$$date&quot;: 1561124362090
    },
    &quot;_id&quot;: &quot;cb4JxG0tbxJe9e6E&quot;,
    &quot;$entitySet&quot;: &quot;templates&quot;
}
</code></pre>
<p>And the template of the footer:</p>
<pre><code class="language-html">&lt;div style=&quot;position: absolute; bottom: 10px&quot;&gt;Page {{$pdf.pageNumber}} of {{$pdf.pages.length}}&lt;/div&gt;
</code></pre>
<p>I need to be able to generate reports that have many more than just 30 pages, potentially around 500.  Is there a way to increase the timeout for pdf-utils?</p>
<p>Let me know if you need any more information like the main template contents (it is essentially an order receipt with product images).</p>
<p>Thanks in advance!</p>
<p>Mike</p>
]]></description><link>https://forum.jsreport.net/topic/1124/long-reports-return-unable-to-render-template-timeout-during-evaluation-of-pdf-utils-operations</link><generator>RSS for Node</generator><lastBuildDate>Tue, 15 Sep 2026 15:58:34 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/1124.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 27 Jun 2019 19:02:06 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Long reports return: Unable to render template.  Timeout during evaluation of pdf-utils operations on Invalid Date]]></title><description><![CDATA[<p>Hello,</p>
<p>The full exception is:</p>
<pre><code class="language-blah">jsreport.Client.JsReportException: 'Unable to render template.  Timeout during evaluation of pdf-utils operations'
</code></pre>
<p>I seem to receive this any time I am rendering a report 30 pages or over. pdf-utils is setup to perform a merge of a page footer for each page.</p>
<p>Here is the config.json of my &quot;master&quot; template:</p>
<pre><code class="language-json">{
    &quot;folder&quot;: {
        &quot;shortid&quot;: &quot;ITA_ZvJ&quot;
    },
    &quot;shortid&quot;: &quot;B1lecBzF1B&quot;,
    &quot;name&quot;: &quot;sales-order&quot;,
    &quot;recipe&quot;: &quot;chrome-pdf&quot;,
    &quot;engine&quot;: &quot;handlebars&quot;,
    &quot;chrome&quot;: {
        &quot;printBackground&quot;: true,
        &quot;displayHeaderFooter&quot;: false
    },
    &quot;creationDate&quot;: &quot;2019-06-20T14:20:13.845Z&quot;,
    &quot;modificationDate&quot;: {
        &quot;$$date&quot;: 1561409017044
    },
    &quot;_id&quot;: &quot;BXlf7xpYCnmvS5l1&quot;,
    &quot;$entitySet&quot;: &quot;templates&quot;,
    &quot;data&quot;: {
        &quot;shortid&quot;: &quot;BJeiXcfFJr&quot;
    },
    &quot;pdfOperations&quot;: [
        {
            &quot;type&quot;: &quot;merge&quot;,
            &quot;templateShortid&quot;: &quot;H1xcBlBK1B&quot;,
            &quot;enabled&quot;: true,
            &quot;renderForEveryPage&quot;: true,
            &quot;mergeWholeDocument&quot;: false
        }
    ]
}
</code></pre>
<p>And here is the config.json for the footer:</p>
<pre><code class="language-json">
{
    &quot;folder&quot;: {
        &quot;shortid&quot;: &quot;ITA_ZvJ&quot;
    },
    &quot;shortid&quot;: &quot;H1xcBlBK1B&quot;,
    &quot;name&quot;: &quot;sales-order-footer&quot;,
    &quot;recipe&quot;: &quot;chrome-pdf&quot;,
    &quot;engine&quot;: &quot;handlebars&quot;,
    &quot;chrome&quot;: {
        &quot;printBackground&quot;: true
    },
    &quot;creationDate&quot;: &quot;2019-06-20T17:20:28.090Z&quot;,
    &quot;modificationDate&quot;: {
        &quot;$$date&quot;: 1561124362090
    },
    &quot;_id&quot;: &quot;cb4JxG0tbxJe9e6E&quot;,
    &quot;$entitySet&quot;: &quot;templates&quot;
}
</code></pre>
<p>And the template of the footer:</p>
<pre><code class="language-html">&lt;div style=&quot;position: absolute; bottom: 10px&quot;&gt;Page {{$pdf.pageNumber}} of {{$pdf.pages.length}}&lt;/div&gt;
</code></pre>
<p>I need to be able to generate reports that have many more than just 30 pages, potentially around 500.  Is there a way to increase the timeout for pdf-utils?</p>
<p>Let me know if you need any more information like the main template contents (it is essentially an order receipt with product images).</p>
<p>Thanks in advance!</p>
<p>Mike</p>
]]></description><link>https://forum.jsreport.net/post/5272</link><guid isPermaLink="true">https://forum.jsreport.net/post/5272</guid><dc:creator><![CDATA[MKuenzi]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Long reports return: Unable to render template.  Timeout during evaluation of pdf-utils operations on Invalid Date]]></title><description><![CDATA[<blockquote>
<p>I need to be able to generate reports that have many more than just 30 pages, potentially around 500. Is there a way to increase the timeout for pdf-utils?</p>
</blockquote>
<p>yes, you should be able to increase the timeout by using this in your <code>jsreport.config.json</code> file</p>
<pre><code class="language-js">{
  ...
  &quot;templatingEngines&quot;: {
    &quot;timeout&quot;: 40000
  }
  ...
}
</code></pre>
<p>which increases it to 40seconds. you can put there the value you want.</p>
<blockquote>
<p>I seem to receive this any time I am rendering a report 30 pages or over. pdf-utils is setup to perform a merge of a page footer for each page.<br />
I need to be able to generate reports that have many more than just 30 pages, potentially around 500</p>
</blockquote>
<p>have you tried to use the <code>merge whole documents</code> option? <a href="https://jsreport.net/learn/pdf-utils#merge" rel="nofollow">https://jsreport.net/learn/pdf-utils#merge</a></p>
<p>it should speed up the rendering a lot, because that instead of doing one render for each page it does one render and then just combine the pages. i think you should try it, it should increase the rendering speed a lot, here is an example <a href="https://playground.jsreport.net/w/admin/Wy6stA8t" rel="nofollow">https://playground.jsreport.net/w/admin/Wy6stA8t</a> if you have some problems trying to layout things when using the <code>merge whole documents</code> option then remember that you can share the entities of your example on the <a href="https://playground.jsreport.net/" rel="nofollow">playground</a> or by uploading an <a href="https://jsreport.net/learn/import-export" rel="nofollow">export zip file</a> here in the post</p>
]]></description><link>https://forum.jsreport.net/post/5274</link><guid isPermaLink="true">https://forum.jsreport.net/post/5274</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Long reports return: Unable to render template.  Timeout during evaluation of pdf-utils operations on Invalid Date]]></title><description><![CDATA[<p>Thanks a lot I will try that in the future.  I actually realized I can just use the native Chrome footer for this after reading <a href="https://forum.jsreport.net/topic/1116/jsreport-native-header-footer-issue">https://forum.jsreport.net/topic/1116/jsreport-native-header-footer-issue</a> (I wasn't seeing the footer because I didn't set the margin like the OP)  so that solution is working for me, but I will check that out if I need a more advanced solution.</p>
]]></description><link>https://forum.jsreport.net/post/5275</link><guid isPermaLink="true">https://forum.jsreport.net/post/5275</guid><dc:creator><![CDATA[MKuenzi]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>