Merge pull request #2955 from vyv03354/warn_unsupported

Add a console warning when JavaScript/AcroForm/XFA was found
This commit is contained in:
Yury Delendik 2013-03-19 06:25:51 -07:00
commit b7878c150b
2 changed files with 7 additions and 2 deletions

View file

@ -1316,6 +1316,7 @@ var PDFView = {
if (PDFView.supportsPrinting) {
pdfDocument.getJavaScript().then(function(javaScript) {
if (javaScript.length) {
console.warn('Warning: JavaScript is not supported');
PDFView.fallback();
}
// Hack to support auto printing.
@ -1389,7 +1390,7 @@ var PDFView = {
self.setTitle(pdfTitle + ' - ' + document.title);
if (info.IsAcroFormPresent) {
// AcroForm/XFA was found
console.warn('Warning: AcroForm/XFA is not supported');
PDFView.fallback();
}
});