Error when attempting to edit text after adding commercial license to webviewer

WebViewer Version: 8.12.0

Do you have an issue with a specific file(s)? No
Can you reproduce using one of our samples or online demos? No
Are you using the WebViewer server? No
Does the issue only happen on certain browsers? No
Is your issue related to a front-end framework? No
Is your issue related to annotations? No

Please give a brief summary of your issue:
I receive an error in the browser console when attempting to go into content edit / edit text mode for the WebViewer only after adding our commercial license key.

Please describe your issue and provide steps to reproduce it:
We have purchased a commercial license key for the WebViewer with text editing from Apryse, but when we add the license key to the licenseKey field in the WebViewer constructor, text editing breaks and the following error is logged to the console.


If taking the exact same actions but only removing the licenseKey, and loading the WebViewer in demo mode, text editing works fine.

Hello chad.sa,

Can you please provide a sample project to reproduce the issue and a sample file?

Best regards,
Tyler Gordon

I have added a sample next.js application for this issue here - GitHub - chadmmills/apryse-webviewer-error: Example code for error attempting to edit PDF text with license

The webviewer code is in /pages/index.js

If you run the app locally and navigate to localhost:3000 then the webviewer will display with a sample document.

If you replace the PDFTRON_LICENSE_KEY in /pages/index.js with a valid license (I can’t provide ours obviously) and attempt to go into edit mode by clicking the “Edit” icon below, the error appears in the console and we cannot edit any PDF text.

image

Hello chad-sa,

I was able to reproduce the issue, thank you for the sample project.

I will forward this to our product team to be added into a sprint to be worked on!

Best regards,
Tyler Gordon