react-pdf-printer
Version:
Create pdf document using React
17 lines (16 loc) • 637 B
TypeScript
export declare type Orientation = 'landscape' | 'portrait';
export declare type Size = number | [number, number] | PageSize;
export declare type PageSize = 'a3' | 'a4' | 'a5' | 'b4' | 'b5' | 'jis-b4' | 'jis-b5' | 'letter' | 'legal' | 'ledger';
export declare type PaginationConfiguration = {
format: string;
formatPage: string;
formatTotal: string;
style: string;
};
export declare type PrinterConfiguration = {
orientation: Orientation;
size: Size;
pagination: PaginationConfiguration;
useAsync: boolean;
};
export declare type DocumentConfiguration = Omit<PrinterConfiguration, 'orientation' | 'size'>;