• Robert Knight's avatar
    Support PDF.js >= 2.5.207 · f96af43d
    Robert Knight authored
    Since [1] PDF.js does not dispatch events to the DOM any more. Therefore
    the client needs to listen for the `documentloaded` event from
    `PDFApplicationViewer.eventBus`. The `eventBus` property is only
    available once the viewer is initialized, so the client needs to wait
    for `initializedPromise` to resolve before checking it.
    
    [1] https://github.com/mozilla/pdf.js/pull/11655
    f96af43d
pdf-metadata-test.js 7.93 KB