Browse our Products
Aspose.Page for Node.js via C++ Release Notes
Major Features
Added a function AsposePSGetPageCount , and AsposeXPSGetPageCount that get pages count of PS and XPS document.
Public API and Backwards Incompatible Changes
Added APIs
- AsposePSGetPageCount - Get pages count of PS file.
- AsposeXPSGetPageCount - Get pages count of XPS file.
const AsposePage = require('asposepagenodejs');
const xps_file = "./data/example.xps";
const ps_file = "./data/program_20.ps";
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);
json = AsposePageModule.AsposePSGetPageCount(ps_file);
console.log("PSGetPageCount => %O", json.errorCode == 0 ? JSON.parse(JSON.stringify(json).replace('"errorCode":0,"errorText":"",','')) : json.errorText);
json = AsposePageModule.AsposeXPSGetPageCount(xps_file);
console.log("XPSGetPageCount => %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.