@ironsoftware/ironpdf 2026.3.1 → 2026.5.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 +3 -3
- package/src/index.d.ts +3 -0
- package/src/index.d.ts.map +1 -1
- package/src/index.js +6 -2
- package/src/index.js.map +1 -1
- package/src/index.ts +4 -2
- package/src/internal/IronPdfEngine.ProtoFiles/chrome_render.proto +6 -0
- package/src/internal/IronPdfEngine.ProtoFiles/iron_pdf_service.proto +2 -1
- package/src/internal/IronPdfEngine.ProtoFiles/qpdf.proto +16 -0
- package/src/internal/generated_proto/iron_pdf_service.d.ts +614 -305
- package/src/internal/generated_proto/iron_pdf_service.d.ts.map +1 -1
- package/src/internal/generated_proto/iron_pdf_service.ts +614 -305
- package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.d.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.ts +15 -0
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts +14 -0
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts.map +1 -1
- package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.ts +18 -0
- package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestIdP.d.ts +10 -0
- package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestIdP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestIdP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestIdP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestIdP.ts +13 -0
- package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestStreamP.d.ts +18 -0
- package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestStreamP.d.ts.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestStreamP.js +4 -0
- package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestStreamP.js.map +1 -0
- package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestStreamP.ts +21 -0
- package/src/internal/grpc_layer/chrome/converter.d.ts +10 -0
- package/src/internal/grpc_layer/chrome/converter.d.ts.map +1 -1
- package/src/internal/grpc_layer/chrome/converter.js +61 -2
- package/src/internal/grpc_layer/chrome/converter.js.map +1 -1
- package/src/internal/grpc_layer/chrome/converter.ts +67 -0
- package/src/internal/grpc_layer/pdfium/annotations.d.ts +30 -0
- package/src/internal/grpc_layer/pdfium/annotations.d.ts.map +1 -0
- package/src/internal/grpc_layer/pdfium/annotations.js +161 -0
- package/src/internal/grpc_layer/pdfium/annotations.js.map +1 -0
- package/src/internal/grpc_layer/pdfium/annotations.ts +190 -0
- package/src/internal/grpc_layer/pdfium/bookmarks.d.ts +7 -0
- package/src/internal/grpc_layer/pdfium/bookmarks.d.ts.map +1 -0
- package/src/internal/grpc_layer/pdfium/bookmarks.js +53 -0
- package/src/internal/grpc_layer/pdfium/bookmarks.js.map +1 -0
- package/src/internal/grpc_layer/pdfium/bookmarks.ts +50 -0
- package/src/internal/grpc_layer/pdfium/compress.d.ts +1 -0
- package/src/internal/grpc_layer/pdfium/compress.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/compress.js +31 -1
- package/src/internal/grpc_layer/pdfium/compress.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/compress.ts +42 -0
- package/src/internal/grpc_layer/pdfium/linearize.d.ts +48 -0
- package/src/internal/grpc_layer/pdfium/linearize.d.ts.map +1 -0
- package/src/internal/grpc_layer/pdfium/linearize.js +309 -0
- package/src/internal/grpc_layer/pdfium/linearize.js.map +1 -0
- package/src/internal/grpc_layer/pdfium/linearize.ts +338 -0
- package/src/internal/grpc_layer/pdfium/pdfa.d.ts +1 -0
- package/src/internal/grpc_layer/pdfium/pdfa.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/pdfa.js +22 -1
- package/src/internal/grpc_layer/pdfium/pdfa.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/pdfa.ts +26 -0
- package/src/internal/grpc_layer/pdfium/signing.d.ts +2 -1
- package/src/internal/grpc_layer/pdfium/signing.d.ts.map +1 -1
- package/src/internal/grpc_layer/pdfium/signing.js +38 -1
- package/src/internal/grpc_layer/pdfium/signing.js.map +1 -1
- package/src/internal/grpc_layer/pdfium/signing.ts +44 -1
- package/src/internal/zod/renderSchema.d.ts.map +1 -1
- package/src/internal/zod/renderSchema.js +6 -1
- package/src/internal/zod/renderSchema.js.map +1 -1
- package/src/internal/zod/renderSchema.ts +6 -1
- package/src/public/annotation.d.ts +166 -0
- package/src/public/annotation.d.ts.map +1 -0
- package/src/public/annotation.js +61 -0
- package/src/public/annotation.js.map +1 -0
- package/src/public/annotation.ts +166 -0
- package/src/public/bookmark.d.ts +25 -0
- package/src/public/bookmark.d.ts.map +1 -0
- package/src/public/bookmark.js +3 -0
- package/src/public/bookmark.js.map +1 -0
- package/src/public/bookmark.ts +28 -0
- package/src/public/pdfDocument.d.ts +194 -2
- package/src/public/pdfDocument.d.ts.map +1 -1
- package/src/public/pdfDocument.js +388 -1
- package/src/public/pdfDocument.js.map +1 -1
- package/src/public/pdfDocument.ts +427 -4
- package/src/public/render.d.ts +104 -0
- package/src/public/render.d.ts.map +1 -1
- package/src/public/render.js +35 -1
- package/src/public/render.js.map +1 -1
- package/src/public/render.ts +101 -0
- package/src/public/signature.d.ts +33 -0
- package/src/public/signature.d.ts.map +1 -1
- package/src/public/signature.ts +34 -0
package/src/public/render.ts
CHANGED
|
@@ -8,6 +8,69 @@ import {
|
|
|
8
8
|
TableOfContentsTypes,
|
|
9
9
|
} from "./types";
|
|
10
10
|
|
|
11
|
+
/**
|
|
12
|
+
* Represents the rendered location of an HTML element within a PDF document.
|
|
13
|
+
*
|
|
14
|
+
* Returned by {@code PdfDocument.getElementLocations()} after rendering HTML with
|
|
15
|
+
* {@link ChromePdfRenderOptions.elementQuerySelectors} configured.
|
|
16
|
+
*
|
|
17
|
+
* Mirrors {@code IronPdf.RenderedElementLocation} on the C# side.
|
|
18
|
+
*/
|
|
19
|
+
export interface RenderedElementLocation {
|
|
20
|
+
/**
|
|
21
|
+
* The text content of the matched element.
|
|
22
|
+
*/
|
|
23
|
+
text: string;
|
|
24
|
+
/**
|
|
25
|
+
* The zero-based page index where the element was rendered.
|
|
26
|
+
*/
|
|
27
|
+
pageIndex: number;
|
|
28
|
+
/**
|
|
29
|
+
* The bounding rectangle of the annotation marker on the page, in PDF points (1/72 inch).
|
|
30
|
+
* Coordinate origin is the bottom-left corner of the page. The rectangle corresponds to
|
|
31
|
+
* the injected anchor marker placed at the start of the matched element.
|
|
32
|
+
*/
|
|
33
|
+
rectangle: { x: number; y: number; width: number; height: number };
|
|
34
|
+
/**
|
|
35
|
+
* The original index of the element in document order among all matched elements.
|
|
36
|
+
*/
|
|
37
|
+
elementIndex: number;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Specifies the linearization strategy to use when producing a linearized
|
|
42
|
+
* (web-optimized) PDF.
|
|
43
|
+
*
|
|
44
|
+
* Mirrors {@code IronPdf.LinearizationMode} on the C# side.
|
|
45
|
+
*/
|
|
46
|
+
export enum LinearizationMode {
|
|
47
|
+
/**
|
|
48
|
+
* Automatically selects the optimal linearization method based on system capabilities.
|
|
49
|
+
*
|
|
50
|
+
* Behavior:
|
|
51
|
+
* 1. First attempts {@link FileBased} linearization.
|
|
52
|
+
* 2. If disk access is restricted (e.g. limited permissions, sandboxed environment),
|
|
53
|
+
* automatically falls back to {@link InMemory}.
|
|
54
|
+
*
|
|
55
|
+
* Recommended default for most applications.
|
|
56
|
+
*/
|
|
57
|
+
Automatic = 0,
|
|
58
|
+
/**
|
|
59
|
+
* Performs linearization entirely in memory without any disk I/O operations.
|
|
60
|
+
*
|
|
61
|
+
* Use when:
|
|
62
|
+
* - Compliance requirements mandate zero disk I/O (e.g. HIPAA, PCI-DSS)
|
|
63
|
+
* - Sandboxed or restricted environments without disk write permissions
|
|
64
|
+
* - Cloud-based environments where disk I/O introduces latency
|
|
65
|
+
*/
|
|
66
|
+
InMemory = 1,
|
|
67
|
+
/**
|
|
68
|
+
* Performs linearization using temporary file operations on disk.
|
|
69
|
+
* Requires write permissions to the system temporary directory.
|
|
70
|
+
*/
|
|
71
|
+
FileBased = 2,
|
|
72
|
+
}
|
|
73
|
+
|
|
11
74
|
/**
|
|
12
75
|
* Html or Url To PDF output options for {@link PdfGenerator} and {@link PdfDocument} static method.
|
|
13
76
|
* Specify options such as Paper-Size, DPI and other Chromium specific browser setup options.
|
|
@@ -112,6 +175,44 @@ export interface ChromePdfRenderOptions {
|
|
|
112
175
|
* @default {@link UseMargins.LeftAndRight}
|
|
113
176
|
*/
|
|
114
177
|
useMarginsOnHeaderAndFooter?: UseMargins | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* If true, auto-generate PDF outline (bookmarks) from the HTML heading structure.
|
|
180
|
+
* Use {@link autoBookmarkMinHeadingLevel} / {@link autoBookmarkMaxHeadingLevel} to control
|
|
181
|
+
* which heading levels are included (1 = h1, 6 = h6). Use {@link autoBookmarkCssSelectors}
|
|
182
|
+
* to include additional non-heading elements (e.g. {@code ".chapter-title"}).
|
|
183
|
+
*
|
|
184
|
+
* @default false
|
|
185
|
+
*/
|
|
186
|
+
autoBookmarksFromHeadings?: boolean | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* Minimum heading level (inclusive) to include in auto-generated bookmarks.
|
|
189
|
+
* Only used when {@link autoBookmarksFromHeadings} is true.
|
|
190
|
+
*
|
|
191
|
+
* @default 1
|
|
192
|
+
*/
|
|
193
|
+
autoBookmarkMinHeadingLevel?: number | undefined;
|
|
194
|
+
/**
|
|
195
|
+
* Maximum heading level (inclusive) to include in auto-generated bookmarks.
|
|
196
|
+
* Only used when {@link autoBookmarksFromHeadings} is true.
|
|
197
|
+
*
|
|
198
|
+
* @default 6
|
|
199
|
+
*/
|
|
200
|
+
autoBookmarkMaxHeadingLevel?: number | undefined;
|
|
201
|
+
/**
|
|
202
|
+
* Additional CSS selectors whose matching elements will be included as auto-bookmarks
|
|
203
|
+
* (in addition to the heading range). Only used when {@link autoBookmarksFromHeadings} is true.
|
|
204
|
+
* Example: {@code [".chapter-title", "[data-bookmark]"]}.
|
|
205
|
+
*/
|
|
206
|
+
autoBookmarkCssSelectors?: string[] | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* CSS selectors whose matching HTML elements should be tracked during rendering so their
|
|
209
|
+
* rendered page positions can later be retrieved by the engine.
|
|
210
|
+
*
|
|
211
|
+
* <b>Note:</b> retrieval of the per-element locations from the Node client is not yet
|
|
212
|
+
* supported. Setting this option still enables engine-side tracking (and any downstream
|
|
213
|
+
* effects such as auto-bookmarks for those selectors).
|
|
214
|
+
*/
|
|
215
|
+
elementQuerySelectors?: string[] | undefined;
|
|
115
216
|
}
|
|
116
217
|
|
|
117
218
|
/**
|
|
@@ -63,4 +63,37 @@ export interface SignatureImage {
|
|
|
63
63
|
*/
|
|
64
64
|
SignatureImagePageIndex?: number | undefined;
|
|
65
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Represents a verified digital signature extracted from a signed PDF document.
|
|
68
|
+
*/
|
|
69
|
+
export interface VerifiedSignature {
|
|
70
|
+
/**
|
|
71
|
+
* The name of the signature (form field name or signature identifier).
|
|
72
|
+
*/
|
|
73
|
+
signatureName: string;
|
|
74
|
+
/**
|
|
75
|
+
* The contact information of the signer.
|
|
76
|
+
*/
|
|
77
|
+
signingContact: string;
|
|
78
|
+
/**
|
|
79
|
+
* The reason the PDF was signed.
|
|
80
|
+
*/
|
|
81
|
+
signingReason: string;
|
|
82
|
+
/**
|
|
83
|
+
* The physical location where the PDF was signed.
|
|
84
|
+
*/
|
|
85
|
+
signingLocation: string;
|
|
86
|
+
/**
|
|
87
|
+
* The date and time the signature was applied.
|
|
88
|
+
*/
|
|
89
|
+
signingDate?: Date | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Whether the signature is valid.
|
|
92
|
+
*/
|
|
93
|
+
isValid: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* The signature filter type (e.g. "Adobe.PPKLite").
|
|
96
|
+
*/
|
|
97
|
+
filter: string;
|
|
98
|
+
}
|
|
66
99
|
//# sourceMappingURL=signature.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["signature.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAEtC;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,YAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,eAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,iBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,mBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,aAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,eAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC;;;OAGG;IACH,aAAc,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAClC;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC9B;;OAEG;IACH,kBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,oBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,sBAAsB,CAAC,EAAE,a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,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,WAAW,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CACf"}
|
package/src/public/signature.ts
CHANGED
|
@@ -63,3 +63,37 @@ export interface SignatureImage {
|
|
|
63
63
|
*/
|
|
64
64
|
SignatureImagePageIndex ?: number | undefined;
|
|
65
65
|
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Represents a verified digital signature extracted from a signed PDF document.
|
|
69
|
+
*/
|
|
70
|
+
export interface VerifiedSignature {
|
|
71
|
+
/**
|
|
72
|
+
* The name of the signature (form field name or signature identifier).
|
|
73
|
+
*/
|
|
74
|
+
signatureName: string;
|
|
75
|
+
/**
|
|
76
|
+
* The contact information of the signer.
|
|
77
|
+
*/
|
|
78
|
+
signingContact: string;
|
|
79
|
+
/**
|
|
80
|
+
* The reason the PDF was signed.
|
|
81
|
+
*/
|
|
82
|
+
signingReason: string;
|
|
83
|
+
/**
|
|
84
|
+
* The physical location where the PDF was signed.
|
|
85
|
+
*/
|
|
86
|
+
signingLocation: string;
|
|
87
|
+
/**
|
|
88
|
+
* The date and time the signature was applied.
|
|
89
|
+
*/
|
|
90
|
+
signingDate?: Date | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Whether the signature is valid.
|
|
93
|
+
*/
|
|
94
|
+
isValid: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* The signature filter type (e.g. "Adobe.PPKLite").
|
|
97
|
+
*/
|
|
98
|
+
filter: string;
|
|
99
|
+
}
|