AsposeXPSMergeToXps

AsposeXPSMergeToXps function

Merge the several XPS files to one XPS file.

function AsposeXPSMergeXps(
    fileNames, 
    fileNameResult, 
    supressErrors
)
ParameterTypeDescription
fileNamesstringThe names of files for merge.
fileNameResultstringThe name of result xps file.
supressErrorsboolSpecifies whether errors must be suppressed or not.

Return Value

JSON object

FieldDescription
errorCodecode error (0 no error)
errorTexttext error ("" no error)
fileNameResultresult file name

Examples

const AsposePage = require('asposepagenodejs');

const xps_files = "./data/example.xps,./data/transforms.xps";

console.log("Aspose.Page for Node.js via C++ examples.");

AsposePage().then(AsposePageModule => {

    const json = AsposePageModule.AsposeXPSMergeToXps(xps_files,"XpsMergedToXpsResult.xps");
    console.log("XPSMergeToXps => %O",  json.errorCode == 0 ? json.fileNameResult : json.errorText);

},
    reason => {console.log(`The unknown error has occurred: ${reason}`);}
);

See Also