Merge existing pdfs from api call to newly generated pdf
-
Is there a way i can send an already generated pdf via post call to jsreport where jsreport can generate a new pdf and merge it with the one that was sent via api?
-
My backend is in dotnet and i'm calling RenderByNameAsync() method
-
Check out this example
https://playground.jsreport.net/w/anon/hKXuHP1Econst jsreport = require('jsreport-proxy') async function afterRender (req, res) { res.content = await jsreport.pdfUtils.merge(res.content, Buffer.from(req.data.externalPdfBase64, 'base64')) }
-
Thank you very much! Worked like a charm