Spaces:
Sleeping
Sleeping
File size: 757 Bytes
391a73c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | /// <reference types="node" />
import { SafeDocumentNode } from '@react-pdf/layout';
import { Font } from '@react-pdf/textkit';
import PDFKitDocument from 'pdfkit';
type PDFFontSource = string | Buffer | Uint8Array | ArrayBuffer | Font;
type Context = typeof PDFKitDocument & {
_root: any;
_font: any;
_imageRegistry: any;
_acroform: any;
_fontSize: number;
openImage: any;
addNamedDestination: any;
addPage(options?: any): Context;
translate(x: number, y: number, options: any): Context;
font(src: PDFFontSource, size?: number): Context;
font(src: PDFFontSource, family: string, size?: number): Context;
};
declare const render: (ctx: Context, doc: SafeDocumentNode) => Context;
export { render as default };
|