obsidian-annotator
obsidian-annotator copied to clipboard
Error- loading PDF.
PDF.js v2.11.249 (build: 95435ed66) information:Cannot read properties of null (reading 'getReader')
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
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:
I am running Endeavour OS.
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.
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.
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.