pdf_viewer
iamandy584 opened this issue · 1 comments
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?
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);