Which product are you using?
PDF.js Express Viewer (Licensed)
PDF.js Express Version
8.7.0
Detailed description of issue
I’m using the React app with the MobX store. To have a viewer control over whole app I was trying to provide viewer instance after initialization to the store. The store for this example would be very simple, just with 1 method to set the instance and receiving next error (sorry for images, can’t upload more than 1 photo):
But I’m not able to enable full API, becaus “fullAPI” is not a valid constuctor option for PDF.js Express. I even don’t need to enable fullApi, just want to pass the instance to the store.
Without passing it to the store, it works perfectly, even though I create a class, based on this instance and pass it up to some component levels. Is there something I’m missing?
Last Note: If store is not auto observable all is working fine, but this solution is useless because components that use store can’t understand that it has received a viewer instance.
Expected behaviour
Be available to pass instance to the store;
Does your issue happen with every document, or just one?
Any document.
Link to document
Can use any document or don’t use them at all.