AsposeSaveImageAsEps

AsposeSaveImageAsEps function

Resizes EPS file. It saves initial EPS file with updated existing %%BoundingBox or new one will be created.

function AsposeSaveImageAsEps(
    fileBlob,
    fileName, 
    fileNameResult
)
ParameterTypeDescription
fileBlobBlob objectContent of source file.
fileNamestringSource file name.
fileNameResultstringResult file name.

Return Value

JSON object

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

Examples

const AsposePage = require('asposepagenodejs');

const img_file = "./data/PAGENET-361-10.bmp";

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

AsposePage().then(AsposePageModule => {

    //SaveImageAsEps - convert image to EPS
    const json = AsposePageModule.AsposeSaveImageAsEps(img_file, img_file + ".eps");
    console.log("SaveImageAsEps => %O",  json.errorCode == 0 ? "Files(pages) count: " + json.filesCount.toString() + json.filesNameResult.toString() : json.errorText);
},
    reason => {console.log(`The unknown error has occurred: ${reason}`);}
);

See Also