@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.
Files changed (131) hide show
  1. package/package.json +6 -3
  2. package/src/internal/IronPdfEngine.ProtoFiles/chrome_render.proto +1 -0
  3. package/src/internal/IronPdfEngine.ProtoFiles/iron_pdf_service.proto +2 -0
  4. package/src/internal/IronPdfEngine.ProtoFiles/pdfium_annotation.proto +9 -14
  5. package/src/internal/IronPdfEngine.ProtoFiles/pdfium_page.proto +13 -0
  6. package/src/internal/IronPdfEngine.ProtoFiles/pdfium_pdf_document.proto +13 -0
  7. package/src/internal/access.d.ts +2 -3
  8. package/src/internal/access.d.ts.map +1 -1
  9. package/src/internal/access.ts +0 -2
  10. package/src/internal/generated_proto/iron_pdf_service.d.ts +3 -0
  11. package/src/internal/generated_proto/iron_pdf_service.d.ts.map +1 -1
  12. package/src/internal/generated_proto/iron_pdf_service.ts +3 -0
  13. package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.d.ts +3 -0
  14. package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.d.ts.map +1 -1
  15. package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.ts +3 -0
  16. package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts +23 -0
  17. package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts.map +1 -1
  18. package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.ts +27 -0
  19. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddLinkAnnotationRequestP.d.ts +9 -8
  20. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddLinkAnnotationRequestP.d.ts.map +1 -1
  21. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddLinkAnnotationRequestP.ts +9 -8
  22. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageRequestP.d.ts +12 -0
  23. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageRequestP.d.ts.map +1 -0
  24. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageRequestP.js +4 -0
  25. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageRequestP.js.map +1 -0
  26. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageRequestP.ts +15 -0
  27. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageResultP.d.ts +11 -0
  28. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageResultP.d.ts.map +1 -0
  29. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageResultP.js +4 -0
  30. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageResultP.js.map +1 -0
  31. package/src/internal/generated_proto/ironpdfengineproto/PdfiumAddPageResultP.ts +14 -0
  32. package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.d.ts +12 -0
  33. package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.d.ts.map +1 -0
  34. package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.js +4 -0
  35. package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.js.map +1 -0
  36. package/src/internal/generated_proto/ironpdfengineproto/PdfiumConvertToPdfUAForScreenReaderRequestP.ts +15 -0
  37. package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFileToPdfARequestStreamP.d.ts +14 -0
  38. package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFileToPdfARequestStreamP.d.ts.map +1 -1
  39. package/src/internal/generated_proto/ironpdfengineproto/PdfiumEmbedFileToPdfARequestStreamP.ts +14 -0
  40. package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationP.d.ts +9 -8
  41. package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationP.d.ts.map +1 -1
  42. package/src/internal/generated_proto/ironpdfengineproto/PdfiumPdfAnnotationP.ts +9 -8
  43. package/src/internal/generated_proto/ironpdfengineproto/PdfiumTextAnnotationP.d.ts +4 -12
  44. package/src/internal/generated_proto/ironpdfengineproto/PdfiumTextAnnotationP.d.ts.map +1 -1
  45. package/src/internal/generated_proto/ironpdfengineproto/PdfiumTextAnnotationP.ts +4 -12
  46. package/src/internal/grpc_layer/chrome/converter.d.ts +23 -23
  47. package/src/internal/grpc_layer/chrome/converter.d.ts.map +1 -1
  48. package/src/internal/grpc_layer/chrome/converter.js +93 -102
  49. package/src/internal/grpc_layer/chrome/converter.js.map +1 -1
  50. package/src/internal/grpc_layer/chrome/converter.ts +140 -145
  51. package/src/internal/grpc_layer/chrome/render.d.ts +5 -5
  52. package/src/internal/grpc_layer/chrome/render.d.ts.map +1 -1
  53. package/src/internal/grpc_layer/chrome/render.js.map +1 -1
  54. package/src/internal/grpc_layer/chrome/render.ts +7 -7
  55. package/src/internal/grpc_layer/chrome/stamp.d.ts +16 -16
  56. package/src/internal/grpc_layer/chrome/stamp.d.ts.map +1 -1
  57. package/src/internal/grpc_layer/chrome/stamp.js.map +1 -1
  58. package/src/internal/grpc_layer/chrome/stamp.ts +16 -16
  59. package/src/internal/grpc_layer/handshake.js +1 -1
  60. package/src/internal/grpc_layer/handshake.js.map +1 -1
  61. package/src/internal/grpc_layer/handshake.ts +1 -1
  62. package/src/internal/grpc_layer/pdfium/converter.d.ts.map +1 -1
  63. package/src/internal/grpc_layer/pdfium/converter.js +3 -4
  64. package/src/internal/grpc_layer/pdfium/converter.js.map +1 -1
  65. package/src/internal/grpc_layer/pdfium/converter.ts +3 -4
  66. package/src/internal/grpc_layer/pdfium/headerFooter.d.ts.map +1 -1
  67. package/src/internal/grpc_layer/pdfium/headerFooter.js.map +1 -1
  68. package/src/internal/grpc_layer/pdfium/headerFooter.ts +0 -2
  69. package/src/internal/grpc_layer/pdfium/image.d.ts.map +1 -1
  70. package/src/internal/grpc_layer/pdfium/image.js +8 -5
  71. package/src/internal/grpc_layer/pdfium/image.js.map +1 -1
  72. package/src/internal/grpc_layer/pdfium/image.ts +9 -8
  73. package/src/internal/grpc_layer/pdfium/io.d.ts +5 -5
  74. package/src/internal/grpc_layer/pdfium/io.d.ts.map +1 -1
  75. package/src/internal/grpc_layer/pdfium/io.js +6 -5
  76. package/src/internal/grpc_layer/pdfium/io.js.map +1 -1
  77. package/src/internal/grpc_layer/pdfium/io.ts +5 -5
  78. package/src/internal/grpc_layer/pdfium/page.d.ts.map +1 -1
  79. package/src/internal/grpc_layer/pdfium/page.js +27 -21
  80. package/src/internal/grpc_layer/pdfium/page.js.map +1 -1
  81. package/src/internal/grpc_layer/pdfium/page.ts +32 -27
  82. package/src/internal/grpc_layer/pdfium/pdfa.d.ts.map +1 -1
  83. package/src/internal/grpc_layer/pdfium/pdfa.js.map +1 -1
  84. package/src/internal/grpc_layer/pdfium/pdfa.ts +0 -2
  85. package/src/internal/grpc_layer/pdfium/security.d.ts.map +1 -1
  86. package/src/internal/grpc_layer/pdfium/security.js +9 -6
  87. package/src/internal/grpc_layer/pdfium/security.js.map +1 -1
  88. package/src/internal/grpc_layer/pdfium/security.ts +6 -7
  89. package/src/internal/grpc_layer/pdfium/signing.js +15 -15
  90. package/src/internal/grpc_layer/pdfium/signing.js.map +1 -1
  91. package/src/internal/grpc_layer/pdfium/signing.ts +4 -4
  92. package/src/internal/grpc_layer/pdfium/text.d.ts.map +1 -1
  93. package/src/internal/grpc_layer/pdfium/text.js.map +1 -1
  94. package/src/internal/grpc_layer/pdfium/text.ts +0 -2
  95. package/src/internal/grpc_layer/util.d.ts +6 -6
  96. package/src/internal/grpc_layer/util.d.ts.map +1 -1
  97. package/src/internal/grpc_layer/util.js +25 -14
  98. package/src/internal/grpc_layer/util.js.map +1 -1
  99. package/src/internal/grpc_layer/util.ts +35 -17
  100. package/src/internal/zod/ironpdfglobalconfigSchema.d.ts.map +1 -1
  101. package/src/internal/zod/ironpdfglobalconfigSchema.ts +1 -1
  102. package/src/internal/zod/stampSchema.d.ts +6 -6
  103. package/src/public/affix.d.ts +11 -11
  104. package/src/public/affix.d.ts.map +1 -1
  105. package/src/public/affix.ts +12 -12
  106. package/src/public/ironpdfglobalconfig.d.ts +9 -9
  107. package/src/public/ironpdfglobalconfig.d.ts.map +1 -1
  108. package/src/public/ironpdfglobalconfig.ts +9 -9
  109. package/src/public/pdfDocument.d.ts +52 -52
  110. package/src/public/pdfDocument.d.ts.map +1 -1
  111. package/src/public/pdfDocument.js +21 -17
  112. package/src/public/pdfDocument.js.map +1 -1
  113. package/src/public/pdfDocument.ts +134 -138
  114. package/src/public/pdfGenerator.d.ts +1 -1
  115. package/src/public/pdfGenerator.d.ts.map +1 -1
  116. package/src/public/pdfGenerator.ts +1 -1
  117. package/src/public/render.d.ts +33 -33
  118. package/src/public/render.d.ts.map +1 -1
  119. package/src/public/render.ts +37 -37
  120. package/src/public/security.d.ts +10 -10
  121. package/src/public/security.d.ts.map +1 -1
  122. package/src/public/security.ts +10 -10
  123. package/src/public/signature.d.ts +12 -12
  124. package/src/public/signature.d.ts.map +1 -1
  125. package/src/public/signature.ts +12 -12
  126. package/src/public/stamp.d.ts +26 -26
  127. package/src/public/stamp.d.ts.map +1 -1
  128. package/src/public/stamp.ts +27 -27
  129. package/src/public/types.d.ts +15 -15
  130. package/src/public/types.d.ts.map +1 -1
  131. package/src/public/types.ts +14 -14
