Home » Jquery » javascript – How to Merge Two PDF Files Using jsPDF-Exceptionshub

javascript – How to Merge Two PDF Files Using jsPDF-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

I’d like to know how to merge two (or more) PDF files into one single file using jsPDF and then show it using the browser’s pdf viewer of the user.

My requirement is to make easier the process of printing a group of documents, instead of printing one by one just merge them all and print one single file.

I’ve looked at this other question here in Stack Overflow but that didn’t help me too much because in this case they are creating the pdf from HTML content, and in my case i have to merge a set of pdf files together.
Merge two PDF’s generated with jsPDF into one document

I could get my PDF files from an url or also getting the raw content from them (the base64 code) so I was wondering if there’s a way of using this library to do it. If so I only need to know what methods to use or maybe a link to the documentation (i’ve also seen documentation but nothing found)

Thankyou very much for your answers, any help would be appreciated. Regards!

How to&Answer: