I'm using Html2Canvas for capture the screenshot of my screen i want to get a output as a PDF file now i'm getting output in png image how to convert or get output in pdf
On Windows.
Right-click on your image.Hover over the Open With option and select photos.Select the Print icon, and in the printer drop-down menu, select Microsoft Print to PDF.
How do I print a PDF in JavaScript?
How to print a PDF file using Javascript.
.
.
How do I export my HTML page as PDF using JavaScript?
Generate PDF using JavaScript
The following example shows how to use the jsPDF library to generate PDF file using JavaScript. Specify the content in text() method of jsPDF object. Use the addPage() method to add new page to PDF. Use the save() method to generate and download PDF file.
Can you take a screenshot with JavaScript?
A screenshot of any element in JavaScript can be taken using the html2canvas library. This library can be downloaded from its official website.