1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

[api-minor] Implement API to get MarkInfo from the catalog.

This commit is contained in:
Brendan Dahl 2020-10-23 16:30:36 -07:00
parent 8cf27494b3
commit f5c821e9c3
4 changed files with 84 additions and 0 deletions

View file

@ -499,6 +499,10 @@ class WorkerMessageHandler {
]);
});
handler.on("GetMarkInfo", function wphSetupGetMarkInfo(data) {
return pdfManager.ensureCatalog("markInfo");
});
handler.on("GetData", function wphSetupGetData(data) {
pdfManager.requestLoadedStream();
return pdfManager.onLoadedStream().then(function (stream) {