eKoopmans / html2pdf.js

Client-side HTML-to-PDF rendering using pure JS.
MIT License
4.13k stars 1.39k forks source link

Can you generat real pdf or just as one big image inside pdf? #282

Open Xstyler85 opened 4 years ago

Xstyler85 commented 4 years ago

When I generate pdf from the example I got a text as an image inside the PDF. Is it possible to generate real pdf with text that is selectable?

dhrytsenko commented 4 years ago

@Xstyler85 this library works with HTML5 canvas and generate pdf from rendered html as pictures. I think you can't generate selectable pdf

Tzvetelin88 commented 4 years ago

I had the same issue. I'm using jsPDF (jspdf.debug.js)+ html2canvas.

I see html2pdf and jsPDF are working together, not sure what is the connection between them, but there are options were you can use html2pdf+jsPDF and jsPDF with html2pdf.

After many hours of testing I'm using: https://github.com/MrRio/jsPDF from Master. It seems to work so far.