How to Find jsPDF PDF A4 Page Pixel Size & Width Height in Browser Using Javascript

 

 

 

 

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).

 

 

A4 pixel dimensions: 793.706 x 1,122.52 pixels

Use this helper function to convert jsPDF points to other units (based on @lmerlo’s answer and the original source)

 

 

 

 

Leave a Reply