This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
var EcmMultiPdf_create = function(documents, outputName) {
// fill params
var params = new Array();
params[0] = documents;
if (!(typeof outputName === 'undefined')) {
if ((outputName.toUpperCase().substring((outputName.length) - 4,
outputName.length)) != '.PDF')
outputName += '.pdf';
params[2] = outputName;
}
// AJAX call
jQuery.ajax({
type : 'POST',
url : 'index.php?entryPoint=HandleEcmAjax',
data : {
ecmclass : 'EcmMultiPdf',
job : 'create',
params : btoa(JSON.stringifyNoSecurity(params)),
},
dataType : 'json',
success : function(response) {
$.unblockUI();
if (Number.isInteger(response[0]))
alert('ERROR '+response[0]);
else
window.open(response[0]);
},
});
}