How can I import an existing PDF into JsReport so that I can leverage the merge feature of pdf-utils?



  • I have an existing PDF which I can only receive in its finalized state, post-rendering, as a stream/byte array. I need to tack it on to the end of a pdf that I'm actually using jsreport to generate. I see the merge feature, but it expects a PDF object which looks similar to what JsReport generates. Is there any easier way to accomplish this than to leverage another PDF library?



  • The easiest is to upload pdf as an asset and use template with static-pdf recipe
    https://jsreport.net/learn/static-pdf

    However, I need to note that support for external pdfs isn't complete. For example, some existing pdf's use linearization, which jsreport currently doesn't support.



  • That worked great - thank you


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.