Closed kdekooter closed 3 years ago
Hi! Do you use a custom locale? Provide an example please.
No custom locale.
<vue-pdf-app :pdf="url"></vue-pdf-app>
The url looks like this: /api/document-view/d1bd07ce-0541-4ba6-8322-c2c1163b4cfc
The server is serving this file with the following headers:
X-Powered-By: Express
content-disposition: inline; filename=Expanding-Triads-on-the-Bass-PDF.pdf.pdf
expires: Sun, 05 Oct 2031 08:23:01 GMT
cache-control: max-age=315360000
last-modified: Tue, 05 Oct 2021 08:11:19 GMT
etag: 2135-20211005081119
content-type: application/pdf
content-length: 63797
date: Tue, 05 Oct 2021 06:23:01 GMT
connection: close
And attached is the PDF I am trying to render. Expanding Triads on the Bass PDF.pdf
Check if script type="application/l10n"
exists in DOM.
Is it placed inside div#vuePdfApp
?
Attach script
's inner HTML:
Thanks for your support @sandanat. The console message seems to be false alarm. I noticed that the vuePdfApp
container somehow had a width of 0px
.... Some CSS rules fixed that. The PDF is rendered fine now.
Would be nice to get rid of the console message though.
The pdf is not loaded. This message is printed to the console. How can we fix this?