question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No pdf loaded when using locale file

See original GitHub issue

Configuration:

  • Web browser and it`s version:
  • Operating system and it`s version:
  • vue-pdf-app version: 2.0.0

Steps to reproduce the problem:

  1. Include link to locale file (different than English) in head
  2. Create two buttons that loads different pdf files in the same vue using a data variable to store the pdf path
  3. Initially the first PDF loads correctly but when we press the second button to load the second PDF, it no longer loads.

What is the expected behavior?

The vue-pdf-app should loads the pdf file always

What went wrong?

if we include the locale file, the viewer doesn’t load the pdf’s after the first load.

Attachments (screenshots, links, etc)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
henrik-peszlencommented, May 17, 2021

I think I found the problem, when I pre-fetch the PDF and pass it in as an arrayBuffer the locale don’t work (the second time) but if I pass the file path it works as expected. Maybe this can be of help to someone else.

0reactions
sebarsweecommented, Jul 5, 2022

I think I found the problem, when I pre-fetch the PDF and pass it in as an arrayBuffer the locale don’t work (the second time) but if I pass the file path it works as expected. Maybe this can be of help to someone else.

I have the same problem using ArrayBuffer, and if I pass the pdf path or not using locale resource, everything works fine

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot viewing PDF files on the web - Adobe Support
Follow these steps to solve the common issues around viewing PDF files from a website.
Read more >
Not allowed to load local resource, embedded pdf in object
So I checked if the files I download are somehow restricted, but they arent and even if I rightclick on the link in...
Read more >
5 Approaches Setting up Content in RadPdfViewer ASP.NET ...
A common scenario is when the PDF file that is about to be loaded it in the PDF viewer is not yet an...
Read more >
Localize your app - Android Developers
Whenever the app runs in a locale for which you have not provided locale-specific text, Android loads the default strings from ...
Read more >
742099 - Localize pdf.js strings and replace with the final ...
PDF Viewer is currently localized for a few locales by unofficial localizers (add-on developers ... There no issues with placing all localized files...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found