@ironsoftware/ironpdf 2024.2.1 → 2024.4.2
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 +4 -3
- package/src/internal/IronPdfEngine.ProtoFiles/chrome_render.proto +2 -1
- package/src/internal/IronPdfEngine.ProtoFiles/iron_pdf_service.proto +1 -0
- package/src/internal/IronPdfEngine.ProtoFiles/pdfium_signature.proto +1 -0
- package/src/internal/IronPdfEngine.ProtoFiles/pdfium_text.proto +7 -0
- package/src/internal/generated_proto/iron_pdf_service.d.ts +1 -0
- package/src/internal/generated_proto/iron_pdf_service.d.ts.map +1 -1
- package/src/internal/generated_proto/iron_pdf_service.ts +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/ChromeTextHeaderFooterP.d.ts +3 -3
- package/src/internal/generated_proto/ironpdfengineproto/ChromeTextHeaderFooterP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/ChromeTextHeaderFooterP.ts +3 -3
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts +11 -0
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.ts +13 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumRedactTextRequestP.d.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumRedactTextRequestP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumRedactTextRequestP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumRedactTextRequestP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumRedactTextRequestP.ts +17 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumSignRequestStreamP.d.ts +3 -0
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumSignRequestStreamP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/PdfiumSignRequestStreamP.ts +3 -0
- package/src/internal/grpc_layer/chrome/stamp.d.ts +3 -3
- package/src/internal/grpc_layer/chrome/stamp.d.ts.map +1 -1
- package/src/internal/grpc_layer/chrome/stamp.js +3 -3
- package/src/internal/grpc_layer/chrome/stamp.js.map +1 -1
- package/src/internal/grpc_layer/chrome/stamp.ts +6 -6
- package/src/internal/grpc_layer/pdfium/page.d.ts +1 -1
- package/src/internal/grpc_layer/pdfium/page.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/page.js +1 -1
- package/src/internal/grpc_layer/pdfium/page.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/page.ts +2 -3
- package/src/internal/zod/affixSchema.d.ts +6 -0
- package/src/internal/zod/affixSchema.d.ts.map +1 -0
- package/src/internal/zod/affixSchema.js +36 -0
- package/src/internal/zod/affixSchema.js.map +1 -0
- package/src/internal/zod/affixSchema.ts +35 -0
- package/src/internal/zod/imageSchema.d.ts +6 -0
- package/src/internal/zod/imageSchema.d.ts.map +1 -0
- package/src/internal/zod/imageSchema.js +13 -0
- package/src/internal/zod/imageSchema.js.map +1 -0
- package/src/internal/zod/imageSchema.ts +18 -0
- package/src/internal/zod/ironpdfglobalconfigSchema.d.ts +4 -0
- package/src/internal/zod/ironpdfglobalconfigSchema.d.ts.map +1 -0
- package/src/internal/zod/ironpdfglobalconfigSchema.js +34 -0
- package/src/internal/zod/ironpdfglobalconfigSchema.js.map +1 -0
- package/src/internal/zod/ironpdfglobalconfigSchema.ts +32 -0
- package/src/internal/zod/pageSchema.d.ts +5 -0
- package/src/internal/zod/pageSchema.d.ts.map +1 -0
- package/src/internal/zod/pageSchema.js +18 -0
- package/src/internal/zod/pageSchema.js.map +1 -0
- package/src/internal/zod/pageSchema.ts +17 -0
- package/src/internal/zod/paperSchema.d.ts +8 -0
- package/src/internal/zod/paperSchema.d.ts.map +1 -0
- package/src/internal/zod/paperSchema.js +18 -0
- package/src/internal/zod/paperSchema.js.map +1 -0
- package/src/internal/zod/paperSchema.ts +22 -0
- package/src/internal/zod/pdfDocumentSchema.d.ts +4 -0
- package/src/internal/zod/pdfDocumentSchema.d.ts.map +1 -0
- package/src/internal/zod/pdfDocumentSchema.js +7 -0
- package/src/internal/zod/pdfDocumentSchema.js.map +1 -0
- package/src/internal/zod/pdfDocumentSchema.ts +6 -0
- package/src/internal/zod/renderSchema.d.ts +14 -0
- package/src/internal/zod/renderSchema.d.ts.map +1 -0
- package/src/internal/zod/renderSchema.js +88 -0
- package/src/internal/zod/renderSchema.js.map +1 -0
- package/src/internal/zod/renderSchema.ts +107 -0
- package/src/internal/zod/securitySchema.d.ts +4 -0
- package/src/internal/zod/securitySchema.d.ts.map +1 -0
- package/src/internal/zod/securitySchema.js +17 -0
- package/src/internal/zod/securitySchema.js.map +1 -0
- package/src/internal/zod/securitySchema.ts +15 -0
- package/src/internal/zod/signatureSchema.d.ts +5 -0
- package/src/internal/zod/signatureSchema.d.ts.map +1 -0
- package/src/internal/zod/signatureSchema.js +22 -0
- package/src/internal/zod/signatureSchema.js.map +1 -0
- package/src/internal/zod/signatureSchema.ts +22 -0
- package/src/internal/zod/stampSchema.d.ts +155 -0
- package/src/internal/zod/stampSchema.d.ts.map +1 -0
- package/src/internal/zod/stampSchema.js +79 -0
- package/src/internal/zod/stampSchema.js.map +1 -0
- package/src/internal/zod/stampSchema.ts +87 -0
- package/src/internal/zod/typeSchema.d.ts +38 -0
- package/src/internal/zod/typeSchema.d.ts.map +1 -0
- package/src/internal/zod/typeSchema.js +74 -0
- package/src/internal/zod/typeSchema.js.map +1 -0
- package/src/internal/zod/typeSchema.ts +120 -0
- package/src/public/affix.d.ts +5 -5
- package/src/public/affix.ts +5 -5
- package/src/public/image.d.ts +1 -9
- package/src/public/image.d.ts.map +1 -1
- package/src/public/image.js.map +1 -1
- package/src/public/image.ts +1 -9
- package/src/public/ironpdfglobalconfig.d.ts +8 -8
- package/src/public/ironpdfglobalconfig.ts +8 -8
- package/src/public/pdfDocument.d.ts +354 -43
- package/src/public/pdfDocument.d.ts.map +1 -1
- package/src/public/pdfDocument.js +835 -150
- package/src/public/pdfDocument.js.map +1 -1
- package/src/public/pdfDocument.ts +1125 -197
- package/src/public/pdfGenerator.d.ts +4 -4
- package/src/public/pdfGenerator.ts +4 -4
- package/src/public/render.d.ts +5 -5
- package/src/public/render.ts +5 -5
- package/src/public/stamp.d.ts +10 -10
- package/src/public/stamp.ts +11 -11
- package/src/public/types.d.ts +7 -7
- package/src/public/types.d.ts.map +1 -1
- package/src/public/types.js.map +1 -1
- package/src/public/types.ts +7 -8
|
@@ -12,7 +12,7 @@ export declare class PdfGenerator {
|
|
|
12
12
|
static htmlToPdf(htmlStringOrHtmlFilePath: string, options?: {
|
|
13
13
|
/**
|
|
14
14
|
* Apply renderOptions if PdfInput is a {@link HtmlString} or {@link HtmlFilePath} or {@link ZipFilePath} or {@link Url}}
|
|
15
|
-
* @default
|
|
15
|
+
* @default undefined
|
|
16
16
|
*/
|
|
17
17
|
renderOptions?: ChromePdfRenderOptions;
|
|
18
18
|
}): Promise<PdfDocument>;
|
|
@@ -24,7 +24,7 @@ export declare class PdfGenerator {
|
|
|
24
24
|
static urlToPdf(url: URL | string, options?: {
|
|
25
25
|
/**
|
|
26
26
|
* Apply renderOptions if PdfInput is a {@link HtmlString} or {@link HtmlFilePath} or {@link ZipFilePath} or {@link Url}}
|
|
27
|
-
* @default
|
|
27
|
+
* @default undefined
|
|
28
28
|
*/
|
|
29
29
|
renderOptions?: ChromePdfRenderOptions;
|
|
30
30
|
}): Promise<PdfDocument>;
|
|
@@ -45,7 +45,7 @@ export declare class PdfGenerator {
|
|
|
45
45
|
static htmlZipFileToPdf(zipFilePath: string, options?: {
|
|
46
46
|
/**
|
|
47
47
|
* Apply renderOptions if PdfInput is a {@link HtmlString} or {@link HtmlFilePath} or {@link ZipFilePath} or {@link Url}}
|
|
48
|
-
* @default
|
|
48
|
+
* @default undefined
|
|
49
49
|
*/
|
|
50
50
|
renderOptions?: ChromePdfRenderOptions;
|
|
51
51
|
mainHtmlFile?: string;
|
|
@@ -60,7 +60,7 @@ export declare class PdfGenerator {
|
|
|
60
60
|
static imageToPdf(images: ImageFilePath | ImageFilePath[] | ImageBuffer | ImageBuffer[], options?: {
|
|
61
61
|
/**
|
|
62
62
|
* Apply renderOptions if PdfInput is a {@link HtmlString} or {@link HtmlFilePath} or {@link ZipFilePath} or {@link Url}}
|
|
63
|
-
* @default
|
|
63
|
+
* @default undefined
|
|
64
64
|
*/
|
|
65
65
|
imageToPdfOptions?: ImageToPdfOptions;
|
|
66
66
|
}): Promise<PdfDocument>;
|
|
@@ -21,7 +21,7 @@ export class PdfGenerator {
|
|
|
21
21
|
options?: {
|
|
22
22
|
/**
|
|
23
23
|
* Apply renderOptions if PdfInput is a {@link HtmlString} or {@link HtmlFilePath} or {@link ZipFilePath} or {@link Url}}
|
|
24
|
-
* @default
|
|
24
|
+
* @default undefined
|
|
25
25
|
*/
|
|
26
26
|
renderOptions?: ChromePdfRenderOptions;
|
|
27
27
|
}
|
|
@@ -38,7 +38,7 @@ export class PdfGenerator {
|
|
|
38
38
|
options?: {
|
|
39
39
|
/**
|
|
40
40
|
* Apply renderOptions if PdfInput is a {@link HtmlString} or {@link HtmlFilePath} or {@link ZipFilePath} or {@link Url}}
|
|
41
|
-
* @default
|
|
41
|
+
* @default undefined
|
|
42
42
|
*/
|
|
43
43
|
renderOptions?: ChromePdfRenderOptions;
|
|
44
44
|
}
|
|
@@ -65,7 +65,7 @@ export class PdfGenerator {
|
|
|
65
65
|
options?: {
|
|
66
66
|
/**
|
|
67
67
|
* Apply renderOptions if PdfInput is a {@link HtmlString} or {@link HtmlFilePath} or {@link ZipFilePath} or {@link Url}}
|
|
68
|
-
* @default
|
|
68
|
+
* @default undefined
|
|
69
69
|
*/
|
|
70
70
|
renderOptions?: ChromePdfRenderOptions;
|
|
71
71
|
mainHtmlFile?: string;
|
|
@@ -86,7 +86,7 @@ export class PdfGenerator {
|
|
|
86
86
|
options?: {
|
|
87
87
|
/**
|
|
88
88
|
* Apply renderOptions if PdfInput is a {@link HtmlString} or {@link HtmlFilePath} or {@link ZipFilePath} or {@link Url}}
|
|
89
|
-
* @default
|
|
89
|
+
* @default undefined
|
|
90
90
|
*/
|
|
91
91
|
imageToPdfOptions?: ImageToPdfOptions;
|
|
92
92
|
}
|
package/src/public/render.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export interface ChromePdfRenderOptions {
|
|
|
9
9
|
/**
|
|
10
10
|
* Is create pdf forms from html. Turns all Html forms elements into editable PDF forms.
|
|
11
11
|
*
|
|
12
|
-
* @default
|
|
12
|
+
* @default true
|
|
13
13
|
*/
|
|
14
14
|
createPdfFormsFromHtml?: boolean;
|
|
15
15
|
/**
|
|
@@ -17,7 +17,7 @@ export interface ChromePdfRenderOptions {
|
|
|
17
17
|
*
|
|
18
18
|
* Maybe a local file path or remote url.
|
|
19
19
|
*
|
|
20
|
-
* @default
|
|
20
|
+
* @default undefined
|
|
21
21
|
*/
|
|
22
22
|
customCssUrl?: string;
|
|
23
23
|
/**
|
|
@@ -25,7 +25,7 @@ export interface ChromePdfRenderOptions {
|
|
|
25
25
|
*
|
|
26
26
|
* Ideal for printing from Ajax / Angular Applications. <p>Also see {@link waitFor}
|
|
27
27
|
*
|
|
28
|
-
* @default
|
|
28
|
+
* @default true
|
|
29
29
|
*/
|
|
30
30
|
enableJavaScript?: boolean;
|
|
31
31
|
/**
|
|
@@ -40,7 +40,7 @@ export interface ChromePdfRenderOptions {
|
|
|
40
40
|
/**
|
|
41
41
|
* Outputs a black-and-white PDF
|
|
42
42
|
*
|
|
43
|
-
* @default
|
|
43
|
+
* @default false
|
|
44
44
|
*/
|
|
45
45
|
grayScale?: boolean;
|
|
46
46
|
/**
|
|
@@ -66,7 +66,7 @@ export interface ChromePdfRenderOptions {
|
|
|
66
66
|
/**
|
|
67
67
|
* Prints background-colors and images from Html.
|
|
68
68
|
*
|
|
69
|
-
* @default
|
|
69
|
+
* @default true
|
|
70
70
|
*/
|
|
71
71
|
printHtmlBackgrounds?: boolean;
|
|
72
72
|
/**
|
package/src/public/render.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface ChromePdfRenderOptions {
|
|
|
16
16
|
/**
|
|
17
17
|
* Is create pdf forms from html. Turns all Html forms elements into editable PDF forms.
|
|
18
18
|
*
|
|
19
|
-
* @default
|
|
19
|
+
* @default true
|
|
20
20
|
*/
|
|
21
21
|
createPdfFormsFromHtml?: boolean;
|
|
22
22
|
/**
|
|
@@ -24,7 +24,7 @@ export interface ChromePdfRenderOptions {
|
|
|
24
24
|
*
|
|
25
25
|
* Maybe a local file path or remote url.
|
|
26
26
|
*
|
|
27
|
-
* @default
|
|
27
|
+
* @default undefined
|
|
28
28
|
*/
|
|
29
29
|
customCssUrl?: string;
|
|
30
30
|
/**
|
|
@@ -32,7 +32,7 @@ export interface ChromePdfRenderOptions {
|
|
|
32
32
|
*
|
|
33
33
|
* Ideal for printing from Ajax / Angular Applications. <p>Also see {@link waitFor}
|
|
34
34
|
*
|
|
35
|
-
* @default
|
|
35
|
+
* @default true
|
|
36
36
|
*/
|
|
37
37
|
enableJavaScript?: boolean;
|
|
38
38
|
/**
|
|
@@ -47,7 +47,7 @@ export interface ChromePdfRenderOptions {
|
|
|
47
47
|
/**
|
|
48
48
|
* Outputs a black-and-white PDF
|
|
49
49
|
*
|
|
50
|
-
* @default
|
|
50
|
+
* @default false
|
|
51
51
|
*/
|
|
52
52
|
grayScale?: boolean;
|
|
53
53
|
/**
|
|
@@ -73,7 +73,7 @@ export interface ChromePdfRenderOptions {
|
|
|
73
73
|
/**
|
|
74
74
|
* Prints background-colors and images from Html.
|
|
75
75
|
*
|
|
76
|
-
* @default
|
|
76
|
+
* @default true
|
|
77
77
|
*/
|
|
78
78
|
printHtmlBackgrounds?: boolean;
|
|
79
79
|
/**
|
package/src/public/stamp.d.ts
CHANGED
|
@@ -44,43 +44,43 @@ export interface BarcodeStampOptions extends BaseStampOptions {
|
|
|
44
44
|
*/
|
|
45
45
|
export interface TextStampOptions extends BaseStampOptions {
|
|
46
46
|
/**
|
|
47
|
-
* @default
|
|
47
|
+
* @default false
|
|
48
48
|
*/
|
|
49
49
|
isBold?: boolean;
|
|
50
50
|
/**
|
|
51
|
-
* @default
|
|
51
|
+
* @default false
|
|
52
52
|
*/
|
|
53
53
|
isItalic?: boolean;
|
|
54
54
|
/**
|
|
55
|
-
* @default
|
|
55
|
+
* @default false
|
|
56
56
|
*/
|
|
57
57
|
isUnderline?: boolean;
|
|
58
58
|
/**
|
|
59
|
-
* @default
|
|
59
|
+
* @default false
|
|
60
60
|
*/
|
|
61
61
|
isStrikethrough?: boolean;
|
|
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
|
-
* @default
|
|
66
|
+
* @default Arial
|
|
67
67
|
*/
|
|
68
68
|
fontFamily?: string;
|
|
69
69
|
/**
|
|
70
|
-
* @default
|
|
70
|
+
* @default 12
|
|
71
71
|
*/
|
|
72
72
|
fontSize?: number;
|
|
73
73
|
/**
|
|
74
74
|
* Must be set to true, when using {@link TextStampOptions.fontFamily} from https://fonts.google.com/ as a web font
|
|
75
|
-
* @default
|
|
75
|
+
* @default false
|
|
76
76
|
*/
|
|
77
77
|
useGoogleFont?: boolean;
|
|
78
78
|
/**
|
|
79
|
-
* @default
|
|
79
|
+
* @default #000000
|
|
80
80
|
*/
|
|
81
81
|
textColor?: string;
|
|
82
82
|
/**
|
|
83
|
-
* @default
|
|
83
|
+
* @default #00FFFFFF
|
|
84
84
|
*/
|
|
85
85
|
backgroundColor?: string;
|
|
86
86
|
}
|
|
@@ -125,7 +125,7 @@ export interface BaseStampOptions {
|
|
|
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
|
-
* @default
|
|
128
|
+
* @default undefined
|
|
129
129
|
*/
|
|
130
130
|
hyperlink?: string;
|
|
131
131
|
/**
|
package/src/public/stamp.ts
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
export interface HtmlStampOptions extends BaseStampOptions {
|
|
12
12
|
// /**
|
|
13
13
|
// * The HTML base URL for which references to external CSS, Javascript and Image files will be relative.
|
|
14
|
-
// * @default
|
|
14
|
+
// * @default undefined
|
|
15
15
|
// */
|
|
16
16
|
// baseUrl?: string; //not supported
|
|
17
17
|
/**
|
|
@@ -58,43 +58,43 @@ export interface BarcodeStampOptions extends BaseStampOptions {
|
|
|
58
58
|
*/
|
|
59
59
|
export interface TextStampOptions extends BaseStampOptions {
|
|
60
60
|
/**
|
|
61
|
-
* @default
|
|
61
|
+
* @default false
|
|
62
62
|
*/
|
|
63
63
|
isBold?: boolean;
|
|
64
64
|
/**
|
|
65
|
-
* @default
|
|
65
|
+
* @default false
|
|
66
66
|
*/
|
|
67
67
|
isItalic?: boolean;
|
|
68
68
|
/**
|
|
69
|
-
* @default
|
|
69
|
+
* @default false
|
|
70
70
|
*/
|
|
71
71
|
isUnderline?: boolean;
|
|
72
72
|
/**
|
|
73
|
-
* @default
|
|
73
|
+
* @default false
|
|
74
74
|
*/
|
|
75
75
|
isStrikethrough?: boolean;
|
|
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
|
-
* @default
|
|
80
|
+
* @default Arial
|
|
81
81
|
*/
|
|
82
82
|
fontFamily?: string;
|
|
83
83
|
/**
|
|
84
|
-
* @default
|
|
84
|
+
* @default 12
|
|
85
85
|
*/
|
|
86
86
|
fontSize?: number;
|
|
87
87
|
/**
|
|
88
88
|
* Must be set to true, when using {@link TextStampOptions.fontFamily} from https://fonts.google.com/ as a web font
|
|
89
|
-
* @default
|
|
89
|
+
* @default false
|
|
90
90
|
*/
|
|
91
91
|
useGoogleFont?: boolean;
|
|
92
92
|
/**
|
|
93
|
-
* @default
|
|
93
|
+
* @default #000000
|
|
94
94
|
*/
|
|
95
95
|
textColor?: string;
|
|
96
96
|
/**
|
|
97
|
-
* @default
|
|
97
|
+
* @default #00FFFFFF
|
|
98
98
|
*/
|
|
99
99
|
backgroundColor?: string;
|
|
100
100
|
}
|
|
@@ -140,7 +140,7 @@ export interface BaseStampOptions {
|
|
|
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
|
-
* @default
|
|
143
|
+
* @default undefined
|
|
144
144
|
*/
|
|
145
145
|
hyperlink?: string;
|
|
146
146
|
/**
|
package/src/public/types.d.ts
CHANGED
|
@@ -116,33 +116,33 @@ export interface SaveOptions {
|
|
|
116
116
|
* Sets user password and enables 128Bit encryption of PDF content.
|
|
117
117
|
* A user password is a password that each user must enter to open or print the PDF document.
|
|
118
118
|
*
|
|
119
|
-
* @default
|
|
119
|
+
* @default undefined
|
|
120
120
|
*/
|
|
121
|
-
userPassword
|
|
121
|
+
userPassword?: string;
|
|
122
122
|
/**
|
|
123
123
|
* Sets owner password and enables 128Bit encryption of PDF content. An owner password is one
|
|
124
124
|
* used to enable and disable all other security settings.
|
|
125
125
|
* OwnerPassword must be set to a non-empty string value for {@link PdfDocument.setPermission},
|
|
126
126
|
*
|
|
127
|
-
* @default
|
|
127
|
+
* @default undefined
|
|
128
128
|
*/
|
|
129
129
|
ownerPassword?: string;
|
|
130
130
|
/**
|
|
131
131
|
* Convert the current document into the specified PDF-A standard format
|
|
132
132
|
*
|
|
133
|
-
* @default
|
|
133
|
+
* @default false
|
|
134
134
|
*/
|
|
135
135
|
saveAsPdfA?: boolean;
|
|
136
136
|
/**
|
|
137
137
|
* Signs the PDF with digital signature with advanced options.
|
|
138
|
-
* Note that the PDF will not be fully signed until Saved using {@link PdfDocument.saveAs}
|
|
138
|
+
* Note that the PDF will not be fully signed until Saved using {@link PdfDocument.saveAs}
|
|
139
139
|
*
|
|
140
|
-
* @default
|
|
140
|
+
* @default undefined
|
|
141
141
|
*/
|
|
142
142
|
/**
|
|
143
143
|
* Saves the PDF as byte array with changes appended to the end of the file.
|
|
144
144
|
*
|
|
145
|
-
* @default
|
|
145
|
+
* @default false
|
|
146
146
|
*/
|
|
147
147
|
incremental?: boolean;
|
|
148
148
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;
|
|
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;AAE3B;;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;IACf;;;;;;;OAOG;IACH,SAAS,IAAI;IACb;;;;;OAKG;IAC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AY,GACZ,WAAW,GACX,WAAW,GACX,GAAG,GACF,SAAS,CAAA;AAEb;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAElC;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC;AAE/B;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;GAEG;AACH,oBAAY,UAAU;IACrB,IAAI,IAAI;IACR,GAAG,IAAI;IACP,MAAM,IAAI;IACV,IAAI,IAAI;IACR,KAAK,IAAI;IACT,YAAY,IAAI;IAChB,YAAY,KAAK;IACjB,GAAG,KAAK;CACR;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IAAE,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5E;;;;;;GAMG;AACH,oBAAY,cAAc;IACzB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;CAC7B;AAED,oBAAY,mBAAmB;IAC9B,kBAAkB,IAAI;IACtB,oBAAoB,IAAI;IACxB,qBAAqB,IAAI;CACzB"}
|
package/src/public/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,0CAAwB;AACxB,0CAAwB;AACxB,wDAAsC;AACtC,yCAAuB;AACvB,0C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AgB,CAAA;IAChB,4DAAiB,CAAA;IACjB,0CAAQ,CAAA;AACT,CAAC,EATW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QASrB;AAOD;;;;;;GAMG;AACH,IAAY,cAKX;AALD,WAAY,cAAc;IACzB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,uCAAqB,CAAA;IACrB,+CAA6B,CAAA;AAC9B,CAAC,EALW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAKzB;AAED,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC9B,yFAAsB,CAAA;IACtB,6FAAwB,CAAA;IACxB,+FAAyB,CAAA;AAC1B,CAAC,EAJW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAI9B"}
|
package/src/public/types.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PdfDocument } from "./pdfDocument";
|
|
2
|
-
import { DigitalSignature } from "./signature";
|
|
3
2
|
export * from "./affix";
|
|
4
3
|
export * from "./image";
|
|
5
4
|
export * from "./ironpdfglobalconfig";
|
|
@@ -120,34 +119,34 @@ export interface SaveOptions {
|
|
|
120
119
|
* Sets user password and enables 128Bit encryption of PDF content.
|
|
121
120
|
* A user password is a password that each user must enter to open or print the PDF document.
|
|
122
121
|
*
|
|
123
|
-
* @default
|
|
122
|
+
* @default undefined
|
|
124
123
|
*/
|
|
125
|
-
userPassword
|
|
124
|
+
userPassword?: string;
|
|
126
125
|
/**
|
|
127
126
|
* Sets owner password and enables 128Bit encryption of PDF content. An owner password is one
|
|
128
127
|
* used to enable and disable all other security settings.
|
|
129
128
|
* OwnerPassword must be set to a non-empty string value for {@link PdfDocument.setPermission},
|
|
130
129
|
*
|
|
131
|
-
* @default
|
|
130
|
+
* @default undefined
|
|
132
131
|
*/
|
|
133
132
|
ownerPassword?: string;
|
|
134
133
|
/**
|
|
135
134
|
* Convert the current document into the specified PDF-A standard format
|
|
136
135
|
*
|
|
137
|
-
* @default
|
|
136
|
+
* @default false
|
|
138
137
|
*/
|
|
139
138
|
saveAsPdfA?: boolean;
|
|
140
139
|
/**
|
|
141
140
|
* Signs the PDF with digital signature with advanced options.
|
|
142
|
-
* Note that the PDF will not be fully signed until Saved using {@link PdfDocument.saveAs}
|
|
141
|
+
* Note that the PDF will not be fully signed until Saved using {@link PdfDocument.saveAs}
|
|
143
142
|
*
|
|
144
|
-
* @default
|
|
143
|
+
* @default undefined
|
|
145
144
|
*/
|
|
146
145
|
// digitalSignatures?: DigitalSignature[]; // not working yet
|
|
147
146
|
/**
|
|
148
147
|
* Saves the PDF as byte array with changes appended to the end of the file.
|
|
149
148
|
*
|
|
150
|
-
* @default
|
|
149
|
+
* @default false
|
|
151
150
|
*/
|
|
152
151
|
incremental?: boolean;
|
|
153
152
|
}
|