mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-25 17:48:07 +02:00
Implement a permissions API
This commit is contained in:
parent
4874e9ace0
commit
959ed3705b
9 changed files with 137 additions and 4 deletions
|
@ -703,6 +703,10 @@ var WorkerMessageHandler = {
|
|||
}
|
||||
);
|
||||
|
||||
handler.on('GetPermissions', function(data) {
|
||||
return pdfManager.ensureCatalog('permissions');
|
||||
});
|
||||
|
||||
handler.on('GetMetadata',
|
||||
function wphSetupGetMetadata(data) {
|
||||
return Promise.all([pdfManager.ensureDoc('documentInfo'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue