fonol / anki-search-inside-add-card

An add-on providing full-text-search and PDF reading functionality to Anki's Add card dialog
https://ankiweb.net/shared/info/1781298089
GNU Affero General Public License v3.0
177 stars 24 forks source link

PDF.js was not loaded. #325

Open davidpilop opened 2 years ago

davidpilop commented 2 years ago

Describe the bug Hello, thank you very much for fantastic work you have done. I'm having trouble opening pdfs downloaded from the internet. When I download the file by clicking on print the problem disappears, but in that case the text cannot be selected or highlighted. I have tried to download an article from wikipedia in pdf format and the result is the same. I have also tried different browsers such as Google Chrome and Firefox. Please, I would like to know what I can do to be able to select text in the files, because since the last updates I can not do it and it makes my work very difficult.

To Reproduce

  1. SIAC>Import>Create New
  2. Source: Webpage to PDF (URL): https://drive.google.com/file/d/1pN1l6J82vWYTPCvIQnilGfSd526tijnI/view?usp=sharing
  3. SIAC>Quíck Open
  4. See error

Expected behavior PDF.js was not loaded. Retrying (NaN / 5)

Screenshots imagen

Environment (please complete the following information):

davidpilop commented 2 years ago

I've recently downloaded several documents from various websites and have always encountered the same pattern. When the text in the file can be selected, the application can't open it. When the text can't be selected, the application can open it. I think my situation could be related to #226, but I don't think the problem here is in the documents, since the rest of the applications allow me to open them without problems.

karolszk commented 1 year ago

Hello, unfortunately I've got the same error, which I reported in another issue #335

fonol commented 1 year ago

This could be fixed with the newest version.