WebViewer Version: v10.0.0
Do you have an issue with a specific file(s)?
All files I have tested fail
Please give a brief summary of your issue:
Custom Webviewer fails to loadDocument with 10.0.0
Please describe your issue and provide steps to reproduce it:
Calling documentViewer.loadDocument()
triggers this error:
Uncaught Error: Argument NaN in Document.getPageInfo must be a function
We have a custom webviewer in an Ember.js application that breaks when loading a document after updating from v8.11.0.
This issue start with v8.12.0, and I submitted an original ticket here: Custom Webviewer fails to loadDocument with 8.12.0
The issue is also present with the major bump to v10.0.0.
v8.11.0
v8.12.0
v10.0.0
Please provide a link to a minimal sample where the issue is reproducible:
Steps to install dependencies and run the application are in README.md
The error for the v10.0.0 error exists on the main
branch or the 10.0.0
branch.
The error for the v8.12.0 error exists on the 8.12.0
branch.
A working viewer with v8.11.0 exists on the 8.11.0
branch.
You will need to re yarn
and yarn move:pdftron
when switching between versions
Other Potentially Relevant Changes:
await this.Core.PDFNet.initialize();
According to the official documentation for pdfnet initialize you could pass null
as the first argument to start in demo mode, but this broke with the 8.12.0 update. There is no documented change to initialize in the 8.12.0 changelog.
We’re now not passing any argument.
Thank you for any assistance you can provide.
- Ben