<?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[Adding JsReport to Express Route to produce PDF with images]]></title><description><![CDATA[<p>I really appreciate <a class="plugin-mentions-a" href="https://forum.jsreport.net/groups/administrators">@administrators</a> for providing me with feedback with working with handlebars and accessing resources via the API for js-report.</p>
<p>I am curious to know how can I access my local filesystem's assets using the same logic as the solution provided here:</p>
<p><a href="https://forum.jsreport.net/topic/533/how-to-iterate-over-assets-directory-in-jsreport/7">https://forum.jsreport.net/topic/533/how-to-iterate-over-assets-directory-in-jsreport/7</a></p>
<p>My current work in progress is here:</p>
<p><a href="https://gist.github.com/ahlusar1989/1347d2e6367375805b78e0f27d6ca4a3" rel="nofollow"><strong>Route and Template Render Functions</strong></a></p>
<p>My handlebars template (&quot;maps.html&quot;) is as follows:</p>
<p><a href="https://gist.github.com/ahlusar1989/4c3367463ae21eddf526d61e1749bf6c" rel="nofollow">map.html</a></p>
]]></description><link>https://forum.jsreport.net/topic/534/adding-jsreport-to-express-route-to-produce-pdf-with-images</link><generator>RSS for Node</generator><lastBuildDate>Fri, 15 May 2026 04:06:54 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/534.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 May 2018 23:06:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Adding JsReport to Express Route to produce PDF with images on Invalid Date]]></title><description><![CDATA[<p>I really appreciate <a class="plugin-mentions-a" href="https://forum.jsreport.net/groups/administrators">@administrators</a> for providing me with feedback with working with handlebars and accessing resources via the API for js-report.</p>
<p>I am curious to know how can I access my local filesystem's assets using the same logic as the solution provided here:</p>
<p><a href="https://forum.jsreport.net/topic/533/how-to-iterate-over-assets-directory-in-jsreport/7">https://forum.jsreport.net/topic/533/how-to-iterate-over-assets-directory-in-jsreport/7</a></p>
<p>My current work in progress is here:</p>
<p><a href="https://gist.github.com/ahlusar1989/1347d2e6367375805b78e0f27d6ca4a3" rel="nofollow"><strong>Route and Template Render Functions</strong></a></p>
<p>My handlebars template (&quot;maps.html&quot;) is as follows:</p>
<p><a href="https://gist.github.com/ahlusar1989/4c3367463ae21eddf526d61e1749bf6c" rel="nofollow">map.html</a></p>
]]></description><link>https://forum.jsreport.net/post/2659</link><guid isPermaLink="true">https://forum.jsreport.net/post/2659</guid><dc:creator><![CDATA[ahlusar1989]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Adding JsReport to Express Route to produce PDF with images on Wed, 16 May 2018 14:55:24 GMT]]></title><description><![CDATA[<p>hi! you can use <strong>someting similar</strong> to the example described <a href="https://jsreport.net/learn/scripts#use-custom-configuration" rel="nofollow">here</a>, but first in your jsreport configuration file you need to add/update the <a href="https://jsreport.net/learn/configuration#allow-local-files-and-local-modules" rel="nofollow">allowLocalFilesAccess</a> config to this value <code>allowLocalFilesAccess: true</code>, that will let you require the built-in <a href="https://nodejs.org/dist/latest-v8.x/docs/api/fs.html" rel="nofollow">fs</a> nodejs module, which has methods to read your filesystem, you can use that inside scripts to read some content from your filesystem and use it inside your template.</p>
]]></description><link>https://forum.jsreport.net/post/2674</link><guid isPermaLink="true">https://forum.jsreport.net/post/2674</guid><dc:creator><![CDATA[bjrmatos]]></dc:creator><pubDate>Wed, 16 May 2018 14:55:24 GMT</pubDate></item><item><title><![CDATA[Reply to Adding JsReport to Express Route to produce PDF with images on Invalid Date]]></title><description><![CDATA[<p>Thanks for the feedback <a class="plugin-mentions-a" href="https://forum.jsreport.net/uid/4">@bjrmatos</a>. I decided to just make a request to the service separately. Given that I have time constraints for delivering a working solution, I will focus on just making a separate request.</p>
<p>I should note that I did try the example you suggested but was unable to access the images in any directory during the compilation using the handlebars engine.</p>
]]></description><link>https://forum.jsreport.net/post/2678</link><guid isPermaLink="true">https://forum.jsreport.net/post/2678</guid><dc:creator><![CDATA[ahlusar1989]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>