1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-26 01:58:06 +02:00

Merge pull request #12838 from calixteman/authors

[api-minor] Change the "dc:creator" Metadata field to an Array
This commit is contained in:
calixteman 2021-01-12 02:44:58 -08:00 committed by GitHub
commit 1de1ae0be6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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) {