Append a PDF
-
How to append a PDF using a data link to a PDF.
https://playground.jsreport.net/w/anon/M5qbOSAQ
-
The most flexible is to use jsreport script and use pdf utils in code
https://jsreport.net/learn/pdf-utils#usage-in-scriptDemo
https://playground.jsreport.net/w/anon/39CGt28Rconst jsreport = require('jsreport-proxy') const axios = await jsreport.npm.require('axios@0.27.2') async function afterRender (req, res) { const r = await axios.get(req.data.url, { responseType: 'arraybuffer' }) res.content = await jsreport.pdfUtils.append(res.content, r.data) }