From 2d81bfa5008dffd7b81de3f134099308a80a5e8d Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Mon, 25 Mar 2024 17:10:03 +0300 Subject: [PATCH] [DE] Fix downloading pdf forms --- apps/documenteditor/main/app/view/FileMenuPanels.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index 2c228a0456..2c9c6731c7 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -110,7 +110,7 @@ define([ render: function() { if (/^pdf$/.test(this.fileType)) { - this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: ''}); // remove pdf + !(this.mode && this.mode.isPDFForm) && this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: ''}); // remove pdf this.formats[1].splice(2, 1); // remove pdfa } else if (/^xps|oxps$/.test(this.fileType)) { this.formats[0].push({name: this.fileType.toUpperCase(), imgCls: this.fileType, type: ''}); // original xps/oxps @@ -235,7 +235,7 @@ define([ render: function() { if (/^pdf$/.test(this.fileType)) { - this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: '', ext: true}); // remove pdf + !(this.mode && this.mode.isPDFForm) && this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: '', ext: true}); // remove pdf this.formats[1].splice(2, 1); // remove pdfa } else if (/^xps|oxps$/.test(this.fileType)) { this.formats[0].push({name: this.fileType.toUpperCase(), imgCls: this.fileType, type: '', ext: true}); // original xps/oxps