UNPKG

printmaker

Version:

Generate PDF documents and from JavaScript objects

15 lines (14 loc) 455 B
import { PDFPage } from 'pdf-lib'; import { Pos, Size } from './box.js'; import { Document } from './document.js'; import { Frame } from './layout.js'; export declare type Page = { size: Size; content: Frame; header?: Frame; footer?: Frame; guides?: boolean; pdfPage?: PDFPage; }; export declare function renderPage(page: Page, doc: Document): void; export declare function renderFrame(frame: Frame, page: Page, base?: Pos): void;