How to restrict the number of pages loaded by PDF Express Viewer

Which product are you using?
PDF.js Express Viewer

PDF.js Express Version

Detailed description of issue
We want to implement a PDF Viewer to view the documents on the app. but on some instances we want to show only the first few pages of the pdf. So is there any way we can pass the page number limit, like numPages in PDF.js.

Expected behaviour
We want to show only few pages in the pdf.

Does your issue happen with every document, or just one?
Every Document

Link to document

Code snippet
{Provide a relevant code snippet}

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:


Hi there,

Unfortunately we do not support this functionality at the moment.