Is there a way to get the current page no on PDFKIT js without relying on the page added event to increment the page variable like on the example below?.
doc.addListener('pageAdded', () => { pos = 1; page++; });