Support for Zathura to open PDF on specified page.
Hi there,
I am trying to get Zotero to use the Zathura PDF Viewer to open PDF links of the form zotero://open-pdf/...?page=X, that means on a specific page. On Linux.
I have set up the default PDF viewer to be Zathura and it works when opening zotero://open-pdf/... links without specified page. When specifying a page, Okular is used instead.
I looked into the source code and opening PDFs on a specified page seems to be implemented only for Okular and Evince (using the -p option in the command). This could easily be extended for Zathura (which uses a capital -P to specify the page).
Is there a way to specify an option for the PDF viewer? It seemed to be possible in ZotFile, where one could specify "pdfExtraction.openPdfLinux", but from what I understood, Zotero now takes care of opening pdf links, not ZotFile anymore?
I did start adding support for Zathura in a PR, before I realized I am supposed to use this forum instead of GitHub issues. So here is the commit anyways, to see what I mean: https://github.com/denisalevi/zotero/commit/70f6ab3dfdf98abc8a9f78f2ee8e3979f9b15147
Not sure if that is all that is needed. Didn't test anything there. Maybe it is not even needed if there is a setting I missed?
Cheers,
Denis
I am trying to get Zotero to use the Zathura PDF Viewer to open PDF links of the form zotero://open-pdf/...?page=X, that means on a specific page. On Linux.
I have set up the default PDF viewer to be Zathura and it works when opening zotero://open-pdf/... links without specified page. When specifying a page, Okular is used instead.
I looked into the source code and opening PDFs on a specified page seems to be implemented only for Okular and Evince (using the -p option in the command). This could easily be extended for Zathura (which uses a capital -P to specify the page).
Is there a way to specify an option for the PDF viewer? It seemed to be possible in ZotFile, where one could specify "pdfExtraction.openPdfLinux", but from what I understood, Zotero now takes care of opening pdf links, not ZotFile anymore?
I did start adding support for Zathura in a PR, before I realized I am supposed to use this forum instead of GitHub issues. So here is the commit anyways, to see what I mean: https://github.com/denisalevi/zotero/commit/70f6ab3dfdf98abc8a9f78f2ee8e3979f9b15147
Not sure if that is all that is needed. Didn't test anything there. Maybe it is not even needed if there is a setting I missed?
Cheers,
Denis
-
dstillmanIf you actually have a working PR you can just submit that. It's just that feature requests and bug reports need to go here. Technical questions should go to zotero-dev.