johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
5.25k stars 254 forks source link

[Bug Report] Unable to open a pdf file #1304

Open DestroyerAce opened 2 months ago

DestroyerAce commented 2 months ago

Describe the bug I am trying to open a PDF but its giving this error. The PDF opens fine without any issue in other apps(Zathura with mupdf, firefox, xreader, etc) and its not password protected. I don't know if I can share the PDF or not since it was shared by college. I know that the PDF is still experimental but I think providing the errors might help.

Error: null is not an object (evaluating 'dest[0]')
@foliate:///foliate-js/pdf.js:601:50
@foliate:///foliate-js/pdf.js:597:36
@foliate:///foliate-js/progress.js:24:51

To Reproduce Steps to reproduce the behavior:

  1. Click on "Open..."
  2. Pick the file.
  3. Error provided above occurs

Expected behavior PDF opens properly.

Version:

herkhinah commented 2 weeks ago

I experience a similar issue with latest head (151adbb75d4c7498e70107dd64ff75391c687e1b):

Error: null is not an object (evaluating 'dest[0]')
@foliate:///foliate-js/pdf.js:607:50
@foliate:///foliate-js/pdf.js:603:36
@foliate:///foliate-js/progress.js:24:51
init@foliate:///foliate-js/progress.js:19:20
@foliate:///foliate-js/view.js:90:41
open@foliate:///foliate-js/view.js:80:20
@foliate:///reader/reader.js:392:29
init@foliate:///reader/reader.js:389:20
@foliate:///reader/reader.js:140:22

In my case it only affects some PDF files, others open without problems.