Closed GuoyiCoding closed 6 months ago
I used PDFDocumentProxy.destory() to destroy the previous document instance and terminate the worker when source of pdf has changed.
PDFDocumentProxy.destory()
Now, it seems that every JavaScript VM instance created before can be destroyed normally.
Before
After
I don't have extensive experience creating PRs, so I'd be happy to receive any feedback you might have.
Thank you! @GuoyiCoding
The PR looks well, but is usually a good practice to link the PR with the issue. 😊
I used
PDFDocumentProxy.destory()
to destroy the previous document instance and terminate the worker when source of pdf has changed.Now, it seems that every JavaScript VM instance created before can be destroyed normally.
Before
After
I don't have extensive experience creating PRs, so I'd be happy to receive any feedback you might have.