Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

pdf_viewer #553

Open
iamandy584 opened this issue May 24, 2019 · 1 comment
Open

pdf_viewer #553

iamandy584 opened this issue May 24, 2019 · 1 comment

Comments

@iamandy584
Copy link

Hey, I got into error that said:

Uncaught TypeError: Cannot set property 'annotationAvailable' of undefined
at PDFViewer.updateAnnotationAvailable_ (pdf_viewer.js:1247)
at PDFViewer.setDocumentMetadata (pdf_viewer.js:1144)
at PluginController.handlePluginMessage_ (pdf_viewer.js:1591)
at HTMLEmbedElement. (pdf_viewer.js:1437)

anyone knows how to fix it?

@mubarakmujawar123
Copy link

Before issue resolve
setTimeout(function(){
mywindow.print();
mywindow.document.close(); // necessary for IE >= 10
mywindow.close();

}, 500);

I add below code in separate setTimeout function and also remove "mywindow.document.close();" then its working fine for me

setTimeout(function () { mywindow.print(); }, 100);
setTimeout(function () { mywindow.close(); }, 1000);

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants