TaTo30 / vue-pdf

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

PDF never loads in version 1.11.0 #147

Closed stripedpurple closed 2 months ago

stripedpurple commented 2 months ago

I am trying to display a single page PDF in an existing vue app running vue 3.4, but the PDF never loads or renders. I have create a simple POC using vue 3.4 and 3.5 (code below). I based the POC on the stackblitz example from the docs and nothing. The app renders a div with a blank canvas and no error are thrown. I have also tried different pdfs and srcUrl, including:

This problem does not exist in v1.9.7, but due to security policies at my company I can use this version of the library.

Additional context

Code Sample

<script setup>
import { usePDF, VuePDF } from '@tato30/vue-pdf'

const {pdf} = usePDF('https://raw.githubusercontent.com/mozilla/pdf.js/ba2edeae/web/compressed.tracemonkey-pldi-09.pdf')

</script>

<template>
  <VuePDF :pdf="pdf" @loaded="() => console.log('loaded')"/>
</template>
TaTo30 commented 2 months ago

Probably is related to #142, update to 1.11.1 and if the issue persists reopen it plz.