vue-pdf-embed
vue-pdf-embed copied to clipboard
Rotation Causes Blinking and Memory Spike
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.