1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +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

@ -130,9 +130,7 @@ function updateXFA(datasetsRef, newRefs, xref) {
}
const datasets = xref.fetchIfRef(datasetsRef);
const str = bytesToString(datasets.getBytes());
const xml = new SimpleXMLParser(/* hasAttributes */ true).parseFromString(
str
);
const xml = new SimpleXMLParser({ hasAttributes: true }).parseFromString(str);
for (const { xfa } of newRefs) {
if (!xfa) {