<?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[Merge external PDF into recipe]]></title><description><![CDATA[<p>Hello, I was wondering if its possible in the jsreports system to pass through an external pdf in base64 or any other format and merge it into a recipe I have created for making a report?</p>
<p>Regards<br />
Michael</p>
]]></description><link>https://forum.jsreport.net/topic/3508/merge-external-pdf-into-recipe</link><generator>RSS for Node</generator><lastBuildDate>Wed, 12 Aug 2026 02:24:28 GMT</lastBuildDate><atom:link href="https://forum.jsreport.net/topic/3508.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 24 Nov 2025 12:55:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Merge external PDF into recipe on Invalid Date]]></title><description><![CDATA[<p>Hello, I was wondering if its possible in the jsreports system to pass through an external pdf in base64 or any other format and merge it into a recipe I have created for making a report?</p>
<p>Regards<br />
Michael</p>
]]></description><link>https://forum.jsreport.net/post/14811</link><guid isPermaLink="true">https://forum.jsreport.net/post/14811</guid><dc:creator><![CDATA[Michael Hawthorne]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Merge external PDF into recipe on Invalid Date]]></title><description><![CDATA[<p>Yes, you can use a custom jsreport script where you can code what you need<br />
<a href="https://jsreport.net/learn/scripts" rel="nofollow">https://jsreport.net/learn/scripts</a><br />
<a href="https://jsreport.net/learn/pdf-utils#usage-in-script" rel="nofollow">https://jsreport.net/learn/pdf-utils#usage-in-script</a></p>
<pre><code class="language-js">const jsreport = require('jsreport-proxy')
async function afterRender (req, res) {
    res.content = await jsreport.pdfUtils.merge(res.content, Buffer.from(req.data.externalPdf, 'base64'))
}
</code></pre>
<p>Full demo here<br />
<a href="https://playground.jsreport.net/w/anon/2lCyXIBl" rel="nofollow">https://playground.jsreport.net/w/anon/2lCyXIBl</a></p>
]]></description><link>https://forum.jsreport.net/post/14812</link><guid isPermaLink="true">https://forum.jsreport.net/post/14812</guid><dc:creator><![CDATA[admin]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Reply to Merge external PDF into recipe on Invalid Date]]></title><description><![CDATA[<p>I’ve run into similar issues when trying to pull in external PDFs that weren't generated by the same template. Using the pdf-utils 'merge' or 'append' operations is definitely the way to go, but it can get a bit finicky if the source files have different page sizes or metadata.<br />
If you're still having trouble getting the pages to line up, one thing that helped me was to 'pre-process' the external files first to make sure they're cleaned up or split into the exact pages you need before calling them in the recipe. It’s a bit of an extra step, but it usually stops those weird layout shifts or empty pages from happening during the merge!</p>
]]></description><link>https://forum.jsreport.net/post/14888</link><guid isPermaLink="true">https://forum.jsreport.net/post/14888</guid><dc:creator><![CDATA[JannetGen]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>