You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In context2d module at 3 places pages.sort() is being called. It sorts the pages as strings so 10 is before 9 for example. This causes problems when autoPaging is turned on.
get context2d
fill a rectangle for example, starting from page 10 going upwards to page 9.
nothing is drawn
The text was updated successfully, but these errors were encountered:
var doc = new jsPDF({format:[100, 100]});
var ctx = doc.context2d;
ctx.autoPaging = true;
ctx.fillRect(0, 750, 20, 100); // rectangle starting from page 8 going to page 9 is drawn
ctx.fillRect(0, 850, 20, 100); // rectangle starting from page 9 going to page 10 is not drawn
In context2d module at 3 places pages.sort() is being called. It sorts the pages as strings so 10 is before 9 for example. This causes problems when autoPaging is turned on.
The text was updated successfully, but these errors were encountered: