the command for pdf content search

14 views
Skip to first unread message

青柠学术

unread,
Aug 9, 2022, 2:41:49 AMAug 9
to zotero-dev
Hi, what is the command for pdf content search in the built-in pdf reader? I mean the command that corresponds to the Search Button in the pdf reader toolbar.

Martynas Bagdonas

unread,
Aug 9, 2022, 5:03:42 AMAug 9
to zotero-dev
Inside pdf-reader iframe there is window.PDFViewerApplication.findController. And the search can be initiated with window.PDFViewerApplication.findController.executeCommand("find", { query: 'test' });.
Reply all
Reply to author
Forward
0 new messages