UNPKG

@konsys.co/print

Version:

Template to generate printable preview page html in variety size

28 lines (26 loc) 630 B
type PageSize = 'A4' | 'A4LSC' | 'A5' | 'A5LSC' | 'CUSTOM'; type PageConfig = { pageSize: PageSize | string; width?: number; height?: number; }; declare class PageTemplate { pages: { content: string; customWidth?: number; customHeight?: number; }[]; title: string; heads: string; styles: string; constructor(pages: { content: string; customConfig?: PageConfig; }[], options?: { title?: string; heads?: string; styles?: string; }); generatePrintablePage(defaultConfig?: PageConfig): string; } export { PageTemplate };