|
|
@ -457,9 +457,13 @@ var PDFDocument = (function PDFDocumentClosure() { |
|
|
|
PDFFormatVersion: this.pdfFormatVersion, |
|
|
|
PDFFormatVersion: this.pdfFormatVersion, |
|
|
|
IsAcroFormPresent: !!this.acroForm |
|
|
|
IsAcroFormPresent: !!this.acroForm |
|
|
|
}; |
|
|
|
}; |
|
|
|
if (this.xref.trailer.has('Info')) { |
|
|
|
var infoDict; |
|
|
|
var infoDict = this.xref.trailer.get('Info'); |
|
|
|
try { |
|
|
|
|
|
|
|
infoDict = this.xref.trailer.get('Info'); |
|
|
|
|
|
|
|
} catch (err) { |
|
|
|
|
|
|
|
info('The document information dictionary is invalid.'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (infoDict) { |
|
|
|
var validEntries = DocumentInfoValidators.entries; |
|
|
|
var validEntries = DocumentInfoValidators.entries; |
|
|
|
// Only fill the document info with valid entries from the spec.
|
|
|
|
// Only fill the document info with valid entries from the spec.
|
|
|
|
for (var key in validEntries) { |
|
|
|
for (var key in validEntries) { |
|
|
|