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

vue-pdf pdf file create fails after pdf destroy

Open asd375zxcvb opened this issue 6 years ago • 2 comments

asd375zxcvb avatar Jul 04 '19 09:07 asd375zxcvb

I have pdf inserted in two pages, but when I switch between pages, the first pdf is loaded and the second pdf is not loaded.

asd375zxcvb avatar Jul 04 '19 09:07 asd375zxcvb

I have pdf inserted in two pages, but when I switch between pages, the first pdf is loaded and the second pdf is not loaded.

Try remove worker after load 1 document, smth like this

mounted() {
    this.src.promise.then((pdf) => {
            this.numPages = pdf.numPages

            this.src._worker.destroy()
        })
}

romio95 avatar May 16 '24 16:05 romio95