We are using demo license in React Client and WebViewer Server.
In React Client, I have used it while initializing WebViewer
Still I am getting This product must be initialized with a valid key.
WebViewer(
{
licenseKey: 'demo:xxxxx.xxxxxxxxxx@xxxxxxxx.com:7af85fdc0200000000e7c685f4c2bfc65075db0229a0627d742d320d01',
path: '/webviewer/lib',
//webviewerServerURL: 'https://demo.pdftron.com/',
webviewerServerURL: 'http://localhost:8090/',
},
this.viewer.current,
).then((instance) => {
const {
documentViewer,
annotationManager,
Annotations,
Search,
} = instance.Core
const { Feature } = instance.UI
instance.UI.enableFeatures([Feature.FilePicker])
const base64 = this.state.FileBase64
instance.UI.loadDocument(
this.base64ToBlob(base64, this.state.FileExt),
{
filename: this.state.FileName,
},
)
})