@@ -48,7 +48,7 @@ export declare class PdfGenerator {
48
48
  * @default undefined
49
49
  */
50
50
  renderOptions?: ChromePdfRenderOptions;
51
- mainHtmlFile?: string;
51
+ mainHtmlFile?: string | undefined;
52
52
  }): Promise<PdfDocument>;
53
53
  /**
54
54
  * Converts multiple image files to a PDF document. Each image creates 1 page which matches the image
@@ -1 +1 @@
1
- {"version":3,"file":"pdfGenerator.d.ts","sourceRoot":"","sources":["pdfGenerator.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,sBAAsB,EACtB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,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AY;IACxB;;;;OAIG;WACiB,SAAS,CAC5B,wBAAwB,EAAE,MAAM,EAChC,OAAO,CAAC,EAAE;QACT;;;WAGG;QACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;KACvC,GACC,OAAO,CAAC,WAAW,CAAC;IAGvB;;;;OAIG;WACiB,QAAQ,CAC3B,GAAG,EAAE,GAAG,GAAG,MAAM,EACjB,OAAO,CAAC,EAAE;QACT;;;WAGG;QACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;KACvC,GACC,OAAO,CAAC,WAAW,CAAC;IAIvB;;;;;;;;;;;;;OAaG;WACiB,gBAAgB,CACnC,WAAW,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE;QACT;;;WAGG;QACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;QACvC,YAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;KACnC,GACC,OAAO,CAAC,WAAW,CAAC;IAIvB;;;;;;OAMG;WACiB,UAAU,CAC7B,MAAM,EAAE,aAAa,GAAG,aAAa,EAAE,GAAG,WAAW,GAAG,WAAW,EAAE,EACrE,OAAO,CAAC,EAAE;QACT;;;WAGG;QACH,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;KACtC,GACC,OAAO,CAAC,WAAW,CAAC;IAIvB;;;;OAIG;WACiB,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC;CAGpE"}
@@ -68,7 +68,7 @@ export class PdfGenerator {
68
68
  * @default undefined
69
69
  */
