How to pass CLI argument to zotero://open-pdf URI ?
Hello,
I have a PDF reader that takes "--page i" argument in command line (where "i" is opening page number).
Is there any way to pass that argument to a zotero://open-link URI ?
Thanks !
I have a PDF reader that takes "--page i" argument in command line (where "i" is opening page number).
Is there any way to pass that argument to a zotero://open-link URI ?
Thanks !
What's the PDF reader?
This is controlled by https://github.com/zotero/zotero/blob/master/chrome/content/zotero/xpcom/openPDF.js
So apparently Zotero sends the command in the following format, on Windows :
/A page=i
-page i
and--page i
as well, but we'd have to confirm that extra arguments didn't break any readers.The alternative would be looking for specific program names in the handler path and sending specific known arguments.
-page <pageNo>
as an argument.