printmaker
Version:
Generate PDF documents and from JavaScript objects
23 lines (22 loc) • 611 B
TypeScript
import { PDFDocument } from 'pdf-lib';
import { Font } from './fonts.js';
import { Image } from './images.js';
import { Obj } from './types.js';
export declare type Document = {
fonts: Font[];
images: Image[];
pdfDoc: PDFDocument;
};
export declare function createDocument(def: Obj): Promise<Document>;
declare type Metadata = {
title?: string;
subject?: string;
keywords?: string[];
author?: string;
creationDate?: Date;
creator?: string;
producer?: string;
custom?: Record<string, string>;
};
export declare function parseInfo(input: unknown): Metadata;
export {};