1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 17:48:07 +02:00

Merge pull request #8673 from Snuffleupagus/api-pageMode

[api-minor] Add support for PageMode in the API and viewer (issue 8657)
This commit is contained in:
Tim van der Meij 2017-07-23 13:17:07 +02:00 committed by GitHub
commit af71ea7a7d
7 changed files with 123 additions and 28 deletions

View file

@ -772,6 +772,10 @@ var WorkerMessageHandler = {
}
);
handler.on('GetPageMode', function wphSetupGetPageMode(data) {
return pdfManager.ensureCatalog('pageMode');
});
handler.on('GetAttachments',
function wphSetupGetAttachments(data) {
return pdfManager.ensureCatalog('attachments');