eKoopmans/html2pdf.js

links are into a single page when try to merge multiple pages

BalajiArun004 opened this issue · 0 comments

Thank you very much @eKoopmans, it works like a charm! I needed to set it up in a dynamic way (variable number of pages) so I post here what it's working for me:

      let doc = html2pdf().set(opt).from(pages[0]).toPdf()
      for (let j = 1; j < this.pages.length; j++) {
        doc = doc.get('pdf').then(
          pdf => { pdf.addPage() }
        ).from(pages[j]).toContainer().toCanvas().toPdf()
      }
      doc.save()  

I used this approach it works but the problem is when I enable the links all the links are into a single page
any solution for that case

Originally posted by @BalajiArun004 in #187 (comment)