TaTo30 / vue-pdf

PDF component for Vue 3
https://tato30.github.io/vue-pdf/
MIT License
472 stars 65 forks source link

ram full and slow when change pdf file #130

Closed leontecluyen closed 2 months ago

leontecluyen commented 4 months ago

*.vue file

import { VuePDF, usePDF } from '@tato30/vue-pdf'

VuePDF :pdf="pdf" class="test"

script const fileURL = ref('') const { pdf } = usePDF(fileURL)

const setURL = () => { fileURL.value = applyData.value.rent_file_url }

---> applyData is response from api when call api many times it so slow sorry for my bad english

TaTo30 commented 4 months ago

Please, share the PDF file and a code example to reproduce the issue.

deepfaith commented 3 months ago

Hi, I hope there's a fix on this it seems the highlighting causes ram to utilize full usage.

Btw, thanks for the package, it helps me a lot!

chronicadventure commented 2 months ago

this may be related to what i just posted on our conversation https://github.com/TaTo30/vue-pdf/discussions/135, even loading the same pdf over and over seems to spawn more workers and not close the old ones thus increasing ram each time