What is the size in pixels for jspdf's 'a4' format? I want to add an image to pdf so it will take full width of the document.
new jsPDF('p', 'pt', 'a4');
new jsPDF('p', 'pt', [ 595.28, 841.89])
In the sourcecode on GitHub you can see the supported units (relative proportions to pt), and you can also see the default page formats (with their sizes in pt).
Hope this could help,
Laura.