ng2-pdf-viewer
ng2-pdf-viewer copied to clipboard
Closing Large Files - Transport destroyed
Bug Report or Feature Request (mark with an x
)
- [ ] Regression (a behavior that used to work and stopped working in a new release)
- [ x ] Bug report -> please search issues before submitting
- [ ] Feature request
- [ ] Documentation issue or request
Hi,
I tried to search for this issue before submitting but couldn't find an answer on how to resolve. I found issue when opening a large file (~200 pages) and closing it is throwing "pdf_viewer.js:9203 Unable to get page 'n' to initialize viewer Error: Transport destroyed". This is because it is closing before all pages are rendered. We would like to be able to close a file without having to wait for all to finish rendering. I tried calling the destroy() on the PDFDocumentProxy and cleanup() and also tried setting it to null but none are working.
I have the same issue. It doesn't go through (error)
or any other event!
The exception/error appears for every page in the file that didn't get to render Stack:
The error will appear if the view is closed/destroyed while the page is rendering (the loader is still visible, but half the page is rendered only)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Same here, while changing src during rendering