Replies: 1 comment
-
if you use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, i will show preview pdf with pdf.js (project wit laravel backend and vue3js frontend). I've that function: `const renderPdf = async (url) => {
try {
console.log('Fetching document from URL:', url);
const loadingTask = pdfjsLib.getDocument(url);
pdfDoc.value = await loadingTask.promise;
console.log('Document loaded successfully', pdfDoc.value);
};
and on getPage i've always same error. I don't know why but i can see my pdf on another page. My objectif is to have my pdf with laravel dompdf and for preview on my page web with pdf js but i've that error:
DetailBusinessCard.vue:174 Error rendering PDF: TypeError: Cannot read from private field at __accessCheck (chunk-TIUEEL27.js?v=d20829a4:41:11) at __privateGet (chunk-TIUEEL27.js?v=d20829a4:44:3) at Proxy.getPage (api.js:2923:23) at Proxy.getPage (api.js:833:28) at renderPdf (BusinessCard.vue:154:41) at async generatePreviewPdf (BusinessCard.vue:131:13)
I needed help please, thank you so much
Beta Was this translation helpful? Give feedback.
All reactions