Product: @pdftron/webviewer
Product Version:^11.7.1
one document is not loading using below code, but it is loading when choosing using open file option.
const file = this.filesQueue[this.currentFileIndex];
this.file = file;
const fileAsBlob = new Blob([file], { type: file.type });
await this.viewerInstance.UI.loadDocument(fileAsBlob, { filename: file.name, extension: this.file.name.split(‘.’).pop(),cacheKey: `1234-${new Date().getTime()}` });
Hello Lokesh,
Thank you for contacting Apryse Forums.
This sounds file specific based on your description. Could you provide the document?
You can upload here: 180895
Best Regards,
Darian
Thanks for the quick replay. Uploaded the document, can you please check.
Hello,
Are there any console/network errors when loading this file? Have you ensured that the extension provided in the loadDocument call is “docx”?
Best Regards,
Darian
Hello,
No console/network errors. the extension provided is “docx” only.
Hello Lokesh,
I’ve been able to successfully load that file as a blob. Could you provide a basic sample project to help reproduce the issue? You can upload the project to that I provided earlier.
Best Regards,
Darian