Calling pdf.js functions from a plugin?

83 views
Skip to first unread message

Alain Borel

unread,
Sep 29, 2024, 2:53:36 AM9/29/24
to zotero-dev
Hello,
we're looking into replacing the dependencies of the Zotero-OCR plugin on external programs with pure Javascript. It seems that calling pdf.js functions would be a nice first step, but I don't know how to actually import the module in the plugin code. I see  a resource/reader/pdf/build/pdf.mjs module included in an omni.ja file of the Zotero application , but I don't understand how to translate this information into a working Components.utils.import() parameter (assuming this is the way to go, of course).
Any advice will be appreciated :-)

Best regards,
Alain Borel
Message has been deleted

volatile static

unread,
Oct 5, 2024, 5:39:09 AM10/5/24
to zotero-dev

Alain Borel

unread,
Oct 7, 2024, 12:40:50 AM10/7/24
to zotero-dev
Thank you, I'm not sure I understand the code, but I will definitely take a look.
Still interested in simple examples if anybody can point them to me :-)

Best regards,
Alain Borel
Reply all
Reply to author
Forward
0 new messages