vue-pdf
vue-pdf copied to clipboard
throw InvalidPDFException error and the page is blank
my code
<template>
<pdf :src="url"></pdf>
</template>
<script>
import pdf from 'vue-pdf'
export default {
components: {
pdf
},
data () {
return {
url: 'fileUrl******'
}
}
}
</script>
console shows the error:
message: "Invalid PDF structure"
name: "InvalidPDFException"
but I can directly open id in chrome.
If I use the vue-pdf in a wrong way?
Look for help eagerly waiting!
I have the same question,did you solved this problem?
I have the same question,did you solved this problem?
Any fix for this?
I had this problem and I used redirect.
const redirectTo = 'mypagepdf'
window.location.replace("/"+ redirectTo);
I´m having the same problem.
@gpcodex how did you apply this in the context of vue and the code above? How did you get the pdf vue library to generate the pdf.
I seem to have this problem only when I have a parameter in my url. i.e.
On another file you click on the below:
It goes to a new route which has this component:
Thing Name: {{ thingName }}
If anyone has any idea as to why this happens, I´d be really grateful!