edit-pdf 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +17 -3
- package/dist/pdf-editor.js +7030 -6746
- package/dist/pdf-editor.umd.cjs +25 -25
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare interface Annotation {
|
|
|
21
21
|
imageData?: Uint8Array;
|
|
22
22
|
imageMimeType?: string;
|
|
23
23
|
signatureData?: string;
|
|
24
|
+
digitalSignature?: DigitalSignatureMeta;
|
|
24
25
|
shapeType?: ShapeType;
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -31,9 +32,16 @@ export declare interface AnnotationPoint {
|
|
|
31
32
|
|
|
32
33
|
export declare type AnnotationType = "highlight" | "text" | "pen" | "image" | "signature" | "shape";
|
|
33
34
|
|
|
35
|
+
export declare interface DigitalSignatureMeta {
|
|
36
|
+
signerName: string;
|
|
37
|
+
signerTitle?: string;
|
|
38
|
+
signerDepartment?: string;
|
|
39
|
+
signedAt: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
34
42
|
export declare const PdfEditor: default_2.FC<PdfEditorProps>;
|
|
35
43
|
|
|
36
|
-
declare interface PdfEditorProps {
|
|
44
|
+
export declare interface PdfEditorProps {
|
|
37
45
|
fileUrl: string;
|
|
38
46
|
onSave?: (file: File) => void;
|
|
39
47
|
shouldExport?: boolean;
|
|
@@ -42,8 +50,14 @@ declare interface PdfEditorProps {
|
|
|
42
50
|
signatureUrl?: string | null;
|
|
43
51
|
/** Called when the user saves a newly drawn signature as PNG */
|
|
44
52
|
onSaveSignature?: (png: Blob) => void;
|
|
45
|
-
/** Called when the user
|
|
46
|
-
|
|
53
|
+
/** Called when the user clicks Delete in the signature options modal */
|
|
54
|
+
onDeleteSignature?: () => void;
|
|
55
|
+
/** Display name in the digital signature block below placed signatures */
|
|
56
|
+
signerName?: string;
|
|
57
|
+
/** Job title shown in the digital signature block */
|
|
58
|
+
signerTitle?: string;
|
|
59
|
+
/** Department shown in the digital signature block */
|
|
60
|
+
signerDepartment?: string;
|
|
47
61
|
}
|
|
48
62
|
|
|
49
63
|
export declare type ShapeType = "rectangle" | "ellipse" | "circle" | "line" | "arrow";
|