obsidian-annotator icon indicating copy to clipboard operation
obsidian-annotator copied to clipboard

Error- loading PDF.

Open yingker opened this issue 2 years ago • 5 comments

PDF.js v2.11.249 (build: 95435ed66) information:Cannot read properties of null (reading 'getReader')

yingker avatar Jun 15 '22 09:06 yingker

After figuring out how to set the path correctly annotation-target: file:////path/to/pdf/file.pdf I am also getting this issue PDF.js v2.11.249 (build: 95435ed66) Message: Cannot read properties of null (reading 'getReader') I am locating a pdf, but decided to check if there was a "Reader" plugin missing. But none are for pdf's

olividir avatar Jan 14 '23 07:01 olividir

Here are few more info. The path is correct, I copy/paste it from terminal, and then I copy/paste the name of the pdf and I still get this error:

---
annotation-target: file:///Skjöl/Háskóli/Meistaranám/Lokaverkefni/Heimildir/TÖPUÐ_TÆKIFÆRI_VEGNA_TAKMARKANA_Í_FLUTNINGSKERFINU.pdf
---

And here is a screenshot of the error: mynd

I am running Endeavour OS.

olividir avatar Jan 24 '23 18:01 olividir

Looks like I had one too few slashes / or the new update fixed what ever was bugging me

annotation-target: file:////home/olividir/Skjöl/Háskóli/Meistaranám/Lokaverkefni/Heimildir/101715-SKY-001-V01 Þjóðhagslegur kostnaður vegna takmarkana í flutningskerfi raforku.pdf

Works fine for me now.

olividir avatar Feb 23 '23 15:02 olividir

In case this happen to someone else. In my case all PDFs are in a Google Drive folder and for some reason GDrive app stopped working. I restarted the app and it worked all fine.

iuryt avatar Jul 24 '23 13:07 iuryt

Having this issue on Windows as well - Obsidian properties pane shows a file URL and clicking on it opens the file, so the URL is correct.

pjeby avatar Jan 09 '24 05:01 pjeby