@ironsoftware/ironpdf 2024.12.9 → 2025.2.1
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/package.json +6 -3
- package/src/internal/IronPdfEngine.ProtoFiles/chrome_render.proto +1 -0
- package/src/internal/IronPdfEngine.ProtoFiles/iron_pdf_service.proto +2 -0
- package/src/internal/IronPdfEngine.ProtoFiles/pdfium_annotation.proto +9 -14
- package/src/internal/IronPdfEngine.ProtoFiles/pdfium_page.proto +13 -0
- package/src/internal/IronPdfEngine.ProtoFiles/pdfium_pdf_document.proto +13 -0
- package/src/internal/access.d.ts +2 -3
- package/src/internal/access.d.ts.map +1 -1
- package/src/internal/access.ts +0 -2
- package/src/internal/generated_proto/iron_pdf_service.d.ts +3 -0
- package/src/internal/generated_proto/iron_pdf_service.d.ts.map +1 -1
- package/src/internal/generated_proto/iron_pdf_service.ts +3 -0
- package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.d.ts +3 -0
- package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.ts +3 -0
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts +23 -0
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.ts +27 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddLinkAnnotationRequestP.d.ts +9 -8
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddLinkAnnotationRequestP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddLinkAnnotationRequestP.ts +9 -8
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageRequestP.d.ts +12 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageRequestP.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageResultP.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageResultP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageResultP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageResultP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageResultP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.d.ts +12 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFileToPdfARequestStreamP.d.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFileToPdfARequestStreamP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFileToPdfARequestStreamP.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationP.d.ts +9 -8
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationP.ts +9 -8
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumTextAnnotationP.d.ts +4 -12
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumTextAnnotationP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumTextAnnotationP.ts +4 -12
- package/src/internal/grpc_layer/chrome/converter.d.ts +23 -23
- package/src/internal/grpc_layer/chrome/converter.d.ts.map +1 -1
- package/src/internal/grpc_layer/chrome/converter.js +93 -102
- package/src/internal/grpc_layer/chrome/converter.js.map +1 -1
- package/src/internal/grpc_layer/chrome/converter.ts +140 -145
- package/src/internal/grpc_layer/chrome/render.d.ts +5 -5
- package/src/internal/grpc_layer/chrome/render.d.ts.map +1 -1
- package/src/internal/grpc_layer/chrome/render.js.map +1 -1
- package/src/internal/grpc_layer/chrome/render.ts +7 -7
- package/src/internal/grpc_layer/chrome/stamp.d.ts +16 -16
- package/src/internal/grpc_layer/chrome/stamp.d.ts.map +1 -1
- package/src/internal/grpc_layer/chrome/stamp.js.map +1 -1
- package/src/internal/grpc_layer/chrome/stamp.ts +16 -16
- package/src/internal/grpc_layer/handshake.js +1 -1
- package/src/internal/grpc_layer/handshake.js.map +1 -1
- package/src/internal/grpc_layer/handshake.ts +1 -1
- package/src/internal/grpc_layer/pdfium/converter.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/converter.js +3 -4
- package/src/internal/grpc_layer/pdfium/converter.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/converter.ts +3 -4
- package/src/internal/grpc_layer/pdfium/headerFooter.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/headerFooter.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/headerFooter.ts +0 -2
- package/src/internal/grpc_layer/pdfium/image.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/image.js +8 -5
- package/src/internal/grpc_layer/pdfium/image.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/image.ts +9 -8
- package/src/internal/grpc_layer/pdfium/io.d.ts +5 -5
- package/src/internal/grpc_layer/pdfium/io.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/io.js +6 -5
- package/src/internal/grpc_layer/pdfium/io.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/io.ts +5 -5
- package/src/internal/grpc_layer/pdfium/page.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/page.js +27 -21
- package/src/internal/grpc_layer/pdfium/page.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/page.ts +32 -27
- package/src/internal/grpc_layer/pdfium/pdfa.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/pdfa.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/pdfa.ts +0 -2
- package/src/internal/grpc_layer/pdfium/security.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/security.js +9 -6
- package/src/internal/grpc_layer/pdfium/security.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/security.ts +6 -7
- package/src/internal/grpc_layer/pdfium/signing.js +15 -15
- package/src/internal/grpc_layer/pdfium/signing.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/signing.ts +4 -4
- package/src/internal/grpc_layer/pdfium/text.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/text.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/text.ts +0 -2
- package/src/internal/grpc_layer/util.d.ts +6 -6
- package/src/internal/grpc_layer/util.d.ts.map +1 -1
- package/src/internal/grpc_layer/util.js +25 -14
- package/src/internal/grpc_layer/util.js.map +1 -1
- package/src/internal/grpc_layer/util.ts +35 -17
- package/src/internal/zod/ironpdfglobalconfigSchema.d.ts.map +1 -1
- package/src/internal/zod/ironpdfglobalconfigSchema.ts +1 -1
- package/src/internal/zod/stampSchema.d.ts +6 -6
- package/src/public/affix.d.ts +11 -11
- package/src/public/affix.d.ts.map +1 -1
- package/src/public/affix.ts +12 -12
- package/src/public/ironpdfglobalconfig.d.ts +9 -9
- package/src/public/ironpdfglobalconfig.d.ts.map +1 -1
- package/src/public/ironpdfglobalconfig.ts +9 -9
- package/src/public/pdfDocument.d.ts +52 -52
- package/src/public/pdfDocument.d.ts.map +1 -1
- package/src/public/pdfDocument.js +21 -17
- package/src/public/pdfDocument.js.map +1 -1
- package/src/public/pdfDocument.ts +134 -138
- package/src/public/pdfGenerator.d.ts +1 -1
- package/src/public/pdfGenerator.d.ts.map +1 -1
- package/src/public/pdfGenerator.ts +1 -1
- package/src/public/render.d.ts +33 -33
- package/src/public/render.d.ts.map +1 -1
- package/src/public/render.ts +37 -37
- package/src/public/security.d.ts +10 -10
- package/src/public/security.d.ts.map +1 -1
- package/src/public/security.ts +10 -10
- package/src/public/signature.d.ts +12 -12
- package/src/public/signature.d.ts.map +1 -1
- package/src/public/signature.ts +12 -12
- package/src/public/stamp.d.ts +26 -26
- package/src/public/stamp.d.ts.map +1 -1
- package/src/public/stamp.ts +27 -27
- package/src/public/types.d.ts +15 -15
- package/src/public/types.d.ts.map +1 -1
- package/src/public/types.ts +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["signature.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["signature.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,YAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,eAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,iBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,mBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,aAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,eAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC;;;OAGG;IACH,aAAc,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAClC;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,kBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,oBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,sBAAsB,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IACnD;;OAEG;IACH,uBAAwB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9C"}
|
package/src/public/signature.ts
CHANGED
|
@@ -8,38 +8,38 @@ export interface DigitalSignature {
|
|
|
8
8
|
/**
|
|
9
9
|
* Url to use for timestamping
|
|
10
10
|
*/
|
|
11
|
-
timeStampUrl?: string;
|
|
11
|
+
timeStampUrl ?: string | undefined;
|
|
12
12
|
/**
|
|
13
13
|
* The file path to a .pfx or .p12 digital signing certificate which may be generated using Adobe Acrobat Viewer.
|
|
14
14
|
*/
|
|
15
|
-
certificatePath?: string;
|
|
15
|
+
certificatePath ?: string | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* The file buffer of a .pfx or .p12 digital signing certificate which may be generated using Adobe Acrobat Viewer.
|
|
18
18
|
*/
|
|
19
|
-
certificateBuffer?: Buffer;
|
|
19
|
+
certificateBuffer ?: Buffer | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* The certificate password as a String
|
|
22
22
|
*/
|
|
23
|
-
certificatePassword?: string;
|
|
23
|
+
certificatePassword ?: string | undefined;
|
|
24
24
|
/**
|
|
25
25
|
* The reason the PDF was signed
|
|
26
26
|
*/
|
|
27
|
-
signingReason?: string;
|
|
27
|
+
signingReason ?: string | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* The physical location the PDF was signed
|
|
30
30
|
*/
|
|
31
|
-
signingLocation?: string;
|
|
31
|
+
signingLocation ?: string | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* The date and time of the digital signature. If left null, the signature will be timestamped at the
|
|
34
34
|
* millisecond that the PdfDocument is saved to Disk or Stream.
|
|
35
35
|
*/
|
|
36
|
-
signatureDate?: Date;
|
|
36
|
+
signatureDate ?: Date | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* A visual image for the sign, often a PNG of a human signature or company stamp.
|
|
39
39
|
*
|
|
40
40
|
* This appends a visual signature in addition to cryptographic signing.
|
|
41
41
|
*/
|
|
42
|
-
signatureImage?: SignatureImage;
|
|
42
|
+
signatureImage?: SignatureImage | undefined;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
@@ -49,17 +49,17 @@ export interface SignatureImage {
|
|
|
49
49
|
/**
|
|
50
50
|
* An image file path
|
|
51
51
|
*/
|
|
52
|
-
SignatureImagePath?: string;
|
|
52
|
+
SignatureImagePath ?: string | undefined;
|
|
53
53
|
/**
|
|
54
54
|
* An image binary data
|
|
55
55
|
*/
|
|
56
|
-
SignatureImageBuffer?: Buffer;
|
|
56
|
+
SignatureImageBuffer ?: Buffer | undefined;
|
|
57
57
|
/**
|
|
58
58
|
* An CropRectangle image position
|
|
59
59
|
*/
|
|
60
|
-
SignatureImagePosition?:CropRectangle;
|
|
60
|
+
SignatureImagePosition?: CropRectangle | undefined;
|
|
61
61
|
/**
|
|
62
62
|
* 0-based PDF page index
|
|
63
63
|
*/
|
|
64
|
-
SignatureImagePageIndex?: number;
|
|
64
|
+
SignatureImagePageIndex ?: number | undefined;
|
|
65
65
|
}
|
package/src/public/stamp.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface HtmlStampOptions extends BaseStampOptions {
|
|
|
10
10
|
* if printing a web page in a browser print dialog. It renders exactly as per Google Chrome.
|
|
11
11
|
* @default {@link CssMediaType.Screen}</p>
|
|
12
12
|
*/
|
|
13
|
-
cssMediaType?: CssMediaType;
|
|
13
|
+
cssMediaType?: CssMediaType | undefined;
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* An options for {@link PdfDocument.stampImage}
|
|
@@ -25,19 +25,19 @@ export interface BarcodeStampOptions extends BaseStampOptions {
|
|
|
25
25
|
*
|
|
26
26
|
* @default 250
|
|
27
27
|
*/
|
|
28
|
-
widthPx?: number;
|
|
28
|
+
widthPx?: number | undefined;
|
|
29
29
|
/**
|
|
30
30
|
* The height in px of barcode
|
|
31
31
|
*
|
|
32
32
|
* @default 250
|
|
33
33
|
*/
|
|
34
|
-
heightPx?: number;
|
|
34
|
+
heightPx?: number | undefined;
|
|
35
35
|
/**
|
|
36
36
|
* Barcode encoding type to use for this Stamper. Supported encoding types include: QRCode, Code128, and Code39. Please see {@link BarcodeType}]
|
|
37
37
|
*
|
|
38
38
|
* @default {@link BarcodeType.qrCode}
|
|
39
39
|
*/
|
|
40
|
-
barcodeType?: BarcodeType;
|
|
40
|
+
barcodeType?: BarcodeType | undefined;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* An options for {@link PdfDocument.stampText}
|
|
@@ -46,43 +46,43 @@ export interface TextStampOptions extends BaseStampOptions {
|
|
|
46
46
|
/**
|
|
47
47
|
* @default false
|
|
48
48
|
*/
|
|
49
|
-
isBold?: boolean;
|
|
49
|
+
isBold?: boolean | undefined;
|
|
50
50
|
/**
|
|
51
51
|
* @default false
|
|
52
52
|
*/
|
|
53
|
-
isItalic?: boolean;
|
|
53
|
+
isItalic?: boolean | undefined;
|
|
54
54
|
/**
|
|
55
55
|
* @default false
|
|
56
56
|
*/
|
|
57
|
-
isUnderline?: boolean;
|
|
57
|
+
isUnderline?: boolean | undefined;
|
|
58
58
|
/**
|
|
59
59
|
* @default false
|
|
60
60
|
*/
|
|
61
|
-
isStrikethrough?: boolean;
|
|
61
|
+
isStrikethrough?: boolean | undefined;
|
|
62
62
|
/**
|
|
63
63
|
* Font family name for the text.
|
|
64
64
|
*
|
|
65
65
|
* Note: If using a web font from https://fonts.google.com/ then you must set {@link TextStampOptions.useGoogleFont} property of this TextStampOptions to true.
|
|
66
66
|
* @default Arial
|
|
67
67
|
*/
|
|
68
|
-
fontFamily?: string;
|
|
68
|
+
fontFamily?: string | undefined;
|
|
69
69
|
/**
|
|
70
70
|
* @default 12
|
|
71
71
|
*/
|
|
72
|
-
fontSize?: number;
|
|
72
|
+
fontSize?: number | undefined;
|
|
73
73
|
/**
|
|
74
74
|
* Must be set to true, when using {@link TextStampOptions.fontFamily} from https://fonts.google.com/ as a web font
|
|
75
75
|
* @default false
|
|
76
76
|
*/
|
|
77
|
-
useGoogleFont?: boolean;
|
|
77
|
+
useGoogleFont?: boolean | undefined;
|
|
78
78
|
/**
|
|
79
79
|
* @default #000000
|
|
80
80
|
*/
|
|
81
|
-
textColor?: string;
|
|
81
|
+
textColor?: string | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* @default #00FFFFFF
|
|
84
84
|
*/
|
|
85
|
-
backgroundColor?: string;
|
|
85
|
+
backgroundColor?: string | undefined;
|
|
86
86
|
}
|
|
87
87
|
export interface BaseStampOptions {
|
|
88
88
|
/**
|
|
@@ -100,7 +100,7 @@ export interface BaseStampOptions {
|
|
|
100
100
|
*
|
|
101
101
|
* @default {@link MeasurementUnit.Percentage} value 0 (no offset)
|
|
102
102
|
*/
|
|
103
|
-
horizontalOffset?: Length;
|
|
103
|
+
horizontalOffset?: Length | undefined;
|
|
104
104
|
/**
|
|
105
105
|
* The horizontal offset.
|
|
106
106
|
* Value of 0 has no effect. Positive indicates an offset to the downward direction.
|
|
@@ -108,76 +108,76 @@ export interface BaseStampOptions {
|
|
|
108
108
|
*
|
|
109
109
|
* @default {@link MeasurementUnit.Percentage} value 0 (no offset)
|
|
110
110
|
*/
|
|
111
|
-
verticalOffset?: Length;
|
|
111
|
+
verticalOffset?: Length | undefined;
|
|
112
112
|
/**
|
|
113
113
|
* Gets opacity. Allows the stamp to be transparent. 0 is fully invisible, 100 if fully opaque.
|
|
114
114
|
*
|
|
115
115
|
* @default 100
|
|
116
116
|
*/
|
|
117
|
-
opacity?: number;
|
|
117
|
+
opacity?: number | undefined;
|
|
118
118
|
/**
|
|
119
119
|
* Rotates the stamp clockwise from 0 to 360 degrees as specified.
|
|
120
120
|
*
|
|
121
121
|
* @default 0
|
|
122
122
|
*/
|
|
123
|
-
rotation?: number;
|
|
123
|
+
rotation?: number | undefined;
|
|
124
124
|
/**
|
|
125
125
|
* Makes stamped elements of this Stamper have an on-click hyperlink. Note: HTML links
|
|
126
126
|
* created by <a href=''> tags are not reserved by stamping.
|
|
127
127
|
*
|
|
128
128
|
* @default undefined
|
|
129
129
|
*/
|
|
130
|
-
hyperlink?: string;
|
|
130
|
+
hyperlink?: string | undefined;
|
|
131
131
|
/**
|
|
132
132
|
* Applies a percentage scale to the stamps to be larger or smaller.
|
|
133
133
|
*
|
|
134
134
|
* @default 100 (Percent) which has no effect.
|
|
135
135
|
*/
|
|
136
|
-
scale?: number;
|
|
136
|
+
scale?: number | undefined;
|
|
137
137
|
/**
|
|
138
138
|
* Set to true for apply stamp behind the content.
|
|
139
139
|
* If the content is opaque, the stamp may be invisible.
|
|
140
140
|
*
|
|
141
141
|
* @default false
|
|
142
142
|
*/
|
|
143
|
-
behindExistingContent?: boolean;
|
|
143
|
+
behindExistingContent?: boolean | undefined;
|
|
144
144
|
/**
|
|
145
145
|
* Render timeout in seconds
|
|
146
146
|
*
|
|
147
147
|
* @default 60
|
|
148
148
|
*/
|
|
149
|
-
timeout?: number;
|
|
149
|
+
timeout?: number | undefined;
|
|
150
150
|
/**
|
|
151
151
|
* Milliseconds to wait after Html is rendered before printing.
|
|
152
152
|
* This can use useful when considering the rendering of JavaScript, Ajax or animations.
|
|
153
153
|
*
|
|
154
154
|
* @default value for HtmlStamper is 100, The other Stamper is 0.
|
|
155
155
|
*/
|
|
156
|
-
renderDelay?: number;
|
|
156
|
+
renderDelay?: number | undefined;
|
|
157
157
|
/**
|
|
158
158
|
* The maximum width of the output stamp.
|
|
159
159
|
*
|
|
160
160
|
* @default undefined
|
|
161
161
|
*/
|
|
162
|
-
maxWidth?: Length;
|
|
162
|
+
maxWidth?: Length | undefined;
|
|
163
163
|
/**
|
|
164
164
|
* The maximum height of the output stamp.
|
|
165
165
|
*
|
|
166
166
|
* @default undefined
|
|
167
167
|
*/
|
|
168
|
-
maxHeight?: Length;
|
|
168
|
+
maxHeight?: Length | undefined;
|
|
169
169
|
/**
|
|
170
170
|
* The minimum width of the output stamp.
|
|
171
171
|
*
|
|
172
172
|
* @default undefined
|
|
173
173
|
*/
|
|
174
|
-
minWidth?: Length;
|
|
174
|
+
minWidth?: Length | undefined;
|
|
175
175
|
/**
|
|
176
176
|
* The minimum height of the output stamp.
|
|
177
177
|
*
|
|
178
178
|
* @default undefined
|
|
179
179
|
*/
|
|
180
|
-
minHeight?: Length;
|
|
180
|
+
minHeight?: Length | undefined;
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* Barcode Encoding Types. Please check the supported characters for each encoding type as some do not support all symbols.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stamp.d.ts","sourceRoot":"","sources":["stamp.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,mBAAmB,EACnB,MAAM,EACN,iBAAiB,EACjB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IAMzD;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"stamp.d.ts","sourceRoot":"","sources":["stamp.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,mBAAmB,EACnB,MAAM,EACN,iBAAiB,EACjB,MAAM,SAAS,CAAC;AAEjB;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IAMzD;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;CACxC;AAED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C;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;;;;OAKG;IACH,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5C;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;;;;OAKG;IACH,WAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC;;;;OAIG;IACH,QAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;;;OAIG;IACH,SAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,QAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;;;OAIG;IACH,SAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;GAGG;AACH,oBAAY,WAAW;IACtB;;;;OAIG;IACH,OAAO,KAAK;IACZ;;;;OAIG;IACH,MAAM,IAAI;IACV;;;;;;OAMG;IACH,MAAM,SAAS;CACf"}
|
package/src/public/stamp.ts
CHANGED
|
@@ -13,7 +13,7 @@ export interface HtmlStampOptions extends BaseStampOptions {
|
|
|
13
13
|
// * The HTML base URL for which references to external CSS, Javascript and Image files will be relative.
|
|
14
14
|
// * @default undefined
|
|
15
15
|
// */
|
|
16
|
-
// baseUrl?: string; //not supported
|
|
16
|
+
// baseUrl ?: string | undefined; //not supported
|
|
17
17
|
/**
|
|
18
18
|
* Css media type. Enables Media="screen" CSS Styles and StyleSheets
|
|
19
19
|
*
|
|
@@ -21,7 +21,7 @@ export interface HtmlStampOptions extends BaseStampOptions {
|
|
|
21
21
|
* if printing a web page in a browser print dialog. It renders exactly as per Google Chrome.
|
|
22
22
|
* @default {@link CssMediaType.Screen}</p>
|
|
23
23
|
*/
|
|
24
|
-
cssMediaType?: CssMediaType;
|
|
24
|
+
cssMediaType?: CssMediaType | undefined;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
/**
|
|
@@ -38,19 +38,19 @@ export interface BarcodeStampOptions extends BaseStampOptions {
|
|
|
38
38
|
*
|
|
39
39
|
* @default 250
|
|
40
40
|
*/
|
|
41
|
-
widthPx?: number;
|
|
41
|
+
widthPx?: number | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* The height in px of barcode
|
|
44
44
|
*
|
|
45
45
|
* @default 250
|
|
46
46
|
*/
|
|
47
|
-
heightPx?: number;
|
|
47
|
+
heightPx?: number | undefined;
|
|
48
48
|
/**
|
|
49
49
|
* Barcode encoding type to use for this Stamper. Supported encoding types include: QRCode, Code128, and Code39. Please see {@link BarcodeType}]
|
|
50
50
|
*
|
|
51
51
|
* @default {@link BarcodeType.qrCode}
|
|
52
52
|
*/
|
|
53
|
-
barcodeType?: BarcodeType;
|
|
53
|
+
barcodeType?: BarcodeType | undefined;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -60,43 +60,43 @@ export interface TextStampOptions extends BaseStampOptions {
|
|
|
60
60
|
/**
|
|
61
61
|
* @default false
|
|
62
62
|
*/
|
|
63
|
-
isBold?: boolean;
|
|
63
|
+
isBold?: boolean | undefined;
|
|
64
64
|
/**
|
|
65
65
|
* @default false
|
|
66
66
|
*/
|
|
67
|
-
isItalic?: boolean;
|
|
67
|
+
isItalic?: boolean | undefined;
|
|
68
68
|
/**
|
|
69
69
|
* @default false
|
|
70
70
|
*/
|
|
71
|
-
isUnderline?: boolean;
|
|
71
|
+
isUnderline?: boolean | undefined;
|
|
72
72
|
/**
|
|
73
73
|
* @default false
|
|
74
74
|
*/
|
|
75
|
-
isStrikethrough?: boolean;
|
|
75
|
+
isStrikethrough?: boolean | undefined;
|
|
76
76
|
/**
|
|
77
77
|
* Font family name for the text.
|
|
78
78
|
*
|
|
79
79
|
* Note: If using a web font from https://fonts.google.com/ then you must set {@link TextStampOptions.useGoogleFont} property of this TextStampOptions to true.
|
|
80
80
|
* @default Arial
|
|
81
81
|
*/
|
|
82
|
-
fontFamily?: string;
|
|
82
|
+
fontFamily?: string | undefined;
|
|
83
83
|
/**
|
|
84
84
|
* @default 12
|
|
85
85
|
*/
|
|
86
|
-
fontSize?: number;
|
|
86
|
+
fontSize?: number | undefined;
|
|
87
87
|
/**
|
|
88
88
|
* Must be set to true, when using {@link TextStampOptions.fontFamily} from https://fonts.google.com/ as a web font
|
|
89
89
|
* @default false
|
|
90
90
|
*/
|
|
91
|
-
useGoogleFont?: boolean;
|
|
91
|
+
useGoogleFont?: boolean | undefined;
|
|
92
92
|
/**
|
|
93
93
|
* @default #000000
|
|
94
94
|
*/
|
|
95
|
-
textColor?: string;
|
|
95
|
+
textColor?: string | undefined;
|
|
96
96
|
/**
|
|
97
97
|
* @default #00FFFFFF
|
|
98
98
|
*/
|
|
99
|
-
backgroundColor?: string;
|
|
99
|
+
backgroundColor?: string | undefined;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export interface BaseStampOptions {
|
|
@@ -115,7 +115,7 @@ export interface BaseStampOptions {
|
|
|
115
115
|
*
|
|
116
116
|
* @default {@link MeasurementUnit.Percentage} value 0 (no offset)
|
|
117
117
|
*/
|
|
118
|
-
horizontalOffset?: Length;
|
|
118
|
+
horizontalOffset?: Length | undefined;
|
|
119
119
|
/**
|
|
120
120
|
* The horizontal offset.
|
|
121
121
|
* Value of 0 has no effect. Positive indicates an offset to the downward direction.
|
|
@@ -123,76 +123,76 @@ export interface BaseStampOptions {
|
|
|
123
123
|
*
|
|
124
124
|
* @default {@link MeasurementUnit.Percentage} value 0 (no offset)
|
|
125
125
|
*/
|
|
126
|
-
verticalOffset?: Length;
|
|
126
|
+
verticalOffset?: Length | undefined;
|
|
127
127
|
/**
|
|
128
128
|
* Gets opacity. Allows the stamp to be transparent. 0 is fully invisible, 100 if fully opaque.
|
|
129
129
|
*
|
|
130
130
|
* @default 100
|
|
131
131
|
*/
|
|
132
|
-
opacity?: number;
|
|
132
|
+
opacity?: number | undefined;
|
|
133
133
|
/**
|
|
134
134
|
* Rotates the stamp clockwise from 0 to 360 degrees as specified.
|
|
135
135
|
*
|
|
136
136
|
* @default 0
|
|
137
137
|
*/
|
|
138
|
-
rotation?: number;
|
|
138
|
+
rotation?: number | undefined;
|
|
139
139
|
/**
|
|
140
140
|
* Makes stamped elements of this Stamper have an on-click hyperlink. Note: HTML links
|
|
141
141
|
* created by <a href=''> tags are not reserved by stamping.
|
|
142
142
|
*
|
|
143
143
|
* @default undefined
|
|
144
144
|
*/
|
|
145
|
-
hyperlink?: string;
|
|
145
|
+
hyperlink?: string | undefined;
|
|
146
146
|
/**
|
|
147
147
|
* Applies a percentage scale to the stamps to be larger or smaller.
|
|
148
148
|
*
|
|
149
149
|
* @default 100 (Percent) which has no effect.
|
|
150
150
|
*/
|
|
151
|
-
scale?: number;
|
|
151
|
+
scale?: number | undefined;
|
|
152
152
|
/**
|
|
153
153
|
* Set to true for apply stamp behind the content.
|
|
154
154
|
* If the content is opaque, the stamp may be invisible.
|
|
155
155
|
*
|
|
156
156
|
* @default false
|
|
157
157
|
*/
|
|
158
|
-
behindExistingContent?: boolean;
|
|
158
|
+
behindExistingContent?: boolean | undefined;
|
|
159
159
|
/**
|
|
160
160
|
* Render timeout in seconds
|
|
161
161
|
*
|
|
162
162
|
* @default 60
|
|
163
163
|
*/
|
|
164
|
-
timeout?: number;
|
|
164
|
+
timeout?: number | undefined;
|
|
165
165
|
/**
|
|
166
166
|
* Milliseconds to wait after Html is rendered before printing.
|
|
167
167
|
* This can use useful when considering the rendering of JavaScript, Ajax or animations.
|
|
168
168
|
*
|
|
169
169
|
* @default value for HtmlStamper is 100, The other Stamper is 0.
|
|
170
170
|
*/
|
|
171
|
-
renderDelay?: number;
|
|
171
|
+
renderDelay ?: number | undefined;
|
|
172
172
|
/**
|
|
173
173
|
* The maximum width of the output stamp.
|
|
174
174
|
*
|
|
175
175
|
* @default undefined
|
|
176
176
|
*/
|
|
177
|
-
maxWidth?: Length;
|
|
177
|
+
maxWidth ?: Length | undefined;
|
|
178
178
|
/**
|
|
179
179
|
* The maximum height of the output stamp.
|
|
180
180
|
*
|
|
181
181
|
* @default undefined
|
|
182
182
|
*/
|
|
183
|
-
maxHeight?: Length;
|
|
183
|
+
maxHeight ?: Length | undefined;
|
|
184
184
|
/**
|
|
185
185
|
* The minimum width of the output stamp.
|
|
186
186
|
*
|
|
187
187
|
* @default undefined
|
|
188
188
|
*/
|
|
189
|
-
minWidth?: Length;
|
|
189
|
+
minWidth ?: Length | undefined;
|
|
190
190
|
/**
|
|
191
191
|
* The minimum height of the output stamp.
|
|
192
192
|
*
|
|
193
193
|
* @default undefined
|
|
194
194
|
*/
|
|
195
|
-
minHeight?: Length;
|
|
195
|
+
minHeight ?: Length | undefined;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
/**
|
package/src/public/types.d.ts
CHANGED
|
@@ -120,7 +120,7 @@ export interface SaveOptions {
|
|
|
120
120
|
*
|
|
121
121
|
* @default undefined
|
|
122
122
|
*/
|
|
123
|
-
userPassword?: string;
|
|
123
|
+
userPassword?: string | undefined;
|
|
124
124
|
/**
|
|
125
125
|
* Sets owner password and enables 128Bit encryption of PDF content. An owner password is one
|
|
126
126
|
* used to enable and disable all other security settings.
|
|
@@ -128,13 +128,13 @@ export interface SaveOptions {
|
|
|
128
128
|
*
|
|
129
129
|
* @default undefined
|
|
130
130
|
*/
|
|
131
|
-
ownerPassword?: string;
|
|
131
|
+
ownerPassword?: string | undefined;
|
|
132
132
|
/**
|
|
133
133
|
* Convert the current document into the specified PDF-A standard format
|
|
134
134
|
*
|
|
135
135
|
* @default false
|
|
136
136
|
*/
|
|
137
|
-
saveAsPdfA?: boolean;
|
|
137
|
+
saveAsPdfA?: boolean | undefined;
|
|
138
138
|
/**
|
|
139
139
|
* Signs the PDF with digital signature with advanced options.
|
|
140
140
|
* Note that the PDF will not be fully signed until Saved using {@link PdfDocument.saveAs}
|
|
@@ -146,7 +146,7 @@ export interface SaveOptions {
|
|
|
146
146
|
*
|
|
147
147
|
* @default false
|
|
148
148
|
*/
|
|
149
|
-
incremental?: boolean;
|
|
149
|
+
incremental?: boolean | undefined;
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
152
|
* A length value with {@link MeasurementUnit}
|
|
@@ -166,19 +166,19 @@ export interface CropRectangle {
|
|
|
166
166
|
/**
|
|
167
167
|
* Image horizontal position x
|
|
168
168
|
*/
|
|
169
|
-
x?: number;
|
|
169
|
+
x?: number | undefined;
|
|
170
170
|
/**
|
|
171
171
|
* Image vertical position y
|
|
172
172
|
*/
|
|
173
|
-
y?: number;
|
|
173
|
+
y?: number | undefined;
|
|
174
174
|
/**
|
|
175
175
|
* Image width
|
|
176
176
|
*/
|
|
177
|
-
width?: number;
|
|
177
|
+
width?: number | undefined;
|
|
178
178
|
/**
|
|
179
179
|
* Image width
|
|
180
180
|
*/
|
|
181
|
-
height?: number;
|
|
181
|
+
height?: number | undefined;
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* The margin configuration. see {@link ChromePdfRenderOptions.margin}
|
|
@@ -187,23 +187,23 @@ export interface MarginConfig {
|
|
|
187
187
|
/**
|
|
188
188
|
* Default margin for all side, apply when the specific margin for each side was not specify
|
|
189
189
|
*/
|
|
190
|
-
default?: number;
|
|
190
|
+
default?: number | undefined;
|
|
191
191
|
/**
|
|
192
192
|
* Top margin
|
|
193
193
|
*/
|
|
194
|
-
top?: number;
|
|
194
|
+
top?: number | undefined;
|
|
195
195
|
/**
|
|
196
196
|
* Right margin
|
|
197
197
|
*/
|
|
198
|
-
right?: number;
|
|
198
|
+
right?: number | undefined;
|
|
199
199
|
/**
|
|
200
200
|
* Bottom margin
|
|
201
201
|
*/
|
|
202
|
-
bottom?: number;
|
|
202
|
+
bottom?: number | undefined;
|
|
203
203
|
/**
|
|
204
204
|
* Left margin
|
|
205
205
|
*/
|
|
206
|
-
left?: number;
|
|
206
|
+
left?: number | undefined;
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
209
|
* A union type that wrap all supported type that can converted to PdfDocument.
|
|
@@ -256,8 +256,8 @@ export declare enum UseMargins {
|
|
|
256
256
|
* A PDF password including user-password and owner-password
|
|
257
257
|
*/
|
|
258
258
|
export type PdfPassword = {
|
|
259
|
-
userPassword?: string;
|
|
260
|
-
ownerPassword?: string;
|
|
259
|
+
userPassword?: string | undefined;
|
|
260
|
+
ownerPassword?: string | undefined;
|
|
261
261
|
};
|
|
262
262
|
/**
|
|
263
263
|
* Union type representing different Chrome GPU modes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AAEnC;;GAEG;AACH,oBAAY,mBAAmB;IAC9B,IAAI,IAAI;IACR,MAAM,IAAI;IACV,KAAK,IAAI;CACT;AACD;;GAEG;AACH,oBAAY,iBAAiB;IAC5B,GAAG,IAAI;IACP,MAAM,IAAI;IACV,MAAM,IAAI;CACV;AACD;;;GAGG;AACH,oBAAY,YAAY;IACvB;;OAEG;IACH,KAAK,IAAI;IACT;;OAEG;IACH,MAAM,IAAI;CACV;AACD;;;GAGG;AACH,oBAAY,eAAe;IAC1B;;;;;;;;;OASG;IACH,OAAO,IAAI;IACX;;;;;;;OAOG;IACH,UAAU,IAAI;IACd;;;;;;OAMG;IACH,WAAW,IAAI;IAC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|
123
123
|
* @default undefined
|
|
124
124
|
*/
|
|
125
|
-
userPassword?: string;
|
|
125
|
+
userPassword?: string | undefined;
|
|
126
126
|
/**
|
|
127
127
|
* Sets owner password and enables 128Bit encryption of PDF content. An owner password is one
|
|
128
128
|
* used to enable and disable all other security settings.
|
|
@@ -130,13 +130,13 @@ export interface SaveOptions {
|
|
|
130
130
|
*
|
|
131
131
|
* @default undefined
|
|
132
132
|
*/
|
|
133
|
-
ownerPassword?: string;
|
|
133
|
+
ownerPassword?: string | undefined;
|
|
134
134
|
/**
|
|
135
135
|
* Convert the current document into the specified PDF-A standard format
|
|
136
136
|
*
|
|
137
137
|
* @default false
|
|
138
138
|
*/
|
|
139
|
-
saveAsPdfA?: boolean;
|
|
139
|
+
saveAsPdfA?: boolean | undefined;
|
|
140
140
|
/**
|
|
141
141
|
* Signs the PDF with digital signature with advanced options.
|
|
142
142
|
* Note that the PDF will not be fully signed until Saved using {@link PdfDocument.saveAs}
|
|
@@ -149,7 +149,7 @@ export interface SaveOptions {
|
|
|
149
149
|
*
|
|
150
150
|
* @default false
|
|
151
151
|
*/
|
|
152
|
-
incremental?: boolean;
|
|
152
|
+
incremental?: boolean | undefined;
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
/**
|
|
@@ -171,19 +171,19 @@ export interface CropRectangle {
|
|
|
171
171
|
/**
|
|
172
172
|
* Image horizontal position x
|
|
173
173
|
*/
|
|
174
|
-
x?: number;
|
|
174
|
+
x?: number | undefined;
|
|
175
175
|
/**
|
|
176
176
|
* Image vertical position y
|
|
177
177
|
*/
|
|
178
|
-
y?: number;
|
|
178
|
+
y?: number | undefined;
|
|
179
179
|
/**
|
|
180
180
|
* Image width
|
|
181
181
|
*/
|
|
182
|
-
width?: number;
|
|
182
|
+
width?: number | undefined;
|
|
183
183
|
/**
|
|
184
184
|
* Image width
|
|
185
185
|
*/
|
|
186
|
-
height?: number;
|
|
186
|
+
height?: number | undefined;
|
|
187
187
|
// /**
|
|
188
188
|
// * Measurement Unit of {@link x} {@link y} {@link width} and {@link height}
|
|
189
189
|
// */
|
|
@@ -197,23 +197,23 @@ export interface MarginConfig {
|
|
|
197
197
|
/**
|
|
198
198
|
* Default margin for all side, apply when the specific margin for each side was not specify
|
|
199
199
|
*/
|
|
200
|
-
default?: number;
|
|
200
|
+
default?: number | undefined;
|
|
201
201
|
/**
|
|
202
202
|
* Top margin
|
|
203
203
|
*/
|
|
204
|
-
top?: number;
|
|
204
|
+
top?: number | undefined;
|
|
205
205
|
/**
|
|
206
206
|
* Right margin
|
|
207
207
|
*/
|
|
208
|
-
right?: number;
|
|
208
|
+
right?: number | undefined;
|
|
209
209
|
/**
|
|
210
210
|
* Bottom margin
|
|
211
211
|
*/
|
|
212
|
-
bottom?: number;
|
|
212
|
+
bottom?: number | undefined;
|
|
213
213
|
/**
|
|
214
214
|
* Left margin
|
|
215
215
|
*/
|
|
216
|
-
left?: number;
|
|
216
|
+
left?: number | undefined;
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
/**
|
|
@@ -283,7 +283,7 @@ export enum UseMargins {
|
|
|
283
283
|
/**
|
|
284
284
|
* A PDF password including user-password and owner-password
|
|
285
285
|
*/
|
|
286
|
-
export type PdfPassword = { userPassword?: string; ownerPassword?: string };
|
|
286
|
+
export type PdfPassword = { userPassword ?: string | undefined; ownerPassword?: string | undefined };
|
|
287
287
|
|
|
288
288
|
/**
|
|
289
289
|
* Union type representing different Chrome GPU modes.
|