Re-load pages event

Hello, based on my understanding, the PDF.js viewer employs lazy loading when dealing with files containing more than 12 pages. As I scroll, the pages are reloaded. How can I capture this event?

1 Like

Thank you for posting your question to our forum. We will provide you with an update as soon as possible.

Hi there,

You can do this via the pageComplete event:
https://pdfjs.express/api/Core.DocumentViewer.html#event:pageComplete__anchor

Best regards,
Kevin Kim