70
70
  renderOptions?: ChromePdfRenderOptions;
71
- mainHtmlFile?: string;
71
+ mainHtmlFile ?: string | undefined;
72
72
  }
73
73
  ): Promise<PdfDocument> {
74
74
  return PdfDocument.fromZip(zipFilePath, options);
@@ -11,7 +11,7 @@ export interface ChromePdfRenderOptions {
11
11
  *
12
12
  * @default true
13
13
  */
14
- createPdfFormsFromHtml?: boolean;
14
+ createPdfFormsFromHtml?: boolean | undefined;
15
15
  /**
16
16
  * Allows a custom CSS style-sheet to be applied to Html before rendering.
17
17
  *
@@ -19,7 +19,7 @@ export interface ChromePdfRenderOptions {
19
19
  *
20
20
  * @default undefined
21
21
  */
22
- customCssUrl?: string;
22
+ customCssUrl?: string | undefined;
23
23
  /**
24
24
  * Enables JavaScript and Json to be executed before the page is rendered.
25
25
  *
@@ -27,7 +27,7 @@ export interface ChromePdfRenderOptions {
27
27
  *
28
28
  * @default true
29
29
  */
30
- enableJavaScript?: boolean;
30
+ enableJavaScript?: boolean | undefined;
31
31
  /**
32
32
  * Behavior when fitting HTML content to a physical paper size.
33
33
  * Determines {@link zoom} and {@link viewPortWidth}.
@@ -36,67 +36,67 @@ export interface ChromePdfRenderOptions {
36
36
  *
37
37
  * @default {@link FitToPaperModes.Default}
38
38
  */
39
- fitToPaperMode?: FitToPaperModes;
39
+ fitToPaperMode?: FitToPaperModes | undefined;
40
40
  /**
41
41
  * Outputs a black-and-white PDF
42
42
  *
43
43
  * @default false
44
44
  */
45
- grayScale?: boolean;
45
+ grayScale?: boolean | undefined;
46
46
  /**
47
47
  * Pdf "paper" margin in millimeters.
48
48
  *
49
49
  * Set to zero for border-less and commercial printing applications.
50
50
  * @default {@link MarginConfig} default 25
51
51
  */
52
- margin?: MarginConfig;
52
+ margin?: MarginConfig | undefined;
53
53
  /**
54
54
  * The PDF paper orientation.
55
55
  *
56
56
  * @default {@link PdfPaperOrientation.Portrait}
57
57
  */
58
- paperOrientation?: PdfPaperOrientation;
58
+ paperOrientation?: PdfPaperOrientation | undefined;
59
59
  /**
60
60
  * Set an output paper size for PDF pages.
61
61
  * Use {@link customPaperWidthMm}, {@link customPaperHeightMm} for custom sizes.
62
62
  *
63
63
  * @default {@link PaperSize.A4}
64
64
  */
65
- paperSize?: PdfPaperSize;
65
+ paperSize?: PdfPaperSize | undefined;
66
66
  /**
67
67
  * Prints background-colors and images from Html.
68
68
  *
69
69
  * @default true
70
70
  */
71
- printHtmlBackgrounds?: boolean;
71
+ printHtmlBackgrounds?: boolean | undefined;
72
72
  /**
73
73
  * Render timeout in seconds
74
74
  * @default 60
75
75
  */
76
- timeout?: number;
76
+ timeout?: number | undefined;
77
77
  /**
78
78
  * A wrapper object that holds configuration for wait-for mechanism for user to wait for certain events before rendering.
79
79
  *
80
80
  * @default {@link WaitForRenderDelay} with 20 milliseconds
81
81
  */
82
- waitFor?: WaitFor;
82
+ waitFor?: WaitFor | undefined;
83
83
  /**
84
84
  * PDF Document Name and Title meta-data. Not required. Useful for mail-merge and automatic file naming in the IronPdf MVC and Razor extensions.
85
85
  */
86
- title?: string;
87
- inputEncoding?: string;
88
- cssMediaType?: CssMediaType;
89
- javascript?: string;
90
- firstPageNumber?: number;
91
- htmlHeader?: HtmlAffix;
92
- htmlFooter?: HtmlAffix;
93
- textHeader?: TextAffix;
94
- textFooter?: TextAffix;
86
+ title?: string | undefined;
87
+ inputEncoding?: string | undefined;
88
+ cssMediaType?: CssMediaType | undefined;
89
+ javascript?: string | undefined;
90
+ firstPageNumber?: number | undefined;
91
+ htmlHeader?: HtmlAffix | undefined;
92
+ htmlFooter?: HtmlAffix | undefined;
93
+ textHeader?: TextAffix | undefined;
94
+ textFooter?: TextAffix | undefined;
95
95
  /**
96
96
  * Use margin values from the main document when rendering headers and footers
97
97
  * @default {@link UseMargins.LeftAndRight}
98
98
  */
99
- useMarginsOnHeaderAndFooter?: UseMargins;
99
+ useMarginsOnHeaderAndFooter?: UseMargins | undefined;
100
100
  }
101
101
  /**
102
102
  * A managed wrapper of wait-for configurations. see {@link ChromePdfRenderOptions.waitFor}
@@ -124,7 +124,7 @@ export interface WaitForRenderDelay {
124
124
  *
125
125
  * @default 20 milliseconds
126
126
  */
127
- delay?: number;
127
+ delay?: number | undefined;
128
128
  }
