Check this first
Describe the bug
A clear and concise description of what the bug is.
When destroying component that is using the ngx-extended-pdf-viewer I am getting the following error:
this.document.removeElement is not a function at DynamicCssComponent.ngOnDestroy.
This seems to keep the pdf-viewer in memory, so the next time i load the viewer up i am receiving the error that 2 pdf viewers exist.
Version info
Desktop (please complete the following information):
Smartphone (please complete the following information):
To Reproduce
Can you provide a reproducer? That's a small and simple but complete project demonstrating the bug.
Otherwise, please tell me how to reproduce the behavior:
Demo PDF file
Many errors happen with specific PDF files only. So please add a PDF file (after checking the copyright of the PDF file first!)
I have tested with multiple PDF files, the same issue exists.
Screenshots
If applicable, add screenshots to help explain your problem.
Here is the error log I am getting from the console:

Additional context
Add any other context about the problem here.
This was not an issue with previous releases, it may be tied to something new in pdf.js.
Just implemented this component 20 minutes ago and I'm getting it when navigating away from page component that this is implemented in.
Oops. That's an unexpected bug, and it doesn't look good. I'm putting it top on my list.
Weird bug. No idea how it slipped my testing. Be that as it may, your bugfix has landed with version 3.0.1.
Enjoy!
Stephan
Most helpful comment
Weird bug. No idea how it slipped my testing. Be that as it may, your bugfix has landed with version 3.0.1.
Enjoy!
Stephan