[PDF] Fix saving pdf-form

This commit is contained in:
Julia Radzhabova
2023-12-18 23:13:53 +03:00
parent 6e7d311ab1
commit 06cfca9d2a

View File

@ -105,7 +105,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.isForm) && this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: ''}); // remove pdf
this.formats[1].splice(1, 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
@ -223,7 +223,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.isForm) && this.formats[0].splice(1, 1, {name: 'PDF', imgCls: 'pdf', type: '', ext: true}); // remove pdf
this.formats[1].splice(1, 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