Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos?
Are you using the WebViewer server?
Does the issue only happen on certain browsers?
Is your issue related to a front-end framework?
Is your issue related to annotations?
Please give a brief summary of your issue:
I’m upgrading from v6.1.1 to v8.5.0 but would like to keep the Notes panel on the left-hand side. I came across the notesInLeftPanel constructor option added in v7.1.0; however, when I set that to true I am just getting notesPanelButton in leftPanel, but nothing else is appearing in that space when the button is selected. I searched for the element in the document but my query returned null: document.querySelector(“div[data-element=‘notesPanel’]”) - a similar query for ‘leftPanel’ does return an element as expected.
Please describe your issue and provide steps to reproduce it:
Add “notesInLeftPanel: true,” to the WebViewer constructor
Please provide a link to a minimal sample where the issue is reproducible:
Checking the console in Chrome developer tools I can see the same pair of errors appearing in both cases, but nothing that looks like an obvious explanation for why the notesPanel element is missing.
Refused to get unsafe header “Content-Range”
e.onreadystatechange @ webviewer-core.min.js:1142
Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘eB’)
at ca.Ah (webviewer-core.min.js:407:216)
While looking for the logged object I happened to notice we were initializing PDFNet in demo mode, and after adding the license key to that call the notesInLeftPanel functionality seems to be working fine. Interestingly this has not been giving us any problems with the older WebViewer version (6.1.1) so I guess that’s why it went unnoticed. On the topic though - is there a minimum version of the PDFNet jar that is required for compatibility with the latest WebViewer version (8.5.0)?
Unfortunately after reverting from the experimental build (WebViewer-8.6.0_2022-06-06_experimental) to the latest production version v8.5.0, the notesPanel element has disappeared again. I upgraded our PDFNet version from v7.1 to v9.2 but that didn’t make any difference; with either PDFNet version the notesInLeftPanel functionality is working with WebViewer v8.6 but not v8.5.
If the experimental build works for you, I would wait for 8.6 which is scheduled to be released tomorrow (Maybe the beginning of the next week at most).