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

[api-minor] Change the "dc:creator" Metadata field to an Array

- add scripting support for doc.info.authors
 - doc.info.metadata is the raw string with xml code
This commit is contained in:
Calixte Denizet 2021-01-08 18:40:09 +01:00
parent 35845d1bbb
commit 43d5512f5c
10 changed files with 97 additions and 33 deletions

View file

@ -1655,7 +1655,8 @@ const PDFViewerApplication = {
baseURL: this.baseUrl,
filesize: this._contentLength,
filename: this._docFilename,
metadata: this.metadata,
metadata: this.metadata?.getRaw(),
authors: this.metadata?.get("dc:creator"),
numPages: pdfDocument.numPages,
URL: this.url,
actions: docActions,