Browse our Products

Aspose.Page for Node.js via C++ Release Notes

Major Features

Added a function AsposePSGetBoundingBox tat extract bounding box of eps image, and AsposePSExtractText that extract text from PS-document.

Public API and Backwards Incompatible Changes

Added APIs

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.AsposePSGetBoundingBox(ps_file);
    console.log("PSGetBoundingBox => %O",  json.errorCode == 0 ? JSON.parse(JSON.stringify(json).replace('"errorCode":0,"errorText":"",','')) : json.errorText);

    json = AsposePageModule.AsposePSExtractText(ps_file);
    console.log("PSExtractText => %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.