This article provides sample code explaining how to use the JavaScript API via C++ to calculate Page Setup scaling factor using the Fit to n page(s) wide by m tall option of an Excel worksheet programmatically....stream const workbook = new Workbook ( new Uint8Array ( arrayBuffer...render const sr = new SheetRender ( worksheet , new ImageOrPrintOptions...