1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-22 16:18:08 +02:00

Merge pull request #12997 from Snuffleupagus/metadata-worker

Move the Metadata parsing to the worker-thread
This commit is contained in:
Tim van der Meij 2021-02-17 20:57:46 +01:00 committed by GitHub
commit 4619b1b568
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 258 additions and 209 deletions

View file

@ -1755,11 +1755,8 @@ const PDFViewerApplication = {
`${this.pdfViewer.enableWebGL ? " [WebGL]" : ""})`
);
let pdfTitle;
const infoTitle = info?.Title;
if (infoTitle) {
pdfTitle = infoTitle;
}
let pdfTitle = info?.Title;
const metadataTitle = metadata?.get("dc:title");
if (metadataTitle) {
// Ghostscript can produce invalid 'dc:title' Metadata entries: