/**----------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the project root for more information *-------------------------------------------------------------------------------------------*/ import { pdf } from '@progress/kendo-drawing'; /** * Configures the PDF export settings of the Spreadsheet. */ export interface PDFExportSettings { /** * Sets the paper size for the PDF document. * The value can be a `SpreadsheetPaperSize` or an array of two numbers (width and height in points). * * @default 'A4' */ paperSize?: SpreadsheetPaperSize | [number, number]; /** * If `false`, sets the page orientation to `portrait`. The default page orientation is `landscape`. * * @default true */ landscape?: boolean; /** * Specifies the margins of the page. The supported units are `"mm"`, `"cm"`,`"in"`, and `"pt"`. * Numbers are treated as points (`"pt"`). * * @default '1cm' */ margin?: string | number | PDFMargin; /** * Scales the content to fit page width. * * @default false */ fitWidth?: boolean; /** * Sets a scale factor for the PDF output. Use this to make the PDF content smaller or larger. * * @default 1 */ scale?: number; /** * Sets the title metadata for the PDF document. If not set, the title is the same as the file name. */ title?: string; /** * Sets the name of the exported PDF file. * * @default 'Workbook.pdf' */ fileName?: string; } /** * The paper size. */ export type SpreadsheetPaperSize = 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | 'A7' | 'A8' | 'A9' | 'A10' | 'B0' | 'B1' | 'B2' | 'B3' | 'B4' | 'B5' | 'B6' | 'B7' | 'B8' | 'B9' | 'B10' | 'C0' | 'C1' | 'C2' | 'C3' | 'C4' | 'C5' | 'C6' | 'C7' | 'C8' | 'C9' | 'C10' | 'Executive' | 'Folio' | 'Legal' | 'Letter' | 'Tabloid'; /** * Defines the page margins for the PDF export. * Accepts numbers or strings with units. */ export interface PDFMargin extends pdf.PageMargin { }