Browse Source

Merge pull request #8183 from Snuffleupagus/documentInfo-MissingDataException

Ensure that `PDFDocument.documentInfo` doesn't fail during document load, when the entire XRef table hasn't been fetched yet (issue 8180)
Rob Wu 8 years ago committed by GitHub
parent
commit
086021b21e
  1. 3
      src/core/document.js

3
src/core/document.js

@ -595,6 +595,9 @@ var PDFDocument = (function PDFDocumentClosure() { @@ -595,6 +595,9 @@ var PDFDocument = (function PDFDocumentClosure() {
try {
infoDict = this.xref.trailer.get('Info');
} catch (err) {
if (err instanceof MissingDataException) {
throw err;
}
info('The document information dictionary is invalid.');
}
if (infoDict) {

Loading…
Cancel
Save