Skip to content
HomePagesHomePages template kit

DocumentFormat

A document format is either a pixel sheet (decks) or a physical print size with a capture `dpi` and optional `bleed`.

A document format is either a pixel sheet (decks) or a physical print size with a capture dpi and optional bleed. The union keeps a physical width from ever pairing with a pixel height.

Import from @homepages/template-kit.

export type DocumentFormat = FormatIdentity & ({
readonly width: number;
readonly height: number;
} | {
readonly width: PhysicalLength;
readonly height: PhysicalLength;
readonly dpi: number;
readonly bleed?: PhysicalLength;
});