Fallback when AcroForm is present

This commit is contained in:
Yury Delendik 2013-01-31 16:46:44 -05:00
parent 1a78fa1b61
commit 9c044e2c31
2 changed files with 7 additions and 5 deletions

View file

@ -535,7 +535,8 @@ var PDFDocument = (function PDFDocumentClosure() {
},
getDocumentInfo: function PDFDocument_getDocumentInfo() {
var docInfo = {
PDFFormatVersion: this.pdfFormatVersion
PDFFormatVersion: this.pdfFormatVersion,
IsAcroFormPresent: !!this.acroForm
};
if (this.xref.trailer.has('Info')) {
var infoDict = this.xref.trailer.get('Info');