|
1 | | -/// <reference lib="dom" /> |
2 | | -import { BufferOptions, CustomTableLayout, TDocumentDefinitions, TFontDictionary } from "../interfaces"; |
3 | | - |
4 | | -export let vfs: { [file: string]: string }; |
5 | | -export let fonts: TFontDictionary; |
6 | | -export let tableLayouts: { [name: string]: CustomTableLayout }; |
7 | | - |
8 | | -export function createPdf( |
9 | | - documentDefinitions: TDocumentDefinitions, |
10 | | - tableLayouts?: { [name: string]: CustomTableLayout }, |
11 | | - fonts?: TFontDictionary, |
12 | | - vfs?: { [file: string]: string }, |
13 | | -): TCreatedPdf; |
14 | | - |
15 | | -export interface TCreatedPdf { |
16 | | - download(cb?: () => void, options?: BufferOptions): void; |
17 | | - download(defaultFileName: string, cb?: () => void, options?: BufferOptions): void; |
18 | | - |
19 | | - getBlob(cb: (result: Blob) => void, options?: BufferOptions): void; |
20 | | - getBase64(cb: (result: string) => void, options?: BufferOptions): void; |
21 | | - getBuffer(cb: (result: Buffer) => void, options?: BufferOptions): void; |
22 | | - getDataUrl(cb: (result: string) => void, options?: BufferOptions): void; |
23 | | - getStream(options?: BufferOptions): PDFKit.PDFDocument; // minimal version 0.1.41 |
24 | | - open(options?: BufferOptions, win?: Window | null): void; |
25 | | - print(options?: BufferOptions, win?: Window | null): void; |
26 | | -} |
27 | | - |
28 | | -export as namespace pdfMake; |
| 1 | +export * from "../index"; |
0 commit comments