edit-pdf 0.0.14 → 0.0.15

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 CHANGED
@@ -32,11 +32,15 @@ export declare interface AnnotationPoint {
32
32
 
33
33
  export declare type AnnotationType = "highlight" | "text" | "pen" | "image" | "signature" | "shape";
34
34
 
35
+ export declare const DEFAULT_SIGNATURE_ICON_SVG = "<svg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12 1L3 5V11C3 16.55 6.84 21.74 12 23C17.16 21.74 21 16.55 21 11V5L12 1ZM10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z\" fill=\"#4CAF50\"/></svg>";
36
+
35
37
  export declare interface DigitalSignatureMeta {
36
38
  signerName: string;
37
39
  signerTitle?: string;
38
40
  signerDepartment?: string;
39
41
  signedAt: string;
42
+ /** Resolved icon source (SVG markup, data URL, or image URL) */
43
+ iconSvg?: string;
40
44
  }
41
45
 
42
46
  export declare const PdfEditor: default_2.FC<PdfEditorProps>;
@@ -58,8 +62,31 @@ export declare interface PdfEditorProps {
58
62
  signerTitle?: string;
59
63
  /** Department shown in the digital signature block */
60
64
  signerDepartment?: string;
65
+ /** SVG markup, data URL, or image URL for the digital signature status icon */
66
+ signatureIconSvg?: string;
67
+ /** Diagonal text watermark applied to every page (preview + export) */
68
+ watermark?: WatermarkConfig;
61
69
  }
62
70
 
63
71
  export declare type ShapeType = "rectangle" | "ellipse" | "circle" | "line" | "arrow";
64
72
 
73
+ export declare interface WatermarkConfig {
74
+ /** Watermark text shown on every page */
75
+ text: string;
76
+ /** 0–1, default 0.12 */
77
+ opacity?: number;
78
+ /** CSS color, default #888888 */
79
+ color?: string;
80
+ /** Font size in px/pt; auto-scales from page width if omitted */
81
+ fontSize?: number;
82
+ /** CSS font family, default Arial, sans-serif */
83
+ fontFamily?: string;
84
+ /** CSS font weight, default bold */
85
+ fontWeight?: WatermarkFontWeight;
86
+ /** Rotation in degrees, default -45 */
87
+ rotation?: number;
88
+ }
89
+
90
+ export declare type WatermarkFontWeight = number | "normal" | "bold" | "lighter" | "bolder";
91
+
65
92
  export { }