0

Merge 2 pdf files into 1 pdf

I tried to do it with 'jsPdf', but 2nd file is not getting added to the end of 1st file.

tried with 'pdf-actions' getting fileDoc.getPageIndices() is not a function.

for 'pdf-actions' I followed this: Merge created PDF with existing local PDF in ReactJS

K J
  • 8,045
  • 3
  • 14
  • 36
Ashwin
  • 1
  • 1
  • 3
  • Actually the problem was to get a PDF document signed from the clients, so for that I was creating 2 separate PDF Documents and trying to merge them into one Doc. but for now I used another approach to solve it, I used 'pdf-lib' to add image into already existing PDF file. And to generate signature image I used 'react-signature-canvas'. here is the link which I followed: https://pdf-lib.js.org/#examples – Ashwin Dec 26 '22 at 06:51

0 Answers0