forked from nbesli/pdf-merger-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbrowser.d.ts
25 lines (22 loc) · 825 Bytes
/
browser.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Type definitions for pdf-merger-js v4.2.0
// Project: https://github.com/nbesli/pdf-merger-js
// Definitions by: Alexander Wunschik <https://github.com/mojoaxel/>
// Daniel Hammer <https://github.com/danmhammer/>
// Lukas Loeffler <https://github.com/LukasLoeffler>
declare module "pdf-merger-js/browser" {
class PDFMerger {
constructor();
add(inputFile: string | Uint8Array | ArrayBuffer | Blob | File, pages?: string | string[] | undefined | null): Promise<undefined>;
save(fileName: string): Promise<undefined>;
saveAsBuffer(): Promise<Uint8Array>;
saveAsBlob(): Promise<Blob>;
setMetadata(metadata: Metadata): Promise<void>;
}
export = PDFMerger;
}
declare interface Metadata {
producer?: string
author?: string
title?: string
creator?: string
}