Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF never loads in version 1.11.0 #147

Closed
stripedpurple opened this issue Sep 6, 2024 · 1 comment
Closed

PDF never loads in version 1.11.0 #147

stripedpurple opened this issue Sep 6, 2024 · 1 comment

Comments

@stripedpurple
Copy link

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:

  • Uint8Array
  • data:application/pdf;base64,...
  • cdn links.

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

  • vue-pdf: 1.11.0
  • vue: 3.4 & 3.5

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
Copy link
Owner

TaTo30 commented Sep 8, 2024

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

@TaTo30 TaTo30 closed this as completed Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants