@ironsoftware/ironpdf 2025.7.17 → 2025.9.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 +2 -2
- package/src/internal/IronPdfEngine.ProtoFiles/COPYRIGHT.txt +29 -0
- package/src/internal/IronPdfEngine.ProtoFiles/pdfium_background_foreground.proto +1 -0
- package/src/internal/access.d.ts.map +1 -1
- package/src/internal/access.js +6 -1
- package/src/internal/access.js.map +1 -1
- package/src/internal/access.ts +7 -1
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddBackgroundForegroundRequestP.d.ts +2 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddBackgroundForegroundRequestP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddBackgroundForegroundRequestP.ts +2 -0
- package/src/internal/grpc_layer/chrome/converter.d.ts +3 -1
- package/src/internal/grpc_layer/chrome/converter.d.ts.map +1 -1
- package/src/internal/grpc_layer/chrome/converter.js +18 -13
- package/src/internal/grpc_layer/chrome/converter.js.map +1 -1
- package/src/internal/grpc_layer/chrome/converter.ts +23 -12
- package/src/internal/zod/renderSchema.d.ts.map +1 -1
- package/src/internal/zod/renderSchema.js +1 -0
- package/src/internal/zod/renderSchema.js.map +1 -1
- package/src/internal/zod/renderSchema.ts +2 -1
- package/src/internal/zod/stampSchema.d.ts +76 -75
- package/src/internal/zod/stampSchema.d.ts.map +1 -1
- package/src/internal/zod/stampSchema.js +3 -2
- package/src/internal/zod/stampSchema.js.map +1 -1
- package/src/internal/zod/stampSchema.ts +8 -7
- package/src/internal/zod/typeSchema.d.ts +2 -1
- package/src/internal/zod/typeSchema.d.ts.map +1 -1
- package/src/internal/zod/typeSchema.js +2 -1
- package/src/internal/zod/typeSchema.js.map +1 -1
- package/src/internal/zod/typeSchema.ts +5 -2
- package/src/public/ironpdfglobalconfig.d.ts +3 -0
- package/src/public/ironpdfglobalconfig.d.ts.map +1 -1
- package/src/public/ironpdfglobalconfig.ts +3 -0
- package/src/public/render.d.ts +5 -1
- package/src/public/render.d.ts.map +1 -1
- package/src/public/render.js +1 -0
- package/src/public/render.js.map +1 -1
- package/src/public/render.ts +19 -13
- package/src/public/stamp.d.ts +6 -2
- package/src/public/stamp.d.ts.map +1 -1
- package/src/public/stamp.js.map +1 -1
- package/src/public/stamp.ts +12 -8
- package/src/public/types.d.ts +9 -0
- package/src/public/types.d.ts.map +1 -1
- package/src/public/types.js +11 -1
- package/src/public/types.js.map +1 -1
- package/src/public/types.ts +10 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { BarcodeStampOptions, TextStampOptions } from "../../public/stamp";
|
|
3
|
+
import { HorizontalAlignment, VerticalAlignment } from "../../public/types";
|
|
3
4
|
export declare const baseStampOptionsSchema: z.ZodObject<{
|
|
4
|
-
horizontalAlignment: z.ZodType<
|
|
5
|
-
verticalAlignment: z.ZodType<
|
|
6
|
-
horizontalOffset: z.ZodOptional<z.ZodType<import("
|
|
7
|
-
verticalOffset: z.ZodOptional<z.ZodType<import("
|
|
5
|
+
horizontalAlignment: z.ZodDefault<z.ZodOptional<z.ZodType<HorizontalAlignment, z.ZodTypeDef, HorizontalAlignment>>>;
|
|
6
|
+
verticalAlignment: z.ZodDefault<z.ZodOptional<z.ZodType<VerticalAlignment, z.ZodTypeDef, VerticalAlignment>>>;
|
|
7
|
+
horizontalOffset: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
8
|
+
verticalOffset: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
8
9
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
9
10
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
10
11
|
hyperlink: z.ZodOptional<z.ZodString>;
|
|
@@ -12,48 +13,48 @@ export declare const baseStampOptionsSchema: z.ZodObject<{
|
|
|
12
13
|
behindExistingContent: z.ZodOptional<z.ZodBoolean>;
|
|
13
14
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
14
15
|
renderDelay: z.ZodOptional<z.ZodNumber>;
|
|
15
|
-
maxWidth: z.ZodOptional<z.ZodType<import("
|
|
16
|
-
maxHeight: z.ZodOptional<z.ZodType<import("
|
|
17
|
-
minWidth: z.ZodOptional<z.ZodType<import("
|
|
18
|
-
minHeight: z.ZodOptional<z.ZodType<import("
|
|
16
|
+
maxWidth: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
17
|
+
maxHeight: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
18
|
+
minWidth: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
19
|
+
minHeight: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
19
20
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
horizontalAlignment:
|
|
21
|
-
verticalAlignment:
|
|
21
|
+
horizontalAlignment: HorizontalAlignment;
|
|
22
|
+
verticalAlignment: VerticalAlignment;
|
|
22
23
|
timeout?: number | undefined;
|
|
23
|
-
maxHeight?: import("
|
|
24
|
+
maxHeight?: import("../../public/types").Length | undefined;
|
|
24
25
|
renderDelay?: number | undefined;
|
|
25
26
|
opacity?: number | undefined;
|
|
26
27
|
rotation?: number | undefined;
|
|
27
|
-
horizontalOffset?: import("
|
|
28
|
-
verticalOffset?: import("
|
|
29
|
-
maxWidth?: import("
|
|
30
|
-
minWidth?: import("
|
|
31
|
-
minHeight?: import("
|
|
28
|
+
horizontalOffset?: import("../../public/types").Length | undefined;
|
|
29
|
+
verticalOffset?: import("../../public/types").Length | undefined;
|
|
30
|
+
maxWidth?: import("../../public/types").Length | undefined;
|
|
31
|
+
minWidth?: import("../../public/types").Length | undefined;
|
|
32
|
+
minHeight?: import("../../public/types").Length | undefined;
|
|
32
33
|
hyperlink?: string | undefined;
|
|
33
34
|
scale?: number | undefined;
|
|
34
35
|
behindExistingContent?: boolean | undefined;
|
|
35
36
|
}, {
|
|
36
|
-
horizontalAlignment: import("../..").HorizontalAlignment;
|
|
37
|
-
verticalAlignment: import("../..").VerticalAlignment;
|
|
38
37
|
timeout?: number | undefined;
|
|
39
|
-
maxHeight?: import("
|
|
38
|
+
maxHeight?: import("../../public/types").Length | undefined;
|
|
40
39
|
renderDelay?: number | undefined;
|
|
41
40
|
opacity?: number | undefined;
|
|
42
41
|
rotation?: number | undefined;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
horizontalAlignment?: HorizontalAlignment | undefined;
|
|
43
|
+
verticalAlignment?: VerticalAlignment | undefined;
|
|
44
|
+
horizontalOffset?: import("../../public/types").Length | undefined;
|
|
45
|
+
verticalOffset?: import("../../public/types").Length | undefined;
|
|
46
|
+
maxWidth?: import("../../public/types").Length | undefined;
|
|
47
|
+
minWidth?: import("../../public/types").Length | undefined;
|
|
48
|
+
minHeight?: import("../../public/types").Length | undefined;
|
|
48
49
|
hyperlink?: string | undefined;
|
|
49
50
|
scale?: number | undefined;
|
|
50
51
|
behindExistingContent?: boolean | undefined;
|
|
51
52
|
}>;
|
|
52
53
|
export declare const htmlStampOptionsSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
53
|
-
horizontalAlignment: z.ZodType<
|
|
54
|
-
verticalAlignment: z.ZodType<
|
|
55
|
-
horizontalOffset: z.ZodOptional<z.ZodType<import("
|
|
56
|
-
verticalOffset: z.ZodOptional<z.ZodType<import("
|
|
54
|
+
horizontalAlignment: z.ZodDefault<z.ZodOptional<z.ZodType<HorizontalAlignment, z.ZodTypeDef, HorizontalAlignment>>>;
|
|
55
|
+
verticalAlignment: z.ZodDefault<z.ZodOptional<z.ZodType<VerticalAlignment, z.ZodTypeDef, VerticalAlignment>>>;
|
|
56
|
+
horizontalOffset: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
57
|
+
verticalOffset: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
57
58
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
58
59
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
59
60
|
hyperlink: z.ZodOptional<z.ZodString>;
|
|
@@ -61,52 +62,52 @@ export declare const htmlStampOptionsSchema: z.ZodObject<z.objectUtil.extendShap
|
|
|
61
62
|
behindExistingContent: z.ZodOptional<z.ZodBoolean>;
|
|
62
63
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
63
64
|
renderDelay: z.ZodOptional<z.ZodNumber>;
|
|
64
|
-
maxWidth: z.ZodOptional<z.ZodType<import("
|
|
65
|
-
maxHeight: z.ZodOptional<z.ZodType<import("
|
|
66
|
-
minWidth: z.ZodOptional<z.ZodType<import("
|
|
67
|
-
minHeight: z.ZodOptional<z.ZodType<import("
|
|
65
|
+
maxWidth: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
66
|
+
maxHeight: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
67
|
+
minWidth: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
68
|
+
minHeight: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
68
69
|
}, {
|
|
69
|
-
cssMediaType: z.ZodOptional<z.ZodType<import("
|
|
70
|
+
cssMediaType: z.ZodOptional<z.ZodType<import("../../public/types").CssMediaType, z.ZodTypeDef, import("../../public/types").CssMediaType>>;
|
|
70
71
|
}>, "strip", z.ZodTypeAny, {
|
|
71
|
-
horizontalAlignment:
|
|
72
|
-
verticalAlignment:
|
|
72
|
+
horizontalAlignment: HorizontalAlignment;
|
|
73
|
+
verticalAlignment: VerticalAlignment;
|
|
73
74
|
timeout?: number | undefined;
|
|
74
|
-
maxHeight?: import("
|
|
75
|
+
maxHeight?: import("../../public/types").Length | undefined;
|
|
75
76
|
renderDelay?: number | undefined;
|
|
76
|
-
cssMediaType?: import("
|
|
77
|
+
cssMediaType?: import("../../public/types").CssMediaType | undefined;
|
|
77
78
|
opacity?: number | undefined;
|
|
78
79
|
rotation?: number | undefined;
|
|
79
|
-
horizontalOffset?: import("
|
|
80
|
-
verticalOffset?: import("
|
|
81
|
-
maxWidth?: import("
|
|
82
|
-
minWidth?: import("
|
|
83
|
-
minHeight?: import("
|
|
80
|
+
horizontalOffset?: import("../../public/types").Length | undefined;
|
|
81
|
+
verticalOffset?: import("../../public/types").Length | undefined;
|
|
82
|
+
maxWidth?: import("../../public/types").Length | undefined;
|
|
83
|
+
minWidth?: import("../../public/types").Length | undefined;
|
|
84
|
+
minHeight?: import("../../public/types").Length | undefined;
|
|
84
85
|
hyperlink?: string | undefined;
|
|
85
86
|
scale?: number | undefined;
|
|
86
87
|
behindExistingContent?: boolean | undefined;
|
|
87
88
|
}, {
|
|
88
|
-
horizontalAlignment: import("../..").HorizontalAlignment;
|
|
89
|
-
verticalAlignment: import("../..").VerticalAlignment;
|
|
90
89
|
timeout?: number | undefined;
|
|
91
|
-
maxHeight?: import("
|
|
90
|
+
maxHeight?: import("../../public/types").Length | undefined;
|
|
92
91
|
renderDelay?: number | undefined;
|
|
93
|
-
cssMediaType?: import("
|
|
92
|
+
cssMediaType?: import("../../public/types").CssMediaType | undefined;
|
|
94
93
|
opacity?: number | undefined;
|
|
95
94
|
rotation?: number | undefined;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
95
|
+
horizontalAlignment?: HorizontalAlignment | undefined;
|
|
96
|
+
verticalAlignment?: VerticalAlignment | undefined;
|
|
97
|
+
horizontalOffset?: import("../../public/types").Length | undefined;
|
|
98
|
+
verticalOffset?: import("../../public/types").Length | undefined;
|
|
99
|
+
maxWidth?: import("../../public/types").Length | undefined;
|
|
100
|
+
minWidth?: import("../../public/types").Length | undefined;
|
|
101
|
+
minHeight?: import("../../public/types").Length | undefined;
|
|
101
102
|
hyperlink?: string | undefined;
|
|
102
103
|
scale?: number | undefined;
|
|
103
104
|
behindExistingContent?: boolean | undefined;
|
|
104
105
|
}>;
|
|
105
106
|
export declare const imageStampOptionsSchema: z.ZodObject<{
|
|
106
|
-
horizontalAlignment: z.ZodType<
|
|
107
|
-
verticalAlignment: z.ZodType<
|
|
108
|
-
horizontalOffset: z.ZodOptional<z.ZodType<import("
|
|
109
|
-
verticalOffset: z.ZodOptional<z.ZodType<import("
|
|
107
|
+
horizontalAlignment: z.ZodDefault<z.ZodOptional<z.ZodType<HorizontalAlignment, z.ZodTypeDef, HorizontalAlignment>>>;
|
|
108
|
+
verticalAlignment: z.ZodDefault<z.ZodOptional<z.ZodType<VerticalAlignment, z.ZodTypeDef, VerticalAlignment>>>;
|
|
109
|
+
horizontalOffset: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
110
|
+
verticalOffset: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
110
111
|
opacity: z.ZodOptional<z.ZodNumber>;
|
|
111
112
|
rotation: z.ZodOptional<z.ZodNumber>;
|
|
112
113
|
hyperlink: z.ZodOptional<z.ZodString>;
|
|
@@ -114,39 +115,39 @@ export declare const imageStampOptionsSchema: z.ZodObject<{
|
|
|
114
115
|
behindExistingContent: z.ZodOptional<z.ZodBoolean>;
|
|
115
116
|
timeout: z.ZodOptional<z.ZodNumber>;
|
|
116
117
|
renderDelay: z.ZodOptional<z.ZodNumber>;
|
|
117
|
-
maxWidth: z.ZodOptional<z.ZodType<import("
|
|
118
|
-
maxHeight: z.ZodOptional<z.ZodType<import("
|
|
119
|
-
minWidth: z.ZodOptional<z.ZodType<import("
|
|
120
|
-
minHeight: z.ZodOptional<z.ZodType<import("
|
|
118
|
+
maxWidth: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
119
|
+
maxHeight: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
120
|
+
minWidth: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
121
|
+
minHeight: z.ZodOptional<z.ZodType<import("../../public/types").Length, z.ZodTypeDef, import("../../public/types").Length>>;
|
|
121
122
|
}, "strip", z.ZodTypeAny, {
|
|
122
|
-
horizontalAlignment:
|
|
123
|
-
verticalAlignment:
|
|
123
|
+
horizontalAlignment: HorizontalAlignment;
|
|
124
|
+
verticalAlignment: VerticalAlignment;
|
|
124
125
|
timeout?: number | undefined;
|
|
125
|
-
maxHeight?: import("
|
|
126
|
+
maxHeight?: import("../../public/types").Length | undefined;
|
|
126
127
|
renderDelay?: number | undefined;
|
|
127
128
|
opacity?: number | undefined;
|
|
128
129
|
rotation?: number | undefined;
|
|
129
|
-
horizontalOffset?: import("
|
|
130
|
-
verticalOffset?: import("
|
|
131
|
-
maxWidth?: import("
|
|
132
|
-
minWidth?: import("
|
|
133
|
-
minHeight?: import("
|
|
130
|
+
horizontalOffset?: import("../../public/types").Length | undefined;
|
|
131
|
+
verticalOffset?: import("../../public/types").Length | undefined;
|
|
132
|
+
maxWidth?: import("../../public/types").Length | undefined;
|
|
133
|
+
minWidth?: import("../../public/types").Length | undefined;
|
|
134
|
+
minHeight?: import("../../public/types").Length | undefined;
|
|
134
135
|
hyperlink?: string | undefined;
|
|
135
136
|
scale?: number | undefined;
|
|
136
137
|
behindExistingContent?: boolean | undefined;
|
|
137
138
|
}, {
|
|
138
|
-
horizontalAlignment: import("../..").HorizontalAlignment;
|
|
139
|
-
verticalAlignment: import("../..").VerticalAlignment;
|
|
140
139
|
timeout?: number | undefined;
|
|
141
|
-
maxHeight?: import("
|
|
140
|
+
maxHeight?: import("../../public/types").Length | undefined;
|
|
142
141
|
renderDelay?: number | undefined;
|
|
143
142
|
opacity?: number | undefined;
|
|
144
143
|
rotation?: number | undefined;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
144
|
+
horizontalAlignment?: HorizontalAlignment | undefined;
|
|
145
|
+
verticalAlignment?: VerticalAlignment | undefined;
|
|
146
|
+
horizontalOffset?: import("../../public/types").Length | undefined;
|
|
147
|
+
verticalOffset?: import("../../public/types").Length | undefined;
|
|
148
|
+
maxWidth?: import("../../public/types").Length | undefined;
|
|
149
|
+
minWidth?: import("../../public/types").Length | undefined;
|
|
150
|
+
minHeight?: import("../../public/types").Length | undefined;
|
|
150
151
|
hyperlink?: string | undefined;
|
|
151
152
|
scale?: number | undefined;
|
|
152
153
|
behindExistingContent?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stampSchema.d.ts","sourceRoot":"","sources":["stampSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,OAAO,EAAC,mBAAmB,EAAE,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"stampSchema.d.ts","sourceRoot":"","sources":["stampSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAQvB,OAAO,EAAC,mBAAmB,EAAE,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AACzE,OAAO,EAAC,mBAAmB,EAAE,iBAAiB,EAAC,MAAM,oBAAoB,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BjC,CAAA;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEjC,CAAA;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAyB,CAAA;AAE7D,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAQnE,CAAA;AAEF,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CA4B7D,CAAA"}
|
|
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.textStampOptionsSchema = exports.barcodeStampOptionsSchema = exports.imageStampOptionsSchema = exports.htmlStampOptionsSchema = exports.baseStampOptionsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const typeSchema_1 = require("./typeSchema");
|
|
6
|
+
const types_1 = require("../../public/types");
|
|
6
7
|
exports.baseStampOptionsSchema = zod_1.z.object({
|
|
7
|
-
horizontalAlignment: typeSchema_1.horizontalAlignmentSchema,
|
|
8
|
-
verticalAlignment: typeSchema_1.verticalAlignmentSchema,
|
|
8
|
+
horizontalAlignment: typeSchema_1.horizontalAlignmentSchema.optional().default(types_1.HorizontalAlignment.Center),
|
|
9
|
+
verticalAlignment: typeSchema_1.verticalAlignmentSchema.optional().default(types_1.VerticalAlignment.Middle),
|
|
9
10
|
horizontalOffset: typeSchema_1.lengthSchema.optional(),
|
|
10
11
|
verticalOffset: typeSchema_1.lengthSchema.optional(),
|
|
11
12
|
opacity: zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stampSchema.js","sourceRoot":"","sources":["stampSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,6CAMsB;
|
|
1
|
+
{"version":3,"file":"stampSchema.js","sourceRoot":"","sources":["stampSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,6CAMsB;AAEtB,8CAA0E;AAE7D,QAAA,sBAAsB,GAAG,OAA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,EAAE;IACb,WAAW,EAAE,8BAAiB,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAA;AAEW,QAAA,sBAAsB,GAAgC,8BAAsB,CAAC,MAAM,CAAC;IAC/F,MAAM,EAAE,OAAC;SACN,OAAO,EAAE;SACT,QAAQ,EAAE;IACb,QAAQ,EAAE,OAAC;SACR,OAAO,EAAE;SACT,QAAQ,EAAE;IACb,WAAW,EAAE,OAAC;SACX,OAAO,EAAE;SACT,QAAQ,EAAE;IACb,eAAe,EAAE,OAAC;SACf,OAAO,EAAE;SACT,QAAQ,EAAE;IACb,UAAU,EAAE,OAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;IACb,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,QAAQ,EAAE;IACb,aAAa,EAAE,OAAC;SACb,OAAO,EAAE;SACT,QAAQ,EAAE;IACb,SAAS,EAAE,OAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;IACb,eAAe,EAAE,OAAC;SACf,MAAM,EAAE;SACR,QAAQ,EAAE;CACd,CAAC,CAAA"}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { z } from "zod"
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
barcodeTypeSchema,
|
|
4
|
+
cssMediaTypeSchema,
|
|
5
|
+
horizontalAlignmentSchema,
|
|
6
|
+
lengthSchema,
|
|
7
|
+
verticalAlignmentSchema,
|
|
8
8
|
} from "./typeSchema";
|
|
9
9
|
import {BarcodeStampOptions, TextStampOptions} from "../../public/stamp";
|
|
10
|
+
import {HorizontalAlignment, VerticalAlignment} from "../../public/types";
|
|
10
11
|
|
|
11
12
|
export const baseStampOptionsSchema = z.object({
|
|
12
|
-
horizontalAlignment: horizontalAlignmentSchema,
|
|
13
|
-
verticalAlignment: verticalAlignmentSchema,
|
|
13
|
+
horizontalAlignment: horizontalAlignmentSchema.optional().default(HorizontalAlignment.Center),
|
|
14
|
+
verticalAlignment: verticalAlignmentSchema.optional().default(VerticalAlignment.Middle),
|
|
14
15
|
horizontalOffset: lengthSchema.optional(),
|
|
15
16
|
verticalOffset: lengthSchema.optional(),
|
|
16
17
|
opacity: z
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { HorizontalAlignment, VerticalAlignment, CssMediaType, FitToPaperModes, MeasurementUnit, UseMargins, ChromeGpuModes, ChangeTrackingModes, HtmlString, HtmlFilePath, ZipFilePath, PdfFilePath, UrlString, BarcodeType, PdfPageSelection, SaveOptions, Length, CropRectangle, MarginConfig, ImageFilePath, ImageBuffer, PdfPassword, PdfInput } from "../../public/types";
|
|
3
|
+
import { HorizontalAlignment, VerticalAlignment, CssMediaType, FitToPaperModes, MeasurementUnit, UseMargins, ChromeGpuModes, ChangeTrackingModes, HtmlString, HtmlFilePath, ZipFilePath, PdfFilePath, UrlString, BarcodeType, PdfPageSelection, SaveOptions, Length, CropRectangle, MarginConfig, ImageFilePath, ImageBuffer, PdfPassword, PdfInput, TableOfContentsTypes } from "../../public/types";
|
|
4
4
|
import { Buffer } from "buffer";
|
|
5
5
|
export declare const horizontalAlignmentSchema: z.ZodType<HorizontalAlignment>;
|
|
6
6
|
export declare const verticalAlignmentSchema: z.ZodType<VerticalAlignment>;
|
|
@@ -30,6 +30,7 @@ export declare const changeTrackingModesSchema: z.ZodType<ChangeTrackingModes>;
|
|
|
30
30
|
export declare const pdfInputSchema: z.ZodType<PdfInput>;
|
|
31
31
|
export declare const dateSchema: z.ZodType<Date>;
|
|
32
32
|
export declare const barcodeTypeSchema: z.ZodType<BarcodeType>;
|
|
33
|
+
export declare const tableOfContentsTypesSchema: z.ZodType<TableOfContentsTypes>;
|
|
33
34
|
export declare const stringArraySchema: z.ZodType<string[]>;
|
|
34
35
|
export declare const bufferArraySchema: z.ZodType<Buffer[]>;
|
|
35
36
|
export declare const numberSchema: z.ZodType<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeSchema.d.ts","sourceRoot":"","sources":["typeSchema.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACN,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,SAAS,EACT,WAAW,
|
|
1
|
+
{"version":3,"file":"typeSchema.d.ts","sourceRoot":"","sources":["typeSchema.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,EACN,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,UAAU,EACV,cAAc,EACd,mBAAmB,EACnB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,SAAS,EACT,WAAW,EACJ,gBAAgB,EAChB,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EACnG,oBAAoB,EAC3B,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAE9B,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAqC,CAAA;AAE1G,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAmC,CAAA;AAEpG,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,OAAO,CAAC,YAAY,CAA8B,CAAA;AAErF,eAAO,MAAM,qBAAqB,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAiC,CAAA;AAE9F,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAK7D,CAA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AE,CAAC,CAAC,OAAO,CAAC,UAAU,CAA4B,CAAA;AAE/E,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAGnD,CAAA;AAEF,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,CAAgC,CAAA;AAE3F,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAqC,CAAA;AAE1G,eAAO,MAAM,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAA+I,CAAA;AAE9L,eAAO,MAAM,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,IAAI,CAAsB,CAAA;AAE7D,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAA6B,CAAA;AAElF,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAsC,CAAA;AAE7G,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAuB,CAAA;AAEzE,eAAO,MAAM,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,CAAyB,CAAA;AAE3E,eAAO,MAAM,YAAY,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAc,CAAA;AAEzD,eAAO,MAAM,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAe,CAAA;AAE5D,eAAO,MAAM,eAAe,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,EAAC,MAAM,CAAC,CAAgC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mapStringSchema = exports.booleanSchema = exports.numberSchema = exports.bufferArraySchema = exports.stringArraySchema = exports.barcodeTypeSchema = exports.dateSchema = exports.pdfInputSchema = exports.changeTrackingModesSchema = exports.chromeGpuModesSchema = exports.pdfPasswordSchema = exports.useMarginsSchema = exports.imageBufferSchema = exports.bufferSchema = exports.imageFilePathSchema = exports.urlSchema = exports.stringSchema = exports.urlStringSchema = exports.htmlFilePathSchema = exports.htmlStringSchema = exports.zipFilePathSchema = exports.pdfFilePathSchema = exports.filePathSchema = exports.marginConfigSchema = exports.cropRectangleSchema = exports.lengthSchema = exports.saveOptionsSchema = exports.measurementUnitSchema = exports.pdfPageSelectionSchema = exports.fitToPaperModesSchema = exports.cssMediaTypeSchema = exports.verticalAlignmentSchema = exports.horizontalAlignmentSchema = void 0;
|
|
3
|
+
exports.mapStringSchema = exports.booleanSchema = exports.numberSchema = exports.bufferArraySchema = exports.stringArraySchema = exports.tableOfContentsTypesSchema = exports.barcodeTypeSchema = exports.dateSchema = exports.pdfInputSchema = exports.changeTrackingModesSchema = exports.chromeGpuModesSchema = exports.pdfPasswordSchema = exports.useMarginsSchema = exports.imageBufferSchema = exports.bufferSchema = exports.imageFilePathSchema = exports.urlSchema = exports.stringSchema = exports.urlStringSchema = exports.htmlFilePathSchema = exports.htmlStringSchema = exports.zipFilePathSchema = exports.pdfFilePathSchema = exports.filePathSchema = exports.marginConfigSchema = exports.cropRectangleSchema = exports.lengthSchema = exports.saveOptionsSchema = exports.measurementUnitSchema = exports.pdfPageSelectionSchema = exports.fitToPaperModesSchema = exports.cssMediaTypeSchema = exports.verticalAlignmentSchema = exports.horizontalAlignmentSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const types_1 = require("../../public/types");
|
|
6
6
|
const pdfDocumentSchema_1 = require("./pdfDocumentSchema");
|
|
@@ -66,6 +66,7 @@ exports.changeTrackingModesSchema = zod_1.z.nativeEnum(types_1.ChangeTrackingMod
|
|
|
66
66
|
exports.pdfInputSchema = zod_1.z.union([pdfDocumentSchema_1.pdfDocumentSchema, exports.bufferSchema, exports.htmlStringSchema, exports.htmlFilePathSchema, exports.zipFilePathSchema, exports.pdfFilePathSchema, exports.urlSchema, exports.urlStringSchema]);
|
|
67
67
|
exports.dateSchema = zod_1.z.instanceof(Date);
|
|
68
68
|
exports.barcodeTypeSchema = zod_1.z.nativeEnum(types_1.BarcodeType);
|
|
69
|
+
exports.tableOfContentsTypesSchema = zod_1.z.nativeEnum(types_1.TableOfContentsTypes);
|
|
69
70
|
exports.stringArraySchema = zod_1.z.array(zod_1.z.string());
|
|
70
71
|
exports.bufferArraySchema = zod_1.z.array(exports.bufferSchema);
|
|
71
72
|
exports.numberSchema = zod_1.z.number();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeSchema.js","sourceRoot":"","sources":["typeSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,
|
|
1
|
+
{"version":3,"file":"typeSchema.js","sourceRoot":"","sources":["typeSchema.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,8CAkB2B;AAC3B,2DAAsD;AACtD,mCAA8B;AAEjB,QAAA,yBAAyB,GAAmC,OAAC,CAAC,UAAU,CAAC,2BAAmB,CAAC,CAAA;AAE7F,QAAA,uBAAuB,GAAiC,OAAC,CAAC,UAAU,CAAC,yBAAiB,CAAC,CAAA;AAEvF,QAAA,kBAAkB,GAA4B,OAAC,CAAC,UAAU,CAAC,oBAAY,CAAC,CAAA;AAExE,QAAA,qBAAqB,GAA+B,OAAC,CAAC,UAAU,CAAC,uBAAe,CAAC,CAAA;AAEjF,QAAA,sBAAsB,GAAgC,OAAC,CAAC,KAAK,CAAC;IAC1E,OAAC,CAAC,MAAM,EAAE;IACV,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACnB,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAChB,OAAC,CAAC,SAAS,EAAE;CACb,CAAC,CAAA;AAEW,QAAA,qBAAqB,GAA+B,OAAC,CAAC,UAAU,CAAC,uBAAe,CAAC,CAAA;AAEjF,QAAA,iBAAiB,GAA2B,OAAC,CAAC,MAAM,CAAC;IAC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ErE,QAAA,0BAA0B,GAAoC,OAAC,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAA;AAEhG,QAAA,iBAAiB,GAAwB,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAA;AAE5D,QAAA,iBAAiB,GAAwB,OAAC,CAAC,KAAK,CAAC,oBAAY,CAAC,CAAA;AAE9D,QAAA,YAAY,GAAsB,OAAC,CAAC,MAAM,EAAE,CAAA;AAE5C,QAAA,aAAa,GAAuB,OAAC,CAAC,OAAO,EAAE,CAAA;AAE/C,QAAA,eAAe,GAAkC,OAAC,CAAC,GAAG,CAAC,OAAC,CAAC,MAAM,EAAE,EAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAA"}
|
|
@@ -14,8 +14,9 @@ import {
|
|
|
14
14
|
PdfFilePath,
|
|
15
15
|
UrlString,
|
|
16
16
|
BarcodeType,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
PdfPageSelection,
|
|
18
|
+
SaveOptions, Length, CropRectangle, MarginConfig, ImageFilePath, ImageBuffer, PdfPassword, PdfInput,
|
|
19
|
+
TableOfContentsTypes
|
|
19
20
|
} from "../../public/types"
|
|
20
21
|
import {pdfDocumentSchema} from "./pdfDocumentSchema";
|
|
21
22
|
import {Buffer} from "buffer";
|
|
@@ -109,6 +110,8 @@ export const dateSchema: z.ZodType<Date> = z.instanceof(Date)
|
|
|
109
110
|
|
|
110
111
|
export const barcodeTypeSchema: z.ZodType<BarcodeType> = z.nativeEnum(BarcodeType)
|
|
111
112
|
|
|
113
|
+
export const tableOfContentsTypesSchema: z.ZodType<TableOfContentsTypes> = z.nativeEnum(TableOfContentsTypes)
|
|
114
|
+
|
|
112
115
|
export const stringArraySchema: z.ZodType<string[]> = z.array(z.string())
|
|
113
116
|
|
|
114
117
|
export const bufferArraySchema: z.ZodType<Buffer[]> = z.array(bufferSchema)
|
|
@@ -48,6 +48,9 @@ export interface IronPdfConfig {
|
|
|
48
48
|
/**
|
|
49
49
|
* Removes watermarks. Get licensed at https://ironpdf.com/nodejs/licensing.
|
|
50
50
|
*
|
|
51
|
+
* For Node.js applications, a license key can alternatively be set using the environment variable IRONPDF_LICENSE_KEY.
|
|
52
|
+
* Priority: programmatic licenseKey > IRONPDF_LICENSE_KEY environment variable.
|
|
53
|
+
*
|
|
51
54
|
* For .Net framework applications, a license key can alternatively be added to Web.Config or App.Config XML file using
|
|
52
55
|
* <add key="IronPdf.LicenseKey" value="IRONPDF-LICENSE-KEY"/> within the appSettings tag. See
|
|
53
56
|
* https://ironpdf.com/nodejs/docs/license/license-keys/ for more details.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ironpdfglobalconfig.d.ts","sourceRoot":"","sources":["ironpdfglobalconfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,SAAS,CAAC;AAEvC;;;;GAIG;AACH,qBAAa,mBAAmB;IAC/B,OAAO,CAAC,MAAM,CAAC,SAAS,CAAsB;IAE9C,OAAO,CAAC,MAAM,CAAC,OAAO,CAKpB;IACF,OAAO;WASO,WAAW;IAIzB;;;;OAIG;WACW,SAAS,CAAC,aAAa,EAAE,aAAa;WAiBtC,SAAS,IAAI,aAAa;IAIxC,OAAc,oBAAoB,EAAE,MAAM,CAEU;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C;;;;;;;;OAQG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC
|
|
1
|
+
{"version":3,"file":"ironpdfglobalconfig.d.ts","sourceRoot":"","sources":["ironpdfglobalconfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,SAAS,CAAC;AAEvC;;;;GAIG;AACH,qBAAa,mBAAmB;IAC/B,OAAO,CAAC,MAAM,CAAC,SAAS,CAAsB;IAE9C,OAAO,CAAC,MAAM,CAAC,OAAO,CAKpB;IACF,OAAO;WASO,WAAW;IAIzB;;;;OAIG;WACW,SAAS,CAAC,aAAa,EAAE,aAAa;WAiBtC,SAAS,IAAI,aAAa;IAIxC,OAAc,oBAAoB,EAAE,MAAM,CAEU;CACpD;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B;;;OAGG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C;;;;;;;;OAQG;IACH,0BAA0B,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChD;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC;;;;;;;;;;;;;;;OAeG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACpC;;;OAGG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5C;;;OAGG;IACH,aAAa,CAAC,EAAC,cAAc,GAAG,SAAS,CAAC;IAC1C;;;;;;;OAOG;IACH,qBAAqB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC5C"}
|
|
@@ -88,6 +88,9 @@ export interface IronPdfConfig {
|
|
|
88
88
|
/**
|
|
89
89
|
* Removes watermarks. Get licensed at https://ironpdf.com/nodejs/licensing.
|
|
90
90
|
*
|
|
91
|
+
* For Node.js applications, a license key can alternatively be set using the environment variable IRONPDF_LICENSE_KEY.
|
|
92
|
+
* Priority: programmatic licenseKey > IRONPDF_LICENSE_KEY environment variable.
|
|
93
|
+
*
|
|
91
94
|
* For .Net framework applications, a license key can alternatively be added to Web.Config or App.Config XML file using
|
|
92
95
|
* <add key="IronPdf.LicenseKey" value="IRONPDF-LICENSE-KEY"/> within the appSettings tag. See
|
|
93
96
|
* https://ironpdf.com/nodejs/docs/license/license-keys/ for more details.
|
package/src/public/render.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PdfPaperOrientation, PdfPaperSize } from "./paper";
|
|
2
2
|
import { HtmlAffix, TextAffix } from "./affix";
|
|
3
|
-
import { CssMediaType, FitToPaperModes, MarginConfig, UseMargins } from "./types";
|
|
3
|
+
import { CssMediaType, FitToPaperModes, MarginConfig, UseMargins, TableOfContentsTypes } from "./types";
|
|
4
4
|
/**
|
|
5
5
|
* Html or Url To PDF output options for {@link PdfGenerator} and {@link PdfDocument} static method.
|
|
6
6
|
* Specify options such as Paper-Size, DPI and other Chromium specific browser setup options.
|
|
@@ -88,6 +88,10 @@ export interface ChromePdfRenderOptions {
|
|
|
88
88
|
cssMediaType?: CssMediaType | undefined;
|
|
89
89
|
javascript?: string | undefined;
|
|
90
90
|
firstPageNumber?: number | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Include a table of contents generated from heading elements.
|
|
93
|
+
*/
|
|
94
|
+
tableOfContents?: TableOfContentsTypes | undefined;
|
|
91
95
|
htmlHeader?: HtmlAffix | undefined;
|
|
92
96
|
htmlFooter?: HtmlAffix | undefined;
|
|
93
97
|
textHeader?: TextAffix | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,mBAAmB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["render.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,mBAAmB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,SA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GAAG,SAAS,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IACnC,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC;IAC/B;;;OAGG;IACH,WAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,WAAW,CAAC,QAAQ,CAAC;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACxC,IAAI,EAAE,WAAW,CAAC,WAAW,CAAC;IAC9B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,WAAY,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,wBAAgB,6BAA6B,IAAI,sBAAsB,CAqBtE;AAED;;;GAGG;AACH,MAAM,WAAW,oBAAoB;IACpC;;;OAGG;IACH,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,cAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,gBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,gBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACvC"}
|
package/src/public/render.js
CHANGED
|
@@ -21,6 +21,7 @@ function defaultChromePdfRenderOptions() {
|
|
|
21
21
|
cssMediaType: types_1.CssMediaType.Print,
|
|
22
22
|
enableJavaScript: true,
|
|
23
23
|
firstPageNumber: 1,
|
|
24
|
+
tableOfContents: types_1.TableOfContentsTypes.None,
|
|
24
25
|
fitToPaperMode: types_1.FitToPaperModes.Default,
|
|
25
26
|
grayScale: false,
|
|
26
27
|
inputEncoding: "utf-8",
|
package/src/public/render.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.js","sourceRoot":"","sources":["render.ts"],"names":[],"mappings":";;;AAAA,mCAAuE;AAEvE,
|
|
1
|
+
{"version":3,"file":"render.js","sourceRoot":"","sources":["render.ts"],"names":[],"mappings":";;;AAAA,mCAAuE;AAEvE,mCAMiB;AAwHjB;;GAEG;AACH,IAAY,WAQX;AARD,WAAY,WAAW;IACtB,oCAAqB,CAAA;IACrB,wCAAyB,CAAA;IACzB,0CAA2B,CAAA;IAC3B,4CAA6B,CAAA;IAC7B,4CAA6B,CAAA;IAC7B,4CAA6B,CAAA;IAC7B,0CAA2B,CAAA;AAC5B,CAAC,EARW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAQtB;AAiGD,SAAgB,6BAA6B;IACrC,OAAO;QACC,YAAY,EAAE,oBAAY,CAAC,KAAK;QAChC,gBAAgB,EAAE,IAAI;QACtB,eAAe,EAAE,CAAC;QAClB,eAAe,EAAE,4BAAoB,CAAC,IAAI;QAC1C,cAAc,EAAE,uBAAe,CAAC,OAAO;QACrD,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,OAAO;QACtB,MAAM,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;QAChD,SAAS,EAAE,iBAAS,CAAC,EAAE;QACvB,gBAAgB,EAAE,2BAAmB,CAAC,QAAQ;QAC9C,oBAAoB,EAAE,IAAI;QAC1B,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,CAAC,WAAW,EAAE,KAAK,EAAE,EAAE,EAAE;QACrD,uBAAuB;QACvB,wBAAwB;QACxB,aAAa;QACb,sBAAsB,EAAE,IAAI;QACd,YAAY,EAAE,EAAE;QAChB,2BAA2B,EAAE,kBAAU,CAAC,GAAG;KAClD,CAAC;AACV,CAAC;AArBD,sEAqBC"}
|
package/src/public/render.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PaperSize, PdfPaperOrientation, PdfPaperSize } from "./paper";
|
|
2
2
|
import { HtmlAffix, TextAffix } from "./affix";
|
|
3
3
|
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
CssMediaType,
|
|
5
|
+
FitToPaperModes,
|
|
6
|
+
MarginConfig,
|
|
7
|
+
UseMargins,
|
|
8
|
+
TableOfContentsTypes,
|
|
8
9
|
} from "./types";
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -26,7 +27,7 @@ export interface ChromePdfRenderOptions {
|
|
|
26
27
|
*
|
|
27
28
|
* @default undefined
|
|
28
29
|
*/
|
|
29
|
-
|
|
30
|
+
customCssUrl ?: string | undefined;
|
|
30
31
|
/**
|
|
31
32
|
* Enables JavaScript and Json to be executed before the page is rendered.
|
|
32
33
|
*
|
|
@@ -98,6 +99,10 @@ export interface ChromePdfRenderOptions {
|
|
|
98
99
|
cssMediaType?: CssMediaType | undefined;
|
|
99
100
|
javascript ?: string | undefined;
|
|
100
101
|
firstPageNumber ?: number | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* Include a table of contents generated from heading elements.
|
|
104
|
+
*/
|
|
105
|
+
tableOfContents?: TableOfContentsTypes | undefined;
|
|
101
106
|
htmlHeader?: HtmlAffix | undefined;
|
|
102
107
|
htmlFooter?: HtmlAffix | undefined;
|
|
103
108
|
textHeader?: TextAffix | undefined;
|
|
@@ -230,11 +235,12 @@ export interface WaitForHtmlQuerySelector {
|
|
|
230
235
|
}
|
|
231
236
|
|
|
232
237
|
export function defaultChromePdfRenderOptions(): ChromePdfRenderOptions {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
+
return {
|
|
239
|
+
cssMediaType: CssMediaType.Print,
|
|
240
|
+
enableJavaScript: true,
|
|
241
|
+
firstPageNumber: 1,
|
|
242
|
+
tableOfContents: TableOfContentsTypes.None,
|
|
243
|
+
fitToPaperMode: FitToPaperModes.Default,
|
|
238
244
|
grayScale: false,
|
|
239
245
|
inputEncoding: "utf-8",
|
|
240
246
|
margin: { default: 0.38, top: 0.39, left: 0.39 },
|
|
@@ -246,9 +252,9 @@ export function defaultChromePdfRenderOptions(): ChromePdfRenderOptions {
|
|
|
246
252
|
// viewPortHeight: 1024,
|
|
247
253
|
// zoom: 100,
|
|
248
254
|
createPdfFormsFromHtml: true,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
255
|
+
customCssUrl: "",
|
|
256
|
+
useMarginsOnHeaderAndFooter: UseMargins.All,
|
|
257
|
+
};
|
|
252
258
|
}
|
|
253
259
|
|
|
254
260
|
/**
|
package/src/public/stamp.d.ts
CHANGED
|
@@ -87,12 +87,16 @@ export interface TextStampOptions extends BaseStampOptions {
|
|
|
87
87
|
export interface BaseStampOptions {
|
|
88
88
|
/**
|
|
89
89
|
* The horizontal alignment of the stamp relative to the page.
|
|
90
|
+
*
|
|
91
|
+
* @default {@link HorizontalAlignment.Center}
|
|
90
92
|
*/
|
|
91
|
-
horizontalAlignment
|
|
93
|
+
horizontalAlignment?: HorizontalAlignment | undefined;
|
|
92
94
|
/**
|
|
93
95
|
* The vertical alignment of the stamp relative to the page.
|
|
96
|
+
*
|
|
97
|
+
* @default {@link VerticalAlignment.Middle}
|
|
94
98
|
*/
|
|
95
|
-
verticalAlignment
|
|
99
|
+
verticalAlignment?: VerticalAlignment | undefined;
|
|
96
100
|
/**
|
|
97
101
|
* The horizontal offset.
|
|
98
102
|
* Value of 0 has no effect. Positive indicates an offset to the right direction.
|
|
@@ -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,GAAG,SAAS,CAAC;CACxC;AAED;;GAEG;AACH,oBAAY,iBAAiB,GAAG,gBAAgB,CAAC;AAEjD;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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.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stamp.js","sourceRoot":"","sources":["stamp.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"stamp.js","sourceRoot":"","sources":["stamp.ts"],"names":[],"mappings":";;;AAyMA;;;GAGG;AACH,IAAY,WAqBX;AArBD,WAAY,WAAW;IACtB;;;;OAIG;IACH,oDAAY,CAAA;IACZ;;;;OAIG;IACH,iDAAU,CAAA;IACV;;;;;;OAMG;IACH,sDAAe,CAAA;AAChB,CAAC,EArBW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAqBtB"}
|
package/src/public/stamp.ts
CHANGED
|
@@ -100,14 +100,18 @@ export interface TextStampOptions extends BaseStampOptions {
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
export interface BaseStampOptions {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
103
|
+
/**
|
|
104
|
+
* The horizontal alignment of the stamp relative to the page.
|
|
105
|
+
*
|
|
106
|
+
* @default {@link HorizontalAlignment.Center}
|
|
107
|
+
*/
|
|
108
|
+
horizontalAlignment?: HorizontalAlignment | undefined;
|
|
109
|
+
/**
|
|
110
|
+
* The vertical alignment of the stamp relative to the page.
|
|
111
|
+
*
|
|
112
|
+
* @default {@link VerticalAlignment.Middle}
|
|
113
|
+
*/
|
|
114
|
+
verticalAlignment?: VerticalAlignment | undefined;
|
|
111
115
|
/**
|
|
112
116
|
* The horizontal offset.
|
|
113
117
|
* Value of 0 has no effect. Positive indicates an offset to the right direction.
|