129
129
  /**
130
130
  * Proceeds rendering by waiting until user calls our JS function `window.ironpdf.notifyRender()`
@@ -135,7 +135,7 @@ export interface WaitForJavaScript {
135
135
  * Maximum wait time in milliseconds until it forces rendering.
136
136
  * @default 10000 milliseconds
137
137
  */
138
- maxWaitTime?: number;
138
+ maxWaitTime?: number | undefined;
139
139
  }
140
140
  /**
141
141
  * Proceeds rendering by waiting until it internally detects a network idle event when there is no network activity
@@ -146,15 +146,15 @@ export interface WaitForNetworkIdleN {
146
146
  /**
147
147
  * Duration of time in milliseconds to regard as network idle event
148
148
  */
149
- networkIdleDuration?: number;
149
+ networkIdleDuration?: number | undefined;
150
150
  /**
151
151
  * Maximum number of allowed inflight network requests to not invalidate network idle event
152
152
  */
153
- maxNumAllowedInflight?: number;
153
+ maxNumAllowedInflight?: number | undefined;
154
154
  /**
155
155
  * Maximum wait time in milliseconds until it forces rendering. Default value is 10000 milliseconds
156
156
  */
157
- maxWaitTime?: number;
157
+ maxWaitTime?: number | undefined;
158
158
  }
159
159
  /**
160
160
  * Proceeds rendering by waiting until it internally detects a network idle event when there is no network activity
@@ -166,7 +166,7 @@ export interface WaitForNetworkIdle0 {
166
166
  * Maximum wait time in milliseconds until it forces rendering.
167
167
  * @default 10000 milliseconds
168
168
  */
169
- maxWaitTime?: number;
169
+ maxWaitTime?: number | undefined;
170
170
  }
171
171
  /**
172
172
  * This method proceeds rendering by waiting until it internally detects a network idle event when there is no network activity
@@ -178,7 +178,7 @@ export interface WaitForNetworkIdle2 {
178
178
  * Maximum wait time in milliseconds until it forces rendering.
179
179
  * @default 10000 milliseconds
180
180
  */
181
- maxWaitTime?: number;
181
+ maxWaitTime?: number | undefined;
182
182
  }
183
183
  /**
184
184
  * Basically it waits for nothing, but will render as soon as the page loaded.
@@ -200,7 +200,7 @@ export interface WaitForHtmlQuerySelector {
200
200
  * Maximum wait time in milliseconds until it forces rendering.
201
201
  * @default 10000 milliseconds
202
202
  */
203
- maxWaitTime?: number;
203
+ maxWaitTime?: number | undefined;
204
204
  }
205
205
  export declare function defaultChromePdfRenderOptions(): ChromePdfRenderOptions;
