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:
parent
8cf27494b3
commit
f5c821e9c3
4 changed files with 84 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue