When a pattern crosses a page, this also lets what is drawn afterward go to the next page
var doc = new jsPDF();
const ctx = doc.context2d
ctx.autoPaging = false
ctx.strokeRect(0, 200, 100, 100);
ctx.fillText("This line should be on the first page.", 0, 100)

var doc = new jsPDF();
const ctx = doc.context2d
ctx.autoPaging = false
// ctx.strokeRect(0, 200, 100, 100);
ctx.fillText("This line should be on the first page.", 0, 100)

Expected behavior
Do not call getPagesByPath when ctx.autoPaging is set to false
(move the call into the if (this.autoPaging) { block)