ZotFile link not opening PDF on Windows
This discussion was created from comments split from: extracting annotations w/zotfile works BUT the link does not connect me to the location on pdf.
This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.
Upgrade Storage
The link in the extracted annotations will not open the location or the pdf at all for that matter.
Any recommendations? Thank you
What do you have set for a PDF reader in the General pane of the preferences?
I'm using a brand new Windows 10 installation;
I'm suspecting this has something to do with execute rights on Windows. But I'm not so familiar with the way Windows starts exe's from other programs (Zotero)
1. doubleclicking on a pdf from within Zotero correctly starts Xodo and opens the document
2. looking into taskmanager reveals that Xodo is running as:
C:\Program Files\WindowsApps\5E8FC25E.XODODOCS_4.2.6.0_x64__3v3sf0k6w2rec\Xodo_Windows10.exe
3. Trying to start Xodo from the commandline with this command gives me "access denied"
I don't know if this is of any help for you?
Thank you for clarifying.
But the fact that you can't launch the .exe manually at all certainly would prevent the zotero://open-pdf functionality from working, since that relies on program-specific command-line flags (currently Acrobat and PDF-XChange on Windows) to select a specific page.
I can't open links such as zotero://open-pdf/library/items/2BGVB6ID?page=1
I use acrobat reader and I can easily run acrobat from terminal. no problem there.
I'll try to provide a debug id asap. I have to check how to do it. thanks!
That shouldn't make a difference — as far as I know, ZotFile removed its own open-pdf functionality when we integrated it into Zotero — but you're not receiving the normal "ZoteroLinkClick" line in the debug output when you click on a note, which suggests something is off here. (You should be able to see that line yourself if you View Output in the Debug Output Logging menu, when you click a zotero:// link or any other link in a note.)
https://github.com/jlegewie/zotfile/issues/432
Edge isn't a supported viewer for opening to a specific PDF page, so the correct behavior here for zotero://open-pdf links is to simply open the PDF, as happens when you double-click on one in the items list. In the latest Zotero beta, I've fixed it to do that, and the fix will be included in Zotero 5.0.83. You can also avoid this bug by setting a custom PDF reader from the General pane of the preferences.
If you want to take advantage of the page links, you'll need to use either Acrobat or PDF-XChange (or another program that uses one of the same command-line flags to specific a page number).
https://www.addictivetips.com/windows-tips/open-uwp-apps-from-command-line-windows-10/
Maybe this can help to implement a way to open the pdf via Zotero.