Browse our Products
Aspose.Page for Node.js via C++ Release Notes
This page contains release notes information for Aspose.Page for Node.js via C++ 26.2.
Major Features
Added a function AsposeGetXpsPageCount() that returns the total number of pages in a XPS-document.
const AsposePage = require('asposepagenodejs');
const xps_file = "./data/example.xps";
console.log("Aspose.Page for Node.js via C++ examples.");
AsposePage().then(AsposePageModule => {
let json = AsposePageModule.AsposePageAbout();
console.log("AsposePageAbout => %O", json.errorCode == 0 ? JSON.parse(JSON.stringify(json).replace('"errorCode":0,"errorText":"",','')) : "error:" + json.errorText);
//AsposeGetXpsPageCount
json = AsposePageModule.AsposeGetXpsPageCount(xps_file);
console.log("AsposeGetXpsPageCount => %O", json.errorCode == 0 ? JSON.parse(JSON.stringify(json).replace('"errorCode":0,"errorText":"",','')) : json.errorText);
},
reason => {console.log(`The unknown error has occurred: ${reason}`);}
);
For more details see Aspose.Page for Node.js Documentation.