V
V
Vladimir2020-01-07 00:41:31
JavaScript
Vladimir, 2020-01-07 00:41:31

How to transfer the blocks themselves with css to pdf, and not just the text inside them?

Good evening. Please tell me how can I pass the page to the object as it is in the browser?

var pdf = new jsPDF()

    pdf.fromHTML(document.querySelector('html'))

    pdf.save('test.pdf')

5e13a97b82f27707526325.png5e13a98505e46198644173.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question