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:
parent
35845d1bbb
commit
43d5512f5c
10 changed files with 97 additions and 33 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue