Which product are you using?
PDF.js Express Viewer v. 8.2.1
Developer console log:
|UI version|‘8.2.0’|
|Core version|‘8.2.1’|
|Build|‘MS8yMC8yMDIyfGYyZTU5NTU0YQ==’|
|WebViewer Server|false|
|Full API|false|
Detailed description of issue
Trying to extract the selected pages from my Document through the Core.Document.extractPages function mentioned in the documentation, but the promise throws undefined no matter what I do.
Expected behaviour
Expected to have the pages that I fill in the input extracted to continue working with them.
Does your issue happen with every document, or just one?
All documents
Link to document
Any document can be used - not any specific, its a general issue for all documents.
Code snippet
#1 try
const {Core} = getInstance();
const document = Core.documentViewer.getDocument();
const pages = await document.extractPages([1]);
#2 try
const {Core} = getInstance();
const pages = await Core.document.extractPages([1]);