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

Rotation Causes Blinking and Memory Spike

Open yuanhongyu123 opened this issue 4 months ago • 0 comments

When using the first method <VuePdfEmbed :source="props.pdfSource" :rotation="rotation" /> the rotation works fine.

However, when I switch to the second method <VuePdfEmbed :source="{ cMapUrl: 'cmaps/', url: props.pdfSource }" :rotation="rotation" /> to display Chinese characters, the PDF flashes twice during rotation. Additionally, there is a significant increase in memory usage, and consecutive rotation clicks lead to a memory surge. Eventually, the PDF area turns white or the page crashes.

yuanhongyu123 avatar Apr 05 '24 12:04 yuanhongyu123