206
206
  /**
@@ -212,18 +212,18 @@ export interface HttpLoginCredentials {
212
212
  * A Dictionary which allows custom cookies to be posted with every login request, and HTTP request made by
213
213
  * RenderUriToHml methods.
214
214
  */
215
- custom_cookies?: Map<string, string>;
215
+ custom_cookies?: Map<string, string> | undefined;
216
216
  /**
217
217
  * Enables cookies to be stored and sent when using RenderUriToHml methods.
218
218
  */
219
- enable_cookies?: boolean;
219
+ enable_cookies?: boolean | undefined;
220
220
  /**
221
221
  * Optional: Password credential for Windows / Linux network security authentication.
222
222
  */
223
- network_password?: string;
223
+ network_password?: string | undefined;
224
224
  /**
225
225
  * Optional: User-name credential for Windows / Linux network security authentication.
226
226
  */
227
- network_username?: string;
227
+ network_username?: string | undefined;
228
228
  }
229
229
  //# sourceMappingURL=render.d.ts.map
@@ -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,EACN,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,UAAU,EACV,MAAM,SAAS,CAAC;AAEjB;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IAEtC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;IACvC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;;OAGG;IACH,OAAO,CAAC,EAAE,M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C/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,CAoBtE;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"}
@@ -12,13 +12,13 @@ import {
12
12
  * Specify options such as Paper-Size, DPI and other Chromium specific browser setup options.
13
13
  */
14
14
  export interface ChromePdfRenderOptions {
15
- // applyMarginToHeaderAndFooter?: boolean;
15
+ // applyMarginToHeaderAndFooter ?: boolean | undefined;
16
16
  /**
17
17
  * Is create pdf forms from html. Turns all Html forms elements into editable PDF forms.
18
18
  *
19
19
  * @default true
20
20
  */
21
- createPdfFormsFromHtml?: boolean;
21
+ createPdfFormsFromHtml ?: boolean | undefined;
22
22
  /**
23
23
  * Allows a custom CSS style-sheet to be applied to Html before rendering.
24
24
  *
@@ -26,7 +26,7 @@ export interface ChromePdfRenderOptions {
26
26
  *
27
27
  * @default undefined
28
28
  */
29
- customCssUrl?: string;
29
+ customCssUrl ?: string | undefined;
30
30
  /**
31
31
  * Enables JavaScript and Json to be executed before the page is rendered.
32
32
  *
@@ -34,7 +34,7 @@ export interface ChromePdfRenderOptions {
34
34
  *
35
35
  * @default true
36
36
  */
37
- enableJavaScript?: boolean;
37
+ enableJavaScript ?: boolean | undefined;
38
38
  /**
39
39
  * Behavior when fitting HTML content to a physical paper size.
40
40
  * Determines {@link zoom} and {@link viewPortWidth}.
@@ -43,70 +43,70 @@ export interface ChromePdfRenderOptions {
43
43
  *
44
44
  * @default {@link FitToPaperModes.Default}
45
45
  */
46
- fitToPaperMode?: FitToPaperModes;
46
+ fitToPaperMode?: FitToPaperModes | undefined;
47
47
  /**
48
48
  * Outputs a black-and-white PDF
49
49
  *
50
50
  * @default false
51
51
  */
52
- grayScale?: boolean;
52
+ grayScale ?: boolean | undefined;
53
53
  /**
54
54
  * Pdf "paper" margin in millimeters.
55
55
  *
56
56
  * Set to zero for border-less and commercial printing applications.
57
57
  * @default {@link MarginConfig} default 25
58
58
  */
59
- margin?: MarginConfig;
59
+ margin?: MarginConfig | undefined;
60
60
  /**
61
61
  * The PDF paper orientation.
62
62
  *
63
63
  * @default {@link PdfPaperOrientation.Portrait}
64
64
  */
65
- paperOrientation?: PdfPaperOrientation;
65
+ paperOrientation?: PdfPaperOrientation | undefined;
66
66
  /**
67
67
  * Set an output paper size for PDF pages.
68
68
  * Use {@link customPaperWidthMm}, {@link customPaperHeightMm} for custom sizes.
69
69
  *
70
70
  * @default {@link PaperSize.A4}
71
71
  */
72
- paperSize?: PdfPaperSize;
72
+ paperSize?: PdfPaperSize | undefined;
73
73
  /**
74
74
  * Prints background-colors and images from Html.
75
75
  *
76
76
  * @default true
77
77
  */
78
- printHtmlBackgrounds?: boolean;
78
+ printHtmlBackgrounds ?: boolean | undefined;
79
79
  /**
80
80
  * Render timeout in seconds
81
81
  * @default 60
82
82
  */
83
- timeout?: number;
83
+ timeout ?: number | undefined;
84
84
  /**
85
85
  * A wrapper object that holds configuration for wait-for mechanism for user to wait for certain events before rendering.
86
86
  *
87
87
  * @default {@link WaitForRenderDelay} with 20 milliseconds
88
88
  */
89
- waitFor?: WaitFor;
89
+ waitFor?: WaitFor | undefined;
90
90
  /**
91
91
  * PDF Document Name and Title meta-data. Not required. Useful for mail-merge and automatic file naming in the IronPdf MVC and Razor extensions.
92
92
  */
93
- title?: string;
94
- // viewPortHeight?: number;
95
- // viewPortWidth?: number;
96
- // zoom?: number;
97
- inputEncoding?: string;
98
- cssMediaType?: CssMediaType;
99
- javascript?: string;
100
- firstPageNumber?: number;
101
- htmlHeader?: HtmlAffix;
102
- htmlFooter?: HtmlAffix;
103
- textHeader?: TextAffix;
104
- textFooter?: TextAffix;
93
+ title ?: string | undefined;
94
+ // viewPortHeight ?: number | undefined;
95
+ // viewPortWidth ?: number | undefined;
96
+ // zoom ?: number | undefined;
97
+ inputEncoding ?: string | undefined;
98
+ cssMediaType?: CssMediaType | undefined;
99
+ javascript ?: string | undefined;
100
+ firstPageNumber ?: number | undefined;
101
+ htmlHeader?: HtmlAffix | undefined;
102
+ htmlFooter?: HtmlAffix | undefined;
103
+ textHeader?: TextAffix | undefined;
104
+ textFooter?: TextAffix | undefined;
105
105
  /**
106
106
  * Use margin values from the main document when rendering headers and footers
107
107
  * @default {@link UseMargins.LeftAndRight}
108
108
  */
109
- useMarginsOnHeaderAndFooter?: UseMargins;
109
+ useMarginsOnHeaderAndFooter?: UseMargins | undefined;
110
110
  }
111
111
 
112
112
  /**
@@ -144,7 +144,7 @@ export interface WaitForRenderDelay {
144
144
  *
145
145
  * @default 20 milliseconds
146
146
  */
147
- delay?: number;
147
+ delay ?: number | undefined;
148
148
  }
