jspdf changedpi to 300 in javascript

You can use the jsPDF.setDPI() method to set the DPI of the document. Here's an example:

index.tsx
let pdfDoc = new jsPDF();
pdfDoc.setDPI(300);
46 chars
3 lines

This will set the DPI of the document to 300. You can replace 300 with any DPI value you want.

Note that changing the DPI of the document can affect the size and quality of the document.

related categories

gistlibby LogSnag