Interface ReportExportConfiguration

interface ReportExportConfiguration {
    autoScale?: boolean;
    beforeExport?: ((exportElement, reportExportConfig) => HTMLElement | Promise<HTMLElement>);
    disabled?: boolean;
    exportElementSelector?: string;
    fitHorizontally?: boolean;
    fitVertically?: boolean;
    format?: "a0" | "a1" | "a2" | "a3" | "a4" | "letter" | "autofit";
    inputType?: "SVG" | "HTML";
    orientation?: "portrait" | "landscape";
    usage?: "thumbnail" | "export";
}

Properties

autoScale?: boolean

autoScale has been renamed to fitHorizontally and will be removed in the near future.

Default

false

Deprecated

beforeExport?: ((exportElement, reportExportConfig) => HTMLElement | Promise<HTMLElement>)

Type declaration

    • (exportElement, reportExportConfig): HTMLElement | Promise<HTMLElement>
    • This callback is invoked just before the report framework extracts the HTML from the report to export it as PDF or image. It allows to make adjustments to the HTML for exporting.

      Parameters

      Returns HTMLElement | Promise<HTMLElement>

disabled?: boolean

Flag to disable export for the given report. This option hides the export capabilities within the report container.

Default

false
exportElementSelector?: string

CSS selector which specifies the DOM element whose contents should be extracted for export to PDF or image.

fitHorizontally?: boolean

fitHorizontally scales the content for PDF exports to fit it to the page width so that no content is cut off. It should not be enabled if the content is already responsive HTML.

Default

true
fitVertically?: boolean

fitVertically scales the content for PDF exports to fit it to the page height so that the content fits on a single page.

Default

true
format?: "a0" | "a1" | "a2" | "a3" | "a4" | "letter" | "autofit"

Paper format for PDF exports.

Default

'a4'
inputType?: "SVG" | "HTML"

The type of content that is extracted from the DOM to be exported. Default is HTML.

Specify SVG if your report uses SVG elements for visualization.

orientation?: "portrait" | "landscape"

Paper orientation for PDF exports.

Default

'portrait'
usage?: "thumbnail" | "export"

Usage of the export. Determines if the export is triggered for thumbnail creation or from the user.

Default

thumbnail

Generated using TypeDoc