149
149
 
150
150
  /**
@@ -156,7 +156,7 @@ export interface WaitForJavaScript {
156
156
  * Maximum wait time in milliseconds until it forces rendering.
157
157
  * @default 10000 milliseconds
158
158
  */
159
- maxWaitTime?: number;
159
+ maxWaitTime ?: number | undefined;
160
160
  }
161
161
 
162
162
  /**
@@ -168,15 +168,15 @@ export interface WaitForNetworkIdleN {
168
168
  /**
169
169
  * Duration of time in milliseconds to regard as network idle event
170
170
  */
171
- networkIdleDuration?: number;
171
+ networkIdleDuration ?: number | undefined;
172
172
  /**
173
173
  * Maximum number of allowed inflight network requests to not invalidate network idle event
174
174
  */
175
- maxNumAllowedInflight?: number;
175
+ maxNumAllowedInflight ?: number | undefined;
176
176
  /**
177
177
  * Maximum wait time in milliseconds until it forces rendering. Default value is 10000 milliseconds
178
178
  */
179
- maxWaitTime?: number;
179
+ maxWaitTime ?: number | undefined;
180
180
  }
181
181
 
182
182
  /**
@@ -189,7 +189,7 @@ export interface WaitForNetworkIdle0 {
189
189
  * Maximum wait time in milliseconds until it forces rendering.
190
190
  * @default 10000 milliseconds
191
191
  */
192
- maxWaitTime?: number;
192
+ maxWaitTime ?: number | undefined;
193
193
  }
194
194
 
195
195
  /**
@@ -202,7 +202,7 @@ export interface WaitForNetworkIdle2 {
202
202
  * Maximum wait time in milliseconds until it forces rendering.
203
203
  * @default 10000 milliseconds
204
204
  */
205
- maxWaitTime?: number;
205
+ maxWaitTime ?: number | undefined;
206
206
  }
207
207
 
208
208
  /**
@@ -226,7 +226,7 @@ export interface WaitForHtmlQuerySelector {
226
226
  * Maximum wait time in milliseconds until it forces rendering.
227
227
  * @default 10000 milliseconds
228
228
  */
229
- maxWaitTime?: number;
229
+ maxWaitTime ?: number | undefined;
230
230
  }
231
231
 
