vue-pdf-embed icon indicating copy to clipboard operation
vue-pdf-embed copied to clipboard

Expose a function to cancel rendering job in worker

Open fabiiomiiguel opened this issue 3 years ago • 2 comments

Hello, first of all thank you for your amazing package.

My feature request is because, I use a modal with your pdf viewer, and some times if we are too quickly the worker doesn't stop is previous rendering job. So if we close while its still rendering and re-open immediately after. The package will throw an error and then we need to close and re-open again to make it work.

So maybe it would be nice to have some type of function to call with this.$refs, to cancel the current job rendering manually.

fabiiomiiguel avatar Jul 11 '22 15:07 fabiiomiiguel

Hi @fabiiomiiguel,

According to the description it looks very similar to this one. This has already been fixed but not released.

hrynko avatar Jul 23 '22 10:07 hrynko

Yes maybe it's related, when you release that version, I would let you know if that solves my question.

fabiiomiiguel avatar Jul 24 '22 11:07 fabiiomiiguel

It's been a while, but it's released in 1.1.5

Feel free to reopen this issue if it's not fixed

hrynko avatar Nov 08 '22 10:11 hrynko