Interface Export

Represents export settings in Penpot. This interface includes properties for defining export configurations.

interface Export {
    type:
        | "svg"
        | "png"
        | "jpeg"
        | "pdf";
    scale?: number;
    suffix?: string;
}

Properties

Properties

type:
    | "svg"
    | "png"
    | "jpeg"
    | "pdf"

Type of the file to export. Can be one of the following values: png, jpeg, svg, pdf

scale?: number

For bitmap formats represent the scale of the original size to resize the export

suffix?: string

Suffix that will be appended to the resulting exported file