232
232
  export function defaultChromePdfRenderOptions(): ChromePdfRenderOptions {
@@ -260,17 +260,17 @@ export interface HttpLoginCredentials {
260
260
  * A Dictionary which allows custom cookies to be posted with every login request, and HTTP request made by
261
261
  * RenderUriToHml methods.
262
262
  */
263
- custom_cookies?: Map<string, string>;
263
+ custom_cookies?: Map<string, string> | undefined;
264
264
  /**
265
265
  * Enables cookies to be stored and sent when using RenderUriToHml methods.
266
266
  */
267
- enable_cookies?: boolean;
267
+ enable_cookies ?: boolean | undefined;
268
268
  /**
269
269
  * Optional: Password credential for Windows / Linux network security authentication.
270
270
  */
271
- network_password?: string;
271
+ network_password ?: string | undefined;
272
272
  /**
273
273
  * Optional: User-name credential for Windows / Linux network security authentication.
274
274
  */
275
- network_username?: string;
275
+ network_username ?: string | undefined;
276
276
  }
@@ -7,23 +7,23 @@ export interface PdfPermission {
7
7
  /**
8
8
  * No permissions (restrict all)
9
9
  */
10
- None?: boolean;
10
+ None?: boolean | undefined;
11
11
  /**
12
12
  * Sets the permissions for users to extract or 'copy &amp; paste' content (text and images) from the PDF document for accessibility.
13
13
  *
14
14
  * `true` if users may 'copy and paste' content out of the PDF otherwise, `false`.
15
15
  */
16
- AllowAccessibilityExtractContent?: boolean;
16
+ AllowAccessibilityExtractContent?: boolean | undefined;
17
17
  /**
18
18
  * Sets the permissions for users to annotate the PDF document with comments.
19
19
  * If AllowUserAnnotations is set `false`, the {@link PdfDocument.setOwnerPassword} must be set for the security
20
20
  * measure to take effect.
21
21
  */
22
- AllowAnnotations?: boolean;
22
+ AllowAnnotations?: boolean | undefined;
23
23
  /**
24
24
  * Sets the permissions for users to add or insert pages to the PDF document
25
25
  */
26
- AllowAssembleDocument?: boolean;
26
+ AllowAssembleDocument?: boolean | undefined;
27
27
  /**
28
28
  * Sets the permissions for users to extract or 'copy &amp; paste' content (text and images) from
29
29
  * the PDF document.
@@ -32,7 +32,7 @@ export interface PdfPermission {
32
32
  *
33
33
  * `true` if users may 'copy and paste' content out of the PDF otherwise, `false`.
34
34
  */
35
- AllowExtractContent?: boolean;
35
+ AllowExtractContent?: boolean | undefined;
36
36
  /**
37
37
  * Sets the permissions for users to fill-in (enter data into) forms in the PDF document. <para>If
38
38
  * AllowUserFormData is set `false`, the {@link PdfDocument.setOwnerPassword} must be set for the security
@@ -46,11 +46,11 @@ export interface PdfPermission {
46
46
  * `true` if users may annotate the PDF document, otherwise `false`. Setting AllowUserFormData
47
47
  * `true` will also enable annotations.
48
48
  */
49
- AllowFillForms?: boolean;
49
+ AllowFillForms?: boolean | undefined;
50
50
  /**
51
51
  * In `false` user may only print the PDF at low resolution unless they have the Owner password.
52
52
  */
53
- AllowPrintFullQuality?: boolean;
53
+ AllowPrintFullQuality?: boolean | undefined;
54
54
  /**
55
55
  * Gets or sets the permissions for users edit the PDF document. The features to edit the document depends
56
56
  * entirely on the PDF client software used by the end user.
@@ -58,17 +58,17 @@ export interface PdfPermission {
58
58
  * If editing rights are restricted, then
59
59
  * the {@link PdfDocument.setOwnerPassword} must be set for the security measure to take effect.
60
60
  */
61
- AllowModify?: boolean;
61
+ AllowModify?: boolean | undefined;
62
62
  /**
63
63
  * Gets or sets the permissions for users to print the PDF document.
64
64
  *
65
65
  * If print rights are restricted,
66
66
  * then the {@link PdfDocument.setOwnerPassword} must be set for the security measure to take effect.
67
67
  */
68
- AllowPrint?: boolean;
68
+ AllowPrint?: boolean | undefined;
69
69
  /**
70
70
  * Allow all
71
71
  */
72
- AllowAll?: boolean;
72
+ AllowAll?: boolean | undefined;
73
73
  }
74
74
  //# sourceMappingURL=security.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"security.d.ts","sourceRoot":"","sources":["security.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;;OAIG;IACH,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAC3C;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;;;OAOG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;;;;;;;;;;;OAYG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB"}
1
+ {"version":3,"file":"security.d.ts","sourceRoot":"","sources":["security.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC7B;;OAEG;IACH,IAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC5B;;;;OAIG;IACH,gCAAiC,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxD;;;;OAIG;IACH,gBAAiB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,qBAAsB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7C;;;;;;;OAOG;IACH,mBAAoB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3C;;;;;;;;;;;;OAYG;IACH,cAAe,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,qBAAsB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7C;;;;;;OAMG;IACH,WAAY,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACnC;;;;;OAKG;IACH,UAAW,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,QAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAChC"}
@@ -7,23 +7,23 @@ export interface PdfPermission {
7
7
  /**
8
8
  * No permissions (restrict all)
9
9
  */
10
- None?: boolean;
10
+ None ?: boolean | undefined;
11
11
  /**
12
12
  * Sets the permissions for users to extract or 'copy &amp; paste' content (text and images) from the PDF document for accessibility.
13
13
  *
14
14
  * `true` if users may 'copy and paste' content out of the PDF otherwise, `false`.
15
15
  */
16
- AllowAccessibilityExtractContent?: boolean;
16
+ AllowAccessibilityExtractContent ?: boolean | undefined;
17
17
  /**
18
18
  * Sets the permissions for users to annotate the PDF document with comments.
19
19
  * If AllowUserAnnotations is set `false`, the {@link PdfDocument.setOwnerPassword} must be set for the security
20
20
  * measure to take effect.
21
21
  */
22
- AllowAnnotations?: boolean;
22
+ AllowAnnotations ?: boolean | undefined;
23
23
  /**
24
24
  * Sets the permissions for users to add or insert pages to the PDF document
25
25
  */
26
- AllowAssembleDocument?: boolean;
26
+ AllowAssembleDocument ?: boolean | undefined;
27
27
  /**
28
28
  * Sets the permissions for users to extract or 'copy &amp; paste' content (text and images) from
29
29
  * the PDF document.
@@ -32,7 +32,7 @@ export interface PdfPermission {
32
32
  *
33
33
  * `true` if users may 'copy and paste' content out of the PDF otherwise, `false`.
34
34
  */
35
- AllowExtractContent?: boolean;
35
+ AllowExtractContent ?: boolean | undefined;
36
36
  /**
37
37
  * Sets the permissions for users to fill-in (enter data into) forms in the PDF document. <para>If
38
38
  * AllowUserFormData is set `false`, the {@link PdfDocument.setOwnerPassword} must be set for the security
@@ -46,11 +46,11 @@ export interface PdfPermission {
46
46
  * `true` if users may annotate the PDF document, otherwise `false`. Setting AllowUserFormData
47
47
  * `true` will also enable annotations.
48
48
  */
49
- AllowFillForms?: boolean;
49
+ AllowFillForms ?: boolean | undefined;
50
50
  /**
51
51
  * In `false` user may only print the PDF at low resolution unless they have the Owner password.
52
52
  */
53
- AllowPrintFullQuality?: boolean;
53
+ AllowPrintFullQuality ?: boolean | undefined;
54
54
  /**
55
55
  * Gets or sets the permissions for users edit the PDF document. The features to edit the document depends
56
56
  * entirely on the PDF client software used by the end user.
@@ -58,16 +58,16 @@ export interface PdfPermission {
58
58
  * If editing rights are restricted, then
59
59
  * the {@link PdfDocument.setOwnerPassword} must be set for the security measure to take effect.
60
60
  */
61
- AllowModify?: boolean;
61
+ AllowModify ?: boolean | undefined;
62
62
  /**
63
63
  * Gets or sets the permissions for users to print the PDF document.
64
64
  *
65
65
  * If print rights are restricted,
66
66
  * then the {@link PdfDocument.setOwnerPassword} must be set for the security measure to take effect.
67
67
  */
68
- AllowPrint?: boolean;
68
+ AllowPrint ?: boolean | undefined;
69
69
  /**
70
70
  * Allow all
71
71
  */
72
- AllowAll?: boolean;
72
+ AllowAll ?: boolean | undefined;
73
73
  }
@@ -9,38 +9,38 @@ export interface DigitalSignature {
9
9
  /**
10
10
  * Url to use for timestamping
11
11
  */
12
- timeStampUrl?: string;
12
+ timeStampUrl?: string | undefined;
13
13
  /**
14
14
  * The file path to a .pfx or .p12 digital signing certificate which may be generated using Adobe Acrobat Viewer.
15
15
  */
16
- certificatePath?: string;
16
+ certificatePath?: string | undefined;
17
17
  /**
18
18
  * The file buffer of a .pfx or .p12 digital signing certificate which may be generated using Adobe Acrobat Viewer.
19
19
  */
20
- certificateBuffer?: Buffer;
20
+ certificateBuffer?: Buffer | undefined;
21
21
  /**
22
22
  * The certificate password as a String
23
23
  */
24
- certificatePassword?: string;
24
+ certificatePassword?: string | undefined;
25
25
  /**
26
26
  * The reason the PDF was signed
27
27
  */
28
- signingReason?: string;
28
+ signingReason?: string | undefined;
29
29
  /**
30
30
  * The physical location the PDF was signed
31
31
  */
32
- signingLocation?: string;
32
+ signingLocation?: string | undefined;
33
33
  /**
34
34
  * The date and time of the digital signature. If left null, the signature will be timestamped at the
35
35
  * millisecond that the PdfDocument is saved to Disk or Stream.
36
36
  */
37
- signatureDate?: Date;
37
+ signatureDate?: Date | undefined;
38
38
  /**
39
39
  * A visual image for the sign, often a PNG of a human signature or company stamp.
40
40
  *
41
41
  * This appends a visual signature in addition to cryptographic signing.
42
42
  */
43
- signatureImage?: SignatureImage;
43
+ signatureImage?: SignatureImage | undefined;
44
44
  }
45
45
  /**
46
46
  * PDF digital signature image data and position
@@ -49,18 +49,18 @@ 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
  }
66
66
  //# sourceMappingURL=signature.d.ts.map