Browse Source

Merge pull request #8184 from Rob--W/rethrow-missing-data-if-needed

Rethrow MissingDataException when needed
Jonas Jenwald 8 years ago committed by GitHub
parent
commit
02370f952a
  1. 3
      src/core/document.js
  2. 3
      src/core/obj.js

3
src/core/document.js

@ -467,6 +467,9 @@ var PDFDocument = (function PDFDocumentClosure() { @@ -467,6 +467,9 @@ var PDFDocument = (function PDFDocumentClosure() {
}
}
} catch (ex) {
if (ex instanceof MissingDataException) {
throw ex;
}
info('Something wrong with AcroForm entry');
this.acroForm = null;
}

3
src/core/obj.js

@ -104,6 +104,9 @@ var Catalog = (function CatalogClosure() { @@ -104,6 +104,9 @@ var Catalog = (function CatalogClosure() {
try {
metadata = stringToUTF8String(bytesToString(stream.getBytes()));
} catch (e) {
if (e instanceof MissingDataException) {
throw e;
}
info('Skipping invalid metadata.');
}
}

Loading…
Cancel
Save