Save Spreadsheet As With Scaling Mode
save_spreadsheet_as_with_scaling_modeConvert a stored spreadsheet to another format with print scaling: fit all data on one page or fit columns to page width, preventing truncated page layout in large reports.
Instructions
Save a spreadsheet in cloud storage to another format while enforcing a print-scaling strategy for large reports (e.g. compress all data onto one page, or fit columns to page width) so the output matches the intended page layout instead of truncating content. Scaling only applies when the target format's save options support it; otherwise the call fails with a clear error rather than silently ignoring the mode.
Parameters:
file_uuid: The unique identifier of the stored workbook.
target_format: The desired output format (e.g. 'PDF', 'CSV', 'XLSX').
scaling_mode: one of NoScaling, FitSheetOnOnePage, FitAllColumnsOnOnePage.
NoScaling: no automatic scaling; honors the worksheet's own page setup.
FitSheetOnOnePage: scale all rows and columns onto a single page (supported for PDF, XPS, DOCX, PPTX and image output).
FitAllColumnsOnOnePage: scale all columns to one page width; rows may extend over multiple pages (supported for DOCX, PPTX and XPS output). FitAllRowsOnOnePage is NOT supported by Aspose.Cells Cloud save options and requesting it returns an error. Returns:
The file_uuid of the saved file.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_uuid | Yes | ||
| scaling_mode | Yes | ||
| target_format | Yes |