Reader - navigate to PDF page, not document page

14 views
Skip to first unread message

Christian Boulanger

unread,
Nov 18, 2025, 2:57:03 AM (4 days ago) Nov 18
to zotero-dev
The smart PDF page parsing in the Reader is fantastic, but I have a use case where I need to navigate to the page in the PDF document rather than the page in the document in the PDF. 

I have looked into https://github.com/zotero/reader/blob/master/src/common/view.js and see that the `navigate()` method takes `{pageNumer}` as parameter, which refers to the parsed document page, I suppose. 

Any ideas how I could achieve what I want - or is there an offset value that I could query from which I can calculate the "real" page? 

Martynas Bagdonas

unread,
Nov 18, 2025, 3:56:27 AM (4 days ago) Nov 18
to zotero-dev
You can try `navigate({pageIndex: 10})`;

Christian Boulanger

unread,
Nov 18, 2025, 4:52:20 AM (4 days ago) Nov 18
to zotero-dev
Thank you very much! Now I am trying to figure out how, if I have a PDF item with a given ID, get the View that displays this PDF - would you know how that works? 

Christian Boulanger

unread,
Nov 18, 2025, 5:00:23 AM (4 days ago) Nov 18
to zotero-dev
Reply all
Reply to author
Forward
0 new messages