modern-pdf-lib 0.28.0 → 0.29.0

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 (59) hide show
  1. package/README.md +24 -18
  2. package/dist/{batchOptimize-CXC9gNqD.cjs → batchOptimize-Ba5ehwoI.cjs} +2 -2
  3. package/dist/{batchOptimize-CjLGD5ie.mjs → batchOptimize-KB1k9LFg.mjs} +5 -5
  4. package/dist/{bridge-ZD6O6QQa.mjs → bridge-7dhURZj7.mjs} +3 -3
  5. package/dist/browser.cjs +71 -9
  6. package/dist/browser.d.cts +5 -5
  7. package/dist/browser.d.mts +5 -5
  8. package/dist/browser.mjs +11 -11
  9. package/dist/cli/index.cjs +2 -2
  10. package/dist/cli/index.mjs +3 -3
  11. package/dist/{compressionAnalysis-BgKy45pA.mjs → compressionAnalysis-BEd_745I.mjs} +3 -3
  12. package/dist/{compressionAnalysis-UfmonqbM.d.cts → compressionAnalysis-CyBVhRU5.d.cts} +2 -2
  13. package/dist/{compressionAnalysis-CDOp_vPr.d.mts.map → compressionAnalysis-CyBVhRU5.d.cts.map} +1 -1
  14. package/dist/{compressionAnalysis-Djv-Zvcd.cjs → compressionAnalysis-DwxVCe4E.cjs} +2 -2
  15. package/dist/{compressionAnalysis-CDOp_vPr.d.mts → compressionAnalysis-InMeGrqw.d.mts} +2 -2
  16. package/dist/{compressionAnalysis-UfmonqbM.d.cts.map → compressionAnalysis-InMeGrqw.d.mts.map} +1 -1
  17. package/dist/create.cjs +2 -2
  18. package/dist/create.d.cts +2 -2
  19. package/dist/create.d.mts +2 -2
  20. package/dist/create.mjs +2 -2
  21. package/dist/{deduplicateImages-BTCyAPfJ.mjs → deduplicateImages-Ba7RZ_sx.mjs} +3 -3
  22. package/dist/{deduplicateImages-CaGgaqyS.cjs → deduplicateImages-CYFpiEch.cjs} +2 -2
  23. package/dist/{fontEmbed-DGiZS0h2.d.cts → fontEmbed-DxtdZxUj.d.cts} +2 -2
  24. package/dist/{fontEmbed-DGiZS0h2.d.cts.map → fontEmbed-DxtdZxUj.d.cts.map} +1 -1
  25. package/dist/{fontEmbed-DtA_riGC.d.mts → fontEmbed-N-VWoZ0F.d.mts} +2 -2
  26. package/dist/{fontEmbed-DtA_riGC.d.mts.map → fontEmbed-N-VWoZ0F.d.mts.map} +1 -1
  27. package/dist/{imageExtract-DT50Hp_g.cjs → imageExtract-DQomHJiA.cjs} +2 -2
  28. package/dist/{imageExtract-Dapir-ux.mjs → imageExtract-DV-zq4h3.mjs} +2 -2
  29. package/dist/{index-D1SvXWSI.d.cts → index--7OpQy6B.d.cts} +2088 -25
  30. package/dist/index--7OpQy6B.d.cts.map +1 -0
  31. package/dist/{index-C1lZe66f.d.mts → index-Cai7jC6u.d.mts} +2088 -25
  32. package/dist/index-Cai7jC6u.d.mts.map +1 -0
  33. package/dist/index.cjs +71 -9
  34. package/dist/index.d.cts +5 -5
  35. package/dist/index.d.mts +5 -5
  36. package/dist/index.mjs +11 -11
  37. package/dist/{layout-lO4x64kY.mjs → layout-D035GpU8.mjs} +2 -2
  38. package/dist/{layout-C4vbTlBW.cjs → layout-DiO_3JLh.cjs} +2 -2
  39. package/dist/{loader-B1Ix7ozU.mjs → loader-DkrXz-h4.mjs} +2 -2
  40. package/dist/parse.cjs +4 -4
  41. package/dist/parse.d.cts +2 -2
  42. package/dist/parse.d.mts +2 -2
  43. package/dist/parse.mjs +4 -4
  44. package/dist/{pdfDocument-CzOipXnw.d.cts → pdfDocument-5Do0LKQh.d.cts} +22 -1
  45. package/dist/pdfDocument-5Do0LKQh.d.cts.map +1 -0
  46. package/dist/{pdfDocument-DRbT6HZw.mjs → pdfDocument-B6czyaVI.mjs} +46 -18
  47. package/dist/{pdfDocument-CH2E4UCc.d.mts → pdfDocument-B_0VSUHL.d.mts} +22 -1
  48. package/dist/pdfDocument-B_0VSUHL.d.mts.map +1 -0
  49. package/dist/{pdfDocument-C_7mrBCL.cjs → pdfDocument-BaQlOkYr.cjs} +48 -14
  50. package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
  51. package/dist/{src-DJaD-bJ2.mjs → src-Ci9ZjqhP.mjs} +7652 -195
  52. package/dist/{src-C-IDXuvi.cjs → src-DQ63jYIR.cjs} +8100 -277
  53. package/dist/{streamDecode-BamENT3k.mjs → streamDecode-DCpgTocN.mjs} +15 -2
  54. package/dist/{streamDecode-DcaZz309.cjs → streamDecode-kQ-REV7v.cjs} +26 -1
  55. package/package.json +12 -5
  56. package/dist/index-C1lZe66f.d.mts.map +0 -1
  57. package/dist/index-D1SvXWSI.d.cts.map +0 -1
  58. package/dist/pdfDocument-CH2E4UCc.d.mts.map +0 -1
  59. package/dist/pdfDocument-CzOipXnw.d.cts.map +0 -1
@@ -1,8 +1,8 @@
1
- import { $ as formatPdfDate, $n as translate, $t as applyRedactions, A as OutlineDestination, An as StructureType, Ar as setStrokingColor, At as QrCodeMatrix, B as EncryptOptions, Bn as Radians, Bt as RadialGradientOptions, C as VisibleSignatureOptions, Cn as annotationFromDict, Cr as setFillColorRgb, Ct as TableColumn, D as ViewerPreferences, Dn as PdfStructureElement, Dr as setStrokeColorGray, Dt as renderMultiPageTable, E as PdfViewerPreferences, En as AccessibilityIssue, Er as setStrokeColorCmyk, Et as TextRun, F as loadPdf, Fn as ParseSpeeds, Ft as GradientFill, G as CatalogOptions, Gn as radiansToDegrees, Gt as radialGradient, H as PdfPermissionFlags, Hn as degrees, Ht as buildGradientObjects, I as PdfSaveOptions, In as TextAlignment, It as LinearGradientOptions, J as PageEntry, Jn as rotationMatrix, Jt as EmbedPageOptions, K as DocumentMetadata, Kn as restoreState, Kt as tilingPattern, L as PdfWriter, Ln as TextRenderingMode, Lt as NormalizedStop, M as PdfOutlineItem, Mn as ImageAlignment, Mr as spotResourceName, Mt as encodeQrCode, N as PdfOutlineTree, Nn as LineCapStyle, Nt as qrCodeToOperators, O as buildViewerPreferencesDict, On as PdfStructureTree, Or as setStrokeColorRgb, Ot as renderTable, P as LoadPdfOptions, Pn as LineJoinStyle, Pt as ColorStop, Q as buildPageTree, Qn as skew, Qt as RedactionOptions, R as serializePdf, Rn as Angle, Rt as PatternFill, S as SignOptions, Sn as PdfAnnotation, Sr as setFillColorGray, St as TableCell, T as signPdf, Tn as createAnnotation, Tr as setStrokeColor, Tt as TableRow, U as decodePermissions, Un as degreesToRadians, Ut as buildPatternObjects, V as PdfEncryptionHandler, Vn as concatMatrix, Vt as TilingPatternOptions, W as encodePermissions, Wn as radians, Wt as linearGradient, X as buildDocumentStructure, Xn as scale, Xt as embedPageAsFormXObject, Y as buildCatalog, Yn as saveState, Yt as EmbeddedPdfPage, Z as buildInfoDict, Zn as setGraphicsState, Zt as RedactionMark, _ as EmbeddedFile, _n as parseSvgPath, _r as rgb, _t as CellContent, a as StandardFonts, an as endLayerContent, ar as SpotColor, at as DrawRectangleOptions, b as getAttachments, bn as AnnotationOptions, br as setFillColor, bt as NestedTableContent, c as PdfPluginManager, cn as svgToPdfOperators, cr as cmyk, ct as DrawTextOptions, d as SignatureVerificationResult, dn as SvgGradient, dr as colorToHex, dt as PageSize, en as getRedactionMarks, er as CmykColor, et as DrawCircleOptions, f as verifySignature, fn as SvgGradientStop, fr as componentsToColor, ft as PageSizes, g as addWatermarkToPage, gn as parseSvgColor, gr as hexToColor, gt as TransparencyGroupOptions, h as addWatermark, hn as parseSvg, hr as grayscale, ht as SoftMaskRef, i as StandardFontName, in as beginLayerContent, ir as RgbColor, it as DrawQrCodeOptions, j as OutlineItemOptions, jn as BlendMode, jr as spotColor, jt as QrCodeOptions, k as parseViewerPreferences, kn as StructureElementOptions, kr as setStrokeColorSpace, kt as ErrorCorrectionLevel, l as PluginDocument, ln as SvgDrawCommand, lr as cmykToRgb, lt as FontRef, m as WatermarkOptions, mn as interpolateLinearRgb, mr as deviceNResourceName, mt as SoftMaskBuilder, n as PdfDocument, nn as PdfLayer, nr as DeviceNColor, nt as DrawImageOptions, o as createPdf, on as SvgRenderOptions, or as applyFillColor, ot as DrawSquareOptions, p as verifySignatures, pn as applySpreadMethod, pr as deviceNColor, pt as PdfPage, q as DocumentStructure, qn as rotate, qt as DrawPageOptions, r as SetTitleOptions, rn as PdfLayerManager, rr as GrayscaleColor, rt as DrawLineOptions, s as PdfPlugin, sn as drawSvgOnPage, sr as applyStrokeColor, st as DrawSvgPathOptions, t as EmbedFontOptions, tn as markForRedaction, tr as Color, tt as DrawEllipseOptions, u as PluginPage, un as SvgElement, ur as colorToComponents, ut as ImageRef, v as attachFile, vn as parseSvgTransform, vr as rgbToCmyk, vt as DrawTableOptions, w as getSignatures, wn as buildAnnotationDict, wr as setFillingColor, wt as TableRenderResult, x as PdfSignatureInfo, xn as AnnotationType, xr as setFillColorCmyk, xt as PageContent, y as buildEmbeddedFilesNameTree, yn as AnnotationFlags, yr as setColorSpace, yt as MultiPageTableResult, z as EncryptAlgorithm, zn as Degrees, zt as RadialGradientFill } from "./pdfDocument-CH2E4UCc.mjs";
1
+ import { $ as formatPdfDate, $n as translate, $t as applyRedactions, A as OutlineDestination, An as StructureType, Ar as setStrokingColor, At as QrCodeMatrix, B as EncryptOptions, Bn as Radians, Bt as RadialGradientOptions, C as VisibleSignatureOptions, Cn as annotationFromDict, Cr as setFillColorRgb, Ct as TableColumn, D as ViewerPreferences, Dn as PdfStructureElement, Dr as setStrokeColorGray, Dt as renderMultiPageTable, E as PdfViewerPreferences, En as AccessibilityIssue, Er as setStrokeColorCmyk, Et as TextRun, F as loadPdf, Fn as ParseSpeeds, Ft as GradientFill, G as CatalogOptions, Gn as radiansToDegrees, Gt as radialGradient, H as PdfPermissionFlags, Hn as degrees, Ht as buildGradientObjects, I as PdfSaveOptions, In as TextAlignment$1, It as LinearGradientOptions, J as PageEntry, Jn as rotationMatrix, Jt as EmbedPageOptions, K as DocumentMetadata, Kn as restoreState, Kt as tilingPattern, L as PdfWriter, Ln as TextRenderingMode, Lt as NormalizedStop, M as PdfOutlineItem, Mn as ImageAlignment, Mr as spotResourceName, Mt as encodeQrCode, N as PdfOutlineTree, Nn as LineCapStyle, Nt as qrCodeToOperators, O as buildViewerPreferencesDict, On as PdfStructureTree, Or as setStrokeColorRgb, Ot as renderTable, P as LoadPdfOptions, Pn as LineJoinStyle, Pt as ColorStop, Q as buildPageTree, Qn as skew, Qt as RedactionOptions, R as serializePdf, Rn as Angle, Rt as PatternFill, S as SignOptions, Sn as PdfAnnotation, Sr as setFillColorGray, St as TableCell, T as signPdf, Tn as createAnnotation, Tr as setStrokeColor, Tt as TableRow, U as decodePermissions, Un as degreesToRadians, Ut as buildPatternObjects, V as PdfEncryptionHandler, Vn as concatMatrix, Vt as TilingPatternOptions, W as encodePermissions, Wn as radians, Wt as linearGradient, X as buildDocumentStructure, Xn as scale, Xt as embedPageAsFormXObject, Y as buildCatalog, Yn as saveState, Yt as EmbeddedPdfPage, Z as buildInfoDict, Zn as setGraphicsState, Zt as RedactionMark, _ as EmbeddedFile, _n as parseSvgPath, _r as rgb, _t as CellContent, a as StandardFonts, an as endLayerContent, ar as SpotColor, at as DrawRectangleOptions, b as getAttachments, bn as AnnotationOptions, br as setFillColor, bt as NestedTableContent, c as PdfPluginManager, cn as svgToPdfOperators, cr as cmyk, ct as DrawTextOptions, d as SignatureVerificationResult, dn as SvgGradient, dr as colorToHex, dt as PageSize, en as getRedactionMarks, er as CmykColor, et as DrawCircleOptions, f as verifySignature, fn as SvgGradientStop, fr as componentsToColor, ft as PageSizes, g as addWatermarkToPage, gn as parseSvgColor, gr as hexToColor, gt as TransparencyGroupOptions, h as addWatermark, hn as parseSvg, hr as grayscale, ht as SoftMaskRef, i as StandardFontName, in as beginLayerContent, ir as RgbColor, it as DrawQrCodeOptions, j as OutlineItemOptions, jn as BlendMode, jr as spotColor, jt as QrCodeOptions, k as parseViewerPreferences, kn as StructureElementOptions, kr as setStrokeColorSpace, kt as ErrorCorrectionLevel, l as PluginDocument, ln as SvgDrawCommand, lr as cmykToRgb, lt as FontRef, m as WatermarkOptions, mn as interpolateLinearRgb, mr as deviceNResourceName, mt as SoftMaskBuilder, n as PdfDocument, nn as PdfLayer, nr as DeviceNColor, nt as DrawImageOptions, o as createPdf, on as SvgRenderOptions, or as applyFillColor, ot as DrawSquareOptions, p as verifySignatures, pn as applySpreadMethod, pr as deviceNColor, pt as PdfPage, q as DocumentStructure, qn as rotate, qt as DrawPageOptions, r as SetTitleOptions, rn as PdfLayerManager, rr as GrayscaleColor, rt as DrawLineOptions, s as PdfPlugin, sn as drawSvgOnPage, sr as applyStrokeColor, st as DrawSvgPathOptions, t as EmbedFontOptions, tn as markForRedaction, tr as Color, tt as DrawEllipseOptions, u as PluginPage, un as SvgElement, ur as colorToComponents, ut as ImageRef, v as attachFile, vn as parseSvgTransform, vr as rgbToCmyk, vt as DrawTableOptions, w as getSignatures, wn as buildAnnotationDict, wr as setFillingColor, wt as TableRenderResult, x as PdfSignatureInfo, xn as AnnotationType, xr as setFillColorCmyk, xt as PageContent, y as buildEmbeddedFilesNameTree, yn as AnnotationFlags, yr as setColorSpace, yt as MultiPageTableResult, z as EncryptAlgorithm, zn as Degrees, zt as RadialGradientFill } from "./pdfDocument-B_0VSUHL.mjs";
2
2
  import { C as PdfRef, E as RegistryEntry, S as PdfObjectRegistry, T as PdfString, _ as PdfDict, a as PdfListboxField, b as PdfNumber, c as PdfCheckboxField, d as FieldType, f as PdfField, g as PdfBool, h as PdfArray, i as PdfButtonField, l as PdfTextField, m as ByteWriter, n as RefResolver, o as PdfDropdownField, p as WidgetAnnotationHost, r as PdfSignatureField, s as PdfRadioGroup, t as PdfForm, u as FieldFlags, v as PdfName, w as PdfStream, x as PdfObject, y as PdfNull } from "./pdfForm-Ca86NDWn.mjs";
3
- import { A as movePage, B as asPdfName, C as copyPages, D as cropPage, E as CropBox, F as rotateAllPages, I as rotatePage, L as asNumber, M as removePages, N as resizePage, O as getPageSize, P as reversePages, R as asPDFName, S as PageRange, T as splitPdf, V as asPdfNumber, _ as LayoutSinglelineResult, a as FontEmbeddingResult, b as layoutMultilineText, c as SubsetCmap, d as extractMetrics, f as ComputeFontSizeOptions, g as LayoutSinglelineOptions, h as LayoutMultilineResult, i as FontDescriptorData, j as removePage, k as insertPage, l as SubsetResult, m as LayoutMultilineOptions, n as CIDSystemInfoData, o as Type0FontData, p as LayoutCombedOptions, r as EmbeddedFont, s as WidthEntry, t as CIDFontData, u as FontMetrics, v as computeFontSize, w as mergePdfs, x as layoutSinglelineText, y as layoutCombedText, z as asPDFNumber } from "./fontEmbed-DtA_riGC.mjs";
3
+ import { A as movePage, B as asPdfName, C as copyPages, D as cropPage, E as CropBox, F as rotateAllPages, I as rotatePage, L as asNumber, M as removePages, N as resizePage, O as getPageSize, P as reversePages, R as asPDFName, S as PageRange, T as splitPdf, V as asPdfNumber, _ as LayoutSinglelineResult, a as FontEmbeddingResult, b as layoutMultilineText, c as SubsetCmap, d as extractMetrics, f as ComputeFontSizeOptions, g as LayoutSinglelineOptions, h as LayoutMultilineResult, i as FontDescriptorData, j as removePage, k as insertPage, l as SubsetResult, m as LayoutMultilineOptions, n as CIDSystemInfoData, o as Type0FontData, p as LayoutCombedOptions, r as EmbeddedFont, s as WidthEntry, t as CIDFontData, u as FontMetrics, v as computeFontSize, w as mergePdfs, x as layoutSinglelineText, y as layoutCombedText, z as asPDFNumber } from "./fontEmbed-N-VWoZ0F.mjs";
4
4
  import { a as ListboxAppearanceOptions, c as TextAppearanceOptions, d as generateDropdownAppearance, f as generateListboxAppearance, h as generateTextAppearance, i as DropdownAppearanceOptions, l as generateButtonAppearance, m as generateSignatureAppearance, n as ButtonAppearanceOptions, o as RadioAppearanceOptions, p as generateRadioAppearance, r as CheckboxAppearanceOptions, s as SignatureAppearanceOptions, t as AppearanceProviderFor, u as generateCheckboxAppearance } from "./fieldAppearance-_CZdoUCD.mjs";
5
- import { _ as parseContentStream, a as ImageInfo, c as PdfParseError, d as TextExtractionOptions, f as TextItem, g as Operand, h as ContentStreamOperator, i as analyzeImages, l as formatHexContext, m as extractTextWithPositions, n as AnalyzeImagesOptions, o as decodeImageStream, p as extractText, r as ImageAnalysis, s as extractImages, t as AnalysisReport, u as decodeStream } from "./compressionAnalysis-CDOp_vPr.mjs";
5
+ import { _ as parseContentStream, a as ImageInfo, c as PdfParseError, d as TextExtractionOptions, f as TextItem$1, g as Operand, h as ContentStreamOperator, i as analyzeImages, l as formatHexContext, m as extractTextWithPositions, n as AnalyzeImagesOptions, o as decodeImageStream, p as extractText, r as ImageAnalysis, s as extractImages$1, t as AnalysisReport, u as decodeStream } from "./compressionAnalysis-InMeGrqw.mjs";
6
6
 
7
7
  //#region \0rolldown/runtime.js
8
8
  //#endregion
@@ -1077,6 +1077,277 @@ declare function sha384(data: Uint8Array): Promise<Uint8Array>;
1077
1077
  */
1078
1078
  declare function sha512(data: Uint8Array): Promise<Uint8Array>;
1079
1079
  //#endregion
1080
+ //#region src/form/fieldValidation.d.ts
1081
+ /**
1082
+ * Result of a field validation check.
1083
+ *
1084
+ * @property valid - Whether the value passed validation.
1085
+ * @property message - Optional human-readable error message when invalid.
1086
+ */
1087
+ interface ValidationResult {
1088
+ valid: boolean;
1089
+ message?: string;
1090
+ }
1091
+ /**
1092
+ * Validate a field's value using a validation script string.
1093
+ *
1094
+ * The script is parsed to determine the validation type. If the script
1095
+ * matches a known Acrobat validation pattern (email, phone, range, etc.),
1096
+ * the corresponding built-in validation is applied. Otherwise, the value
1097
+ * is considered valid (custom scripts are not executed).
1098
+ *
1099
+ * @param field - The PdfField being validated.
1100
+ * @param value - The string value to validate.
1101
+ * @param script - The validation script (Acrobat JavaScript).
1102
+ * @returns A {@link ValidationResult} indicating whether the value is valid.
1103
+ */
1104
+ declare function validateFieldValue(field: PdfField, value: string, script: string): ValidationResult;
1105
+ //#endregion
1106
+ //#region src/form/acrobatSpecialBuiltins.d.ts
1107
+ /**
1108
+ * Create a special field formatter matching Acrobat's `AFSpecial_Format`.
1109
+ *
1110
+ * | psf | Format | Example |
1111
+ * | --- | ------------------ | ------------- |
1112
+ * | 0 | ZIP Code | 12345 |
1113
+ * | 1 | ZIP+4 | 12345-6789 |
1114
+ * | 2 | Phone | (123) 456-7890 |
1115
+ * | 3 | SSN | 123-45-6789 |
1116
+ *
1117
+ * @param psf - The predefined special format type (0–3).
1118
+ * @returns A function that formats a digit string using the special mask.
1119
+ */
1120
+ declare function AFSpecial_Format(psf: number): (value: string) => string;
1121
+ //#endregion
1122
+ //#region src/form/fieldVisibility.d.ts
1123
+ /**
1124
+ * A condition that determines whether a field should be visible,
1125
+ * based on another field's value.
1126
+ *
1127
+ * @property operator - The comparison operator.
1128
+ * @property value - The comparison value (not used for 'empty'/'notEmpty').
1129
+ */
1130
+ interface VisibilityCondition {
1131
+ operator: "equals" | "notEquals" | "contains" | "empty" | "notEmpty";
1132
+ value?: string;
1133
+ }
1134
+ /**
1135
+ * Set the visibility of a form field.
1136
+ *
1137
+ * When `visible` is `true`, the Hidden and NoView flags are cleared.
1138
+ * When `visible` is `false`, the Hidden flag is set (the field is
1139
+ * completely hidden — not displayed and not printed).
1140
+ *
1141
+ * @param field - The field to show or hide.
1142
+ * @param visible - Whether the field should be visible.
1143
+ */
1144
+ declare function setFieldVisibility(field: PdfField, visible: boolean): void;
1145
+ /**
1146
+ * Add a JavaScript action to a field that toggles the visibility of
1147
+ * another field based on a condition.
1148
+ *
1149
+ * This creates an `/AA` (additional actions) entry with a `/V`
1150
+ * (value-changed) trigger containing a JavaScript action. The script
1151
+ * reads the trigger field's value and shows/hides the target field
1152
+ * according to the given condition.
1153
+ *
1154
+ * Note: The generated JavaScript uses Acrobat's `getField()` API and
1155
+ * `display` property. It will only execute in viewers that support
1156
+ * JavaScript (e.g., Adobe Acrobat, Foxit).
1157
+ *
1158
+ * @param field - The field to attach the action to (trigger).
1159
+ * @param triggerField - The name of the field whose value is checked.
1160
+ * @param condition - The condition to evaluate.
1161
+ */
1162
+ declare function addVisibilityAction(field: PdfField, triggerField: string, condition: VisibilityCondition): void;
1163
+ //#endregion
1164
+ //#region src/form/fieldReferences.d.ts
1165
+ /**
1166
+ * Resolve a field name to a PdfField instance.
1167
+ *
1168
+ * Handles hierarchical names (e.g., `"form.section.field"`) by looking
1169
+ * up the fully-qualified name in the form's field index.
1170
+ *
1171
+ * @param form - The PdfForm to search.
1172
+ * @param fieldName - The field name (partial or fully-qualified).
1173
+ * @returns The PdfField if found, or `null`.
1174
+ */
1175
+ declare function resolveFieldReference(form: PdfForm, fieldName: string): PdfField | null;
1176
+ /**
1177
+ * Get a field's value by name.
1178
+ *
1179
+ * Convenience function that resolves the field and returns its string value.
1180
+ *
1181
+ * @param form - The PdfForm to search.
1182
+ * @param fieldName - The field name.
1183
+ * @returns The field's value as a string, or `null` if the field is not found.
1184
+ */
1185
+ declare function getFieldValue(form: PdfForm, fieldName: string): string | null;
1186
+ /**
1187
+ * Set a field's value by name.
1188
+ *
1189
+ * Convenience function that resolves the field and sets its value.
1190
+ *
1191
+ * @param form - The PdfForm to search.
1192
+ * @param fieldName - The field name.
1193
+ * @param value - The value to set.
1194
+ * @returns `true` if the field was found and the value was set, `false` otherwise.
1195
+ */
1196
+ declare function setFieldValue(form: PdfForm, fieldName: string, value: string): boolean;
1197
+ //#endregion
1198
+ //#region src/form/scriptSandbox.d.ts
1199
+ /**
1200
+ * @module form/scriptSandbox
1201
+ *
1202
+ * Sandboxed execution environment for PDF form JavaScript.
1203
+ *
1204
+ * PDF forms can contain JavaScript for calculations, validation, and
1205
+ * formatting (a subset of the Acrobat JavaScript API). This module
1206
+ * provides a secure sandbox that executes those scripts without
1207
+ * granting access to the host environment.
1208
+ */
1209
+ /** Options for creating a sandbox. */
1210
+ interface SandboxOptions {
1211
+ /** Maximum execution time in milliseconds (default: 1000). */
1212
+ timeout?: number | undefined;
1213
+ /** Maximum memory usage in bytes (advisory, default: 10 MB). */
1214
+ maxMemory?: number | undefined;
1215
+ /** Additional global names to allow in the sandbox scope. */
1216
+ allowedGlobals?: string[] | undefined;
1217
+ }
1218
+ /** Result of executing a script in the sandbox. */
1219
+ interface SandboxResult {
1220
+ /** Whether the script executed without errors. */
1221
+ success: boolean;
1222
+ /** The return value of the script expression (if any). */
1223
+ returnValue?: unknown;
1224
+ /** Error message if `success` is false. */
1225
+ error?: string;
1226
+ /** Execution time in milliseconds. */
1227
+ executionTimeMs: number;
1228
+ }
1229
+ /**
1230
+ * A sandboxed execution environment for PDF form JavaScript.
1231
+ * Create via {@link createSandbox}.
1232
+ */
1233
+ declare class FormScriptSandbox {
1234
+ private readonly timeout;
1235
+ private readonly allowedGlobals;
1236
+ private fieldValues;
1237
+ private builtins;
1238
+ private destroyed;
1239
+ constructor(options?: SandboxOptions);
1240
+ /** Execute a script in the sandbox. */
1241
+ execute(script: string): SandboxResult;
1242
+ /** Set field values available to scripts. */
1243
+ setFieldValues(values: Map<string, string>): void;
1244
+ /** Get field values (possibly modified by scripts). */
1245
+ getFieldValues(): Map<string, string>;
1246
+ /** Register a built-in function. */
1247
+ registerBuiltin(name: string, fn: (...args: unknown[]) => unknown): void;
1248
+ /** Reset state (field values and custom builtins). */
1249
+ reset(): void;
1250
+ /** Destroy the sandbox. */
1251
+ destroy(): void;
1252
+ private registerDefaultBuiltins;
1253
+ private buildScope;
1254
+ }
1255
+ /**
1256
+ * Create a new sandboxed execution environment for PDF form scripts.
1257
+ */
1258
+ declare function createSandbox(options?: SandboxOptions): FormScriptSandbox;
1259
+ //#endregion
1260
+ //#region src/form/acrobatBuiltins.d.ts
1261
+ /**
1262
+ * @module form/acrobatBuiltins
1263
+ *
1264
+ * Acrobat-compatible number formatting and validation built-ins.
1265
+ *
1266
+ * Implements:
1267
+ * - `AFNumber_Format` — format a number string for display
1268
+ * - `AFNumber_Keystroke` — validate a keystroke for number input
1269
+ * - `formatNumber` — general-purpose number formatter
1270
+ * - `parseFormattedNumber` — parse a formatted number back to numeric
1271
+ *
1272
+ * These are pure string transformers — they do not require PDF access.
1273
+ *
1274
+ * Reference: Acrobat JavaScript Scripting Reference,
1275
+ * AFNumber_Format / AFNumber_Keystroke.
1276
+ */
1277
+ /**
1278
+ * Options for the general-purpose number formatter.
1279
+ */
1280
+ interface NumberFormatOptions {
1281
+ /** Number of decimal places (default: 2). */
1282
+ decimals?: number;
1283
+ /** Thousands separator character (default: ','). */
1284
+ thousandsSep?: string;
1285
+ /** Decimal separator character (default: '.'). */
1286
+ decimalSep?: string;
1287
+ /** How to display negative numbers (default: 'minus'). */
1288
+ negativeStyle?: "minus" | "parens";
1289
+ /** Currency symbol (default: none). */
1290
+ currency?: string;
1291
+ /** Whether the currency symbol is prepended (default: true). */
1292
+ currencyPrepend?: boolean;
1293
+ }
1294
+ /**
1295
+ * Format a number according to the given options.
1296
+ *
1297
+ * @param value The number to format.
1298
+ * @param options Formatting options.
1299
+ * @returns The formatted string.
1300
+ */
1301
+ declare function formatNumber(value: number, options?: NumberFormatOptions): string;
1302
+ /**
1303
+ * Create an Acrobat-compatible number formatting function.
1304
+ *
1305
+ * Returns a function that takes a raw value string and returns the
1306
+ * formatted display string.
1307
+ *
1308
+ * @param nDec Number of decimal places.
1309
+ * @param sepStyle Separator style (0–3). See table above.
1310
+ * @param negStyle Negative style: 0=minus, 1=red (treated as minus),
1311
+ * 2=parens, 3=red+parens (treated as parens).
1312
+ * @param currStyle Currency style (legacy, not used).
1313
+ * @param strCurrency Currency symbol string.
1314
+ * @param bCurrencyPrepend `true` to prepend the currency symbol.
1315
+ * @returns A formatting function `(value: string) => string`.
1316
+ */
1317
+ declare function AFNumber_Format(nDec: number, sepStyle: number, negStyle: number, currStyle: number, strCurrency: string, bCurrencyPrepend: boolean): (value: string) => string;
1318
+ //#endregion
1319
+ //#region src/form/acrobatDateBuiltins.d.ts
1320
+ /**
1321
+ * Format a `Date` object using an Acrobat-compatible format string.
1322
+ *
1323
+ * @param date The Date to format.
1324
+ * @param format The Acrobat format string.
1325
+ * @returns The formatted date string.
1326
+ */
1327
+ declare function formatDate$1(date: Date, format: string): string;
1328
+ /**
1329
+ * Parse a date string using an Acrobat-compatible format string.
1330
+ *
1331
+ * Attempts to extract date components (year, month, day, hour, minute,
1332
+ * second) from the input text based on the format pattern.
1333
+ *
1334
+ * @param text The date string to parse.
1335
+ * @param format The Acrobat format string.
1336
+ * @returns A `Date` object, or `null` if parsing fails.
1337
+ */
1338
+ declare function parseAcrobatDate(text: string, format: string): Date | null;
1339
+ /**
1340
+ * Create an Acrobat-compatible date formatting function.
1341
+ *
1342
+ * The returned function takes a raw date string (which may be in
1343
+ * various formats) and returns it formatted according to the given
1344
+ * Acrobat format pattern.
1345
+ *
1346
+ * @param format The Acrobat date format string (e.g. `"mm/dd/yyyy"`).
1347
+ * @returns A formatting function `(value: string) => string`.
1348
+ */
1349
+ declare function AFDate_FormatEx(format: string): (value: string) => string;
1350
+ //#endregion
1080
1351
  //#region src/annotation/types/textAnnotation.d.ts
1081
1352
  /** Standard icon names for text annotations. */
1082
1353
  type TextAnnotationIcon = "Comment" | "Key" | "Note" | "Help" | "NewParagraph" | "Paragraph" | "Insert";
@@ -1737,7 +2008,78 @@ interface SearchOptions {
1737
2008
  * @param options - Case-sensitivity / whole-word options (string queries).
1738
2009
  * @returns The matches in document order.
1739
2010
  */
1740
- declare function searchTextItems(items: readonly TextItem[], query: string | RegExp, options?: SearchOptions): TextMatch[];
2011
+ declare function searchTextItems(items: readonly TextItem$1[], query: string | RegExp, options?: SearchOptions): TextMatch[];
2012
+ //#endregion
2013
+ //#region src/parser/jpeg2000Decode.d.ts
2014
+ /**
2015
+ * @module parser/jpeg2000Decode
2016
+ *
2017
+ * JPEG2000 (JPX / JP2) stream decoder for the PDF JPXDecode filter.
2018
+ *
2019
+ * JPEG2000 (ITU-T T.800 / ISO/IEC 15444-1) is a wavelet-based image
2020
+ * compression standard that supports both lossy and lossless coding.
2021
+ * This module implements a pure-JS decoder covering:
2022
+ *
2023
+ * - JP2 file format box parsing (signature, file type, header, codestream)
2024
+ * - J2K codestream marker parsing (SOC, SIZ, COD, QCD, SOT, SOD, EOC)
2025
+ * - Tier-2 decoding (packet headers, code-block inclusion trees)
2026
+ * - Tier-1 decoding (MQ arithmetic coder for code-block bit-planes)
2027
+ * - DWT: 5/3 reversible (lossless) and 9/7 irreversible (lossy)
2028
+ * - Color transforms: ICT (lossy) and RCT (lossless)
2029
+ * - JP2 color specification box parsing (sRGB, greyscale, sYCC, ICC)
2030
+ * - Channel definition box parsing for alpha channel identification
2031
+ * - Multi-resolution decoding via reduceResolution parameter
2032
+ *
2033
+ * Focus: single-tile images (most common in PDFs), 8-bit and 16-bit
2034
+ * component depths, both lossy and lossless modes.
2035
+ *
2036
+ * Reference: PDF 1.7 spec, SS7.4.9; ITU-T T.800; ISO/IEC 15444-1.
2037
+ *
2038
+ * @packageDocumentation
2039
+ */
2040
+ /**
2041
+ * Color space type for a decoded JPEG2000 image.
2042
+ */
2043
+ type Jpeg2000ColorSpace = "srgb" | "greyscale" | "sycc" | "icc";
2044
+ /**
2045
+ * Decoded JPEG2000 image data.
2046
+ */
2047
+ interface Jpeg2000Image {
2048
+ /** Image width in pixels. */
2049
+ width: number;
2050
+ /** Image height in pixels. */
2051
+ height: number;
2052
+ /** Number of color components. */
2053
+ components: number;
2054
+ /** Bits per component (typically 8 or 16). */
2055
+ bitsPerComponent: number;
2056
+ /** Raw decoded pixel data (interleaved components). */
2057
+ data: Uint8Array;
2058
+ /** Detected color space (from JP2 boxes or codestream). */
2059
+ colorSpace?: Jpeg2000ColorSpace;
2060
+ /** Embedded ICC profile bytes (from JP2 colr box). */
2061
+ iccProfile?: Uint8Array;
2062
+ }
2063
+ /**
2064
+ * Parameters controlling JPEG2000 decoding behavior.
2065
+ */
2066
+ interface Jpeg2000DecodeParams {
2067
+ /**
2068
+ * Number of highest resolution levels to skip.
2069
+ * 0 = full resolution, 1 = half, 2 = quarter, etc.
2070
+ */
2071
+ reduceResolution?: number;
2072
+ /** Maximum number of components to decode. */
2073
+ maxComponents?: number;
2074
+ }
2075
+ /**
2076
+ * Decode a JPEG2000 (JP2 or raw J2K codestream) image.
2077
+ *
2078
+ * @param data - JP2 file bytes or raw J2K codestream bytes.
2079
+ * @param params - Optional decode parameters.
2080
+ * @returns Decoded image with raw pixel data.
2081
+ */
2082
+ declare function decodeJpeg2000(data: Uint8Array, params?: Jpeg2000DecodeParams): Jpeg2000Image;
1741
2083
  //#endregion
1742
2084
  //#region src/signature/byteRange.d.ts
1743
2085
  /**
@@ -2065,6 +2407,769 @@ declare function parseTimestampResponse(response: Uint8Array): TimestampResult;
2065
2407
  */
2066
2408
  declare function requestTimestamp(dataHash: Uint8Array, tsaUrl: string, hashAlgorithm?: "SHA-256" | "SHA-384" | "SHA-512"): Promise<TimestampResult>;
2067
2409
  //#endregion
2410
+ //#region src/signature/ocsp.d.ts
2411
+ /**
2412
+ * Result of an OCSP certificate status check.
2413
+ */
2414
+ interface OcspResult$1 {
2415
+ /** Certificate status. */
2416
+ status: "good" | "revoked" | "unknown";
2417
+ /** Beginning of validity interval. */
2418
+ thisUpdate: Date;
2419
+ /** End of validity interval (if present). */
2420
+ nextUpdate?: Date | undefined;
2421
+ /** When the certificate was revoked (if revoked). */
2422
+ revokedAt?: Date | undefined;
2423
+ /** Revocation reason string (if revoked). */
2424
+ revocationReason?: string | undefined;
2425
+ }
2426
+ /**
2427
+ * Extract the OCSP responder URL from a certificate's Authority
2428
+ * Information Access (AIA) extension.
2429
+ *
2430
+ * The AIA extension (OID 1.3.6.1.5.5.7.1.1) contains:
2431
+ * ```
2432
+ * AuthorityInfoAccessSyntax ::= SEQUENCE OF AccessDescription
2433
+ * AccessDescription ::= SEQUENCE {
2434
+ * accessMethod OID,
2435
+ * accessLocation GeneralName
2436
+ * }
2437
+ * ```
2438
+ *
2439
+ * We look for accessMethod = id-ad-ocsp (1.3.6.1.5.5.7.48.1) and
2440
+ * extract the URI from the GeneralName (tag [6] uniformResourceIdentifier).
2441
+ *
2442
+ * @param cert DER-encoded X.509 certificate.
2443
+ * @returns The OCSP responder URL, or `null` if not found.
2444
+ */
2445
+ declare function extractOcspUrl(cert: Uint8Array): string | null;
2446
+ /**
2447
+ * Check the revocation status of a certificate using OCSP.
2448
+ *
2449
+ * Builds an OCSP request, sends it to the specified OCSP responder
2450
+ * URL via HTTP POST (using `fetch()`), and parses the response.
2451
+ *
2452
+ * @param cert DER-encoded certificate to check.
2453
+ * @param issuerCert DER-encoded issuer certificate.
2454
+ * @param ocspUrl URL of the OCSP responder.
2455
+ * @returns The OCSP status result.
2456
+ */
2457
+ declare function checkCertificateStatus(cert: Uint8Array, issuerCert: Uint8Array, ocspUrl: string): Promise<OcspResult$1>;
2458
+ //#endregion
2459
+ //#region src/signature/crl.d.ts
2460
+ /**
2461
+ * A single revoked certificate entry in a CRL.
2462
+ */
2463
+ interface CrlEntry {
2464
+ /** Serial number of the revoked certificate (hex-encoded). */
2465
+ serialNumber: string;
2466
+ /** Date when the certificate was revoked. */
2467
+ revocationDate: Date;
2468
+ /** CRL reason code string (if present). */
2469
+ reason?: string | undefined;
2470
+ }
2471
+ /**
2472
+ * Parsed CRL data.
2473
+ */
2474
+ interface CrlData$1 {
2475
+ /** Issuer distinguished name (hex-encoded DER bytes). */
2476
+ issuer: string;
2477
+ /** Date this CRL was issued. */
2478
+ thisUpdate: Date;
2479
+ /** Date the next CRL will be issued (if present). */
2480
+ nextUpdate?: Date | undefined;
2481
+ /** List of revoked certificate entries. */
2482
+ entries: CrlEntry[];
2483
+ }
2484
+ /**
2485
+ * Download and parse a CRL from a URL.
2486
+ *
2487
+ * Uses `fetch()` to retrieve the CRL and then parses it as DER.
2488
+ * If the response is PEM-encoded, it is automatically converted to DER.
2489
+ *
2490
+ * @param url URL of the CRL (typically an HTTP URL from CRL Distribution Points).
2491
+ * @returns Parsed CRL data.
2492
+ */
2493
+ declare function downloadCrl(url: string): Promise<CrlData$1>;
2494
+ /**
2495
+ * Check if a certificate's serial number appears in a CRL.
2496
+ *
2497
+ * Compares the certificate's serial number against all entries
2498
+ * in the CRL's revoked certificates list.
2499
+ *
2500
+ * @param cert DER-encoded X.509 certificate to check.
2501
+ * @param crl Parsed CRL data.
2502
+ * @returns `true` if the certificate is listed as revoked.
2503
+ */
2504
+ declare function isCertificateRevoked(cert: Uint8Array, crl: CrlData$1): boolean;
2505
+ /**
2506
+ * Extract CRL Distribution Points URLs from a certificate.
2507
+ *
2508
+ * Looks for the CRL Distribution Points extension (OID 2.5.29.31)
2509
+ * and extracts HTTP/LDAP URIs from the DistributionPoint structures.
2510
+ *
2511
+ * ```
2512
+ * CRLDistributionPoints ::= SEQUENCE OF DistributionPoint
2513
+ * DistributionPoint ::= SEQUENCE {
2514
+ * distributionPoint [0] DistributionPointName OPTIONAL,
2515
+ * reasons [1] ReasonFlags OPTIONAL,
2516
+ * cRLIssuer [2] GeneralNames OPTIONAL
2517
+ * }
2518
+ * DistributionPointName ::= CHOICE {
2519
+ * fullName [0] GeneralNames,
2520
+ * nameRelativeToCRLIssuer [1] RelativeDistinguishedName
2521
+ * }
2522
+ * ```
2523
+ *
2524
+ * @param cert DER-encoded X.509 certificate.
2525
+ * @returns Array of CRL URLs found in the certificate.
2526
+ */
2527
+ declare function extractCrlUrls(cert: Uint8Array): string[];
2528
+ //#endregion
2529
+ //#region src/signature/chainValidator.d.ts
2530
+ /**
2531
+ * Options for certificate chain validation.
2532
+ */
2533
+ interface ChainValidationOptions {
2534
+ /** Trusted root certificates (DER-encoded). If empty, self-signed roots are trusted. */
2535
+ trustedCerts?: Uint8Array[] | undefined;
2536
+ /** Whether to check certificate revocation via OCSP/CRL. Default: false. */
2537
+ checkRevocation?: boolean | undefined;
2538
+ /** The point in time for validity checking. Default: current time. */
2539
+ validationTime?: Date | undefined;
2540
+ }
2541
+ /**
2542
+ * Validation status for a single certificate in the chain.
2543
+ */
2544
+ interface CertificateStatus {
2545
+ /** Subject Common Name of the certificate. */
2546
+ subject: string;
2547
+ /** Issuer Common Name of the certificate. */
2548
+ issuer: string;
2549
+ /** Serial number (hex-encoded). */
2550
+ serialNumber: string;
2551
+ /** Whether the certificate is valid at the validation time. */
2552
+ withinValidityPeriod: boolean;
2553
+ /** Whether the issuer's signature on this certificate is valid. */
2554
+ signatureValid: boolean;
2555
+ /** Whether basic constraints are satisfied (CA flag for non-leaf certs). */
2556
+ basicConstraintsValid: boolean;
2557
+ /** Certificate validity start. */
2558
+ notBefore: Date;
2559
+ /** Certificate validity end. */
2560
+ notAfter: Date;
2561
+ /** Error messages (if any). */
2562
+ errors: string[];
2563
+ }
2564
+ /**
2565
+ * Result of building a certificate chain.
2566
+ */
2567
+ interface CertificateChainResult {
2568
+ /** The ordered chain from leaf to root. */
2569
+ chain: Uint8Array[];
2570
+ /** Whether a complete chain to a root/trusted cert was found. */
2571
+ complete: boolean;
2572
+ }
2573
+ /**
2574
+ * Result of validating a certificate chain.
2575
+ */
2576
+ interface ChainValidationResult {
2577
+ /** Overall validity of the chain. */
2578
+ valid: boolean;
2579
+ /** Per-certificate validation status (leaf to root order). */
2580
+ certificates: CertificateStatus[];
2581
+ /** Summary error messages. */
2582
+ errors: string[];
2583
+ }
2584
+ /**
2585
+ * Build a certificate chain from a leaf certificate to a root.
2586
+ *
2587
+ * Starting from the leaf, finds the issuer among the provided
2588
+ * intermediate certificates, repeating until a self-signed root
2589
+ * is found or no matching issuer exists.
2590
+ *
2591
+ * @param leaf DER-encoded leaf certificate.
2592
+ * @param intermediates DER-encoded intermediate certificates.
2593
+ * @returns The ordered chain (leaf first, root last) and
2594
+ * whether it is complete.
2595
+ */
2596
+ declare function buildCertificateChain(leaf: Uint8Array, intermediates: Uint8Array[]): CertificateChainResult;
2597
+ /**
2598
+ * Validate a certificate chain.
2599
+ *
2600
+ * Checks each certificate in the chain for:
2601
+ * 1. **Signature verification** — the issuer's public key verifies
2602
+ * the signature on the subject certificate.
2603
+ * 2. **Validity period** — the certificate is within its notBefore
2604
+ * and notAfter dates at the validation time.
2605
+ * 3. **Basic constraints** — intermediate/root certificates have
2606
+ * the CA flag set in the BasicConstraints extension.
2607
+ *
2608
+ * @param chain Ordered array of DER-encoded certificates (leaf first, root last).
2609
+ * @param options Validation options.
2610
+ * @returns Validation result with per-certificate status.
2611
+ */
2612
+ declare function validateCertificateChain(chain: Uint8Array[], options?: ChainValidationOptions): Promise<ChainValidationResult>;
2613
+ //#endregion
2614
+ //#region src/signature/offlineRevocation.d.ts
2615
+ /**
2616
+ * Embedded revocation data extracted from a PKCS#7 signature.
2617
+ *
2618
+ * Contains arrays of raw DER-encoded OCSP responses and CRLs
2619
+ * that were embedded in the signature's signed or unsigned attributes.
2620
+ */
2621
+ interface EmbeddedRevocationData {
2622
+ /** DER-encoded OCSP responses. */
2623
+ ocsps: Uint8Array[];
2624
+ /** DER-encoded CRLs. */
2625
+ crls: Uint8Array[];
2626
+ }
2627
+ /**
2628
+ * Result of an offline revocation check.
2629
+ */
2630
+ interface OfflineRevocationResult {
2631
+ /** Whether a revocation check was actually performed. */
2632
+ checked: boolean;
2633
+ /** Certificate status: good, revoked, unknown, or no-data. */
2634
+ status: "good" | "revoked" | "unknown" | "no-data";
2635
+ /** Source of the revocation information used. */
2636
+ source: "ocsp" | "crl" | "none";
2637
+ /** Human-readable details about the check. */
2638
+ details?: string | undefined;
2639
+ }
2640
+ /**
2641
+ * Extract embedded revocation data (CRLs and OCSP responses) from
2642
+ * a DER-encoded PKCS#7/CMS signature.
2643
+ *
2644
+ * Searches both signed and unsigned attributes for:
2645
+ * - adbe-revocationInfoArchival (OID 1.2.840.113583.1.1.8)
2646
+ * - id-smime-aa-ets-revocationRefs / revocationValues
2647
+ *
2648
+ * @param signatureBytes DER-encoded PKCS#7 signature bytes.
2649
+ * @returns Extracted CRLs and OCSP responses.
2650
+ */
2651
+ declare function extractEmbeddedRevocationData(signatureBytes: Uint8Array): EmbeddedRevocationData;
2652
+ /**
2653
+ * Verify the revocation status of a certificate using only
2654
+ * embedded revocation data (no network access).
2655
+ *
2656
+ * Checks OCSP responses first (preferred), then falls back to CRLs.
2657
+ * If no embedded revocation data covers the certificate, returns
2658
+ * status 'no-data'.
2659
+ *
2660
+ * @param cert DER-encoded X.509 certificate to check.
2661
+ * @param revocationData Embedded revocation data from `extractEmbeddedRevocationData`.
2662
+ * @returns Revocation check result.
2663
+ */
2664
+ declare function verifyOfflineRevocation(cert: Uint8Array, revocationData: EmbeddedRevocationData): OfflineRevocationResult;
2665
+ //#endregion
2666
+ //#region src/signature/trustStore.d.ts
2667
+ /**
2668
+ * Options for creating a TrustStore.
2669
+ */
2670
+ interface TrustStoreOptions {
2671
+ /** Initial set of trusted root certificates (DER-encoded). */
2672
+ certificates?: Uint8Array[] | undefined;
2673
+ }
2674
+ /**
2675
+ * A custom trust store for managing trusted root CA certificates.
2676
+ *
2677
+ * Certificates are stored in a Map keyed by a SHA-256 hash of their
2678
+ * DER-encoded subject Name, enabling O(1) issuer lookups.
2679
+ *
2680
+ * @example
2681
+ * ```ts
2682
+ * import { TrustStore } from 'modern-pdf-lib';
2683
+ *
2684
+ * const store = new TrustStore();
2685
+ * store.addCertificate(rootCaDer);
2686
+ *
2687
+ * if (store.isTrusted(someCert)) {
2688
+ * console.log('Certificate is a trusted root');
2689
+ * }
2690
+ *
2691
+ * const issuer = store.findIssuer(leafCert);
2692
+ * if (issuer) {
2693
+ * console.log('Found issuer in trust store');
2694
+ * }
2695
+ * ```
2696
+ */
2697
+ declare class TrustStore {
2698
+ /**
2699
+ * Internal storage: subject-hash -> array of StoredCert.
2700
+ * Multiple certificates may share the same subject (e.g. re-issued CAs).
2701
+ */
2702
+ private readonly _certs;
2703
+ /** Total number of certificates in the store. */
2704
+ private _size;
2705
+ /**
2706
+ * Pending initialization promise (for constructor certificates).
2707
+ * Methods await this before operating on the store.
2708
+ */
2709
+ private _ready;
2710
+ /**
2711
+ * Create a new TrustStore, optionally pre-populated with certificates.
2712
+ *
2713
+ * @param options Optional configuration including initial certificates.
2714
+ */
2715
+ constructor(options?: TrustStoreOptions);
2716
+ /**
2717
+ * Add a trusted root certificate to the store.
2718
+ *
2719
+ * @param cert DER-encoded X.509 certificate.
2720
+ */
2721
+ addCertificate(cert: Uint8Array): Promise<void>;
2722
+ /**
2723
+ * Add multiple trusted root certificates to the store.
2724
+ *
2725
+ * @param certs Array of DER-encoded X.509 certificates.
2726
+ */
2727
+ addCertificates(certs: Uint8Array[]): Promise<void>;
2728
+ /**
2729
+ * Remove a certificate from the store by its serial number.
2730
+ *
2731
+ * @param serialNumber The DER-encoded INTEGER serial number
2732
+ * (raw bytes, without ASN.1 tag/length).
2733
+ * @returns `true` if a certificate was removed.
2734
+ */
2735
+ removeCertificate(serialNumber: Uint8Array): Promise<boolean>;
2736
+ /**
2737
+ * Check if a certificate is in the trust store (exact DER match).
2738
+ *
2739
+ * @param cert DER-encoded X.509 certificate.
2740
+ * @returns `true` if the certificate is trusted.
2741
+ */
2742
+ isTrusted(cert: Uint8Array): Promise<boolean>;
2743
+ /**
2744
+ * Find the issuer certificate for the given certificate.
2745
+ *
2746
+ * Looks up the certificate's issuer Name in the store (by subject hash)
2747
+ * and returns the first matching trusted certificate, or `null` if
2748
+ * no issuer is found.
2749
+ *
2750
+ * @param cert DER-encoded X.509 certificate whose issuer to find.
2751
+ * @returns The DER-encoded issuer certificate, or `null`.
2752
+ */
2753
+ findIssuer(cert: Uint8Array): Promise<Uint8Array | null>;
2754
+ /**
2755
+ * Get all certificates in the trust store.
2756
+ *
2757
+ * @returns Array of DER-encoded X.509 certificates.
2758
+ */
2759
+ getAllCertificates(): Promise<Uint8Array[]>;
2760
+ /**
2761
+ * The number of certificates in the trust store.
2762
+ */
2763
+ get size(): number;
2764
+ /**
2765
+ * Remove all certificates from the trust store.
2766
+ */
2767
+ clear(): Promise<void>;
2768
+ /**
2769
+ * Add a single certificate to the store.
2770
+ */
2771
+ private _addOne;
2772
+ /**
2773
+ * Add multiple certificates.
2774
+ */
2775
+ private _addMany;
2776
+ }
2777
+ //#endregion
2778
+ //#region src/signature/certPolicy.d.ts
2779
+ /**
2780
+ * Key usage flags defined in RFC 5280 Section 4.2.1.3.
2781
+ *
2782
+ * The KeyUsage extension is a BIT STRING where each bit
2783
+ * corresponds to a specific usage:
2784
+ * - bit 0: digitalSignature
2785
+ * - bit 1: nonRepudiation (contentCommitment)
2786
+ * - bit 2: keyEncipherment
2787
+ * - bit 3: dataEncipherment
2788
+ * - bit 4: keyAgreement
2789
+ * - bit 5: keyCertSign
2790
+ * - bit 6: cRLSign
2791
+ */
2792
+ type KeyUsageFlag = "digitalSignature" | "nonRepudiation" | "keyEncipherment" | "dataEncipherment" | "keyAgreement" | "keyCertSign" | "crlSign";
2793
+ /**
2794
+ * Result of validating key usage flags.
2795
+ */
2796
+ interface KeyUsageValidationResult {
2797
+ /** Whether all required key usage flags are present. */
2798
+ valid: boolean;
2799
+ /** Key usage flags that are present in the certificate. */
2800
+ presentFlags: KeyUsageFlag[];
2801
+ /** Required key usage flags that are missing. */
2802
+ missingFlags: KeyUsageFlag[];
2803
+ }
2804
+ /**
2805
+ * Result of validating extended key usage.
2806
+ */
2807
+ interface EkuValidationResult {
2808
+ /** Whether all required EKU OIDs are present. */
2809
+ valid: boolean;
2810
+ /** EKU OIDs present in the certificate. */
2811
+ presentOids: string[];
2812
+ /** Required EKU OIDs that are missing. */
2813
+ missingOids: string[];
2814
+ }
2815
+ /**
2816
+ * Options for comprehensive policy validation.
2817
+ */
2818
+ interface PolicyValidationOptions {
2819
+ /** Require the digitalSignature key usage flag. Default: true. */
2820
+ requireDigitalSignature?: boolean | undefined;
2821
+ /** Require the nonRepudiation key usage flag. Default: false. */
2822
+ requireNonRepudiation?: boolean | undefined;
2823
+ /** Allow expired certificates. Default: false. */
2824
+ allowExpired?: boolean | undefined;
2825
+ }
2826
+ /**
2827
+ * Comprehensive certificate policy validation result.
2828
+ */
2829
+ interface PolicyValidationResult {
2830
+ /** Whether the certificate passes all policy checks. */
2831
+ valid: boolean;
2832
+ /** Key usage validation result. */
2833
+ keyUsage: KeyUsageValidationResult;
2834
+ /** Extended key usage validation result (if EKU extension present). */
2835
+ extendedKeyUsage?: EkuValidationResult | undefined;
2836
+ /** Validity period check. */
2837
+ validityPeriod: {
2838
+ /** Whether the current time is within the certificate's validity period. */valid: boolean; /** Certificate validity start date. */
2839
+ notBefore: Date; /** Certificate validity end date. */
2840
+ notAfter: Date;
2841
+ };
2842
+ /** Whether the certificate is a CA (from Basic Constraints). */
2843
+ isCA: boolean;
2844
+ /** Non-fatal warnings. */
2845
+ warnings: string[];
2846
+ }
2847
+ /**
2848
+ * Well-known Extended Key Usage OIDs.
2849
+ */
2850
+ declare const EKU_OIDS: {
2851
+ /** id-kp-serverAuth (TLS server) */readonly serverAuth: "1.3.6.1.5.5.7.3.1"; /** id-kp-clientAuth (TLS client) */
2852
+ readonly clientAuth: "1.3.6.1.5.5.7.3.2"; /** id-kp-codeSigning */
2853
+ readonly codeSigning: "1.3.6.1.5.5.7.3.3"; /** id-kp-emailProtection (S/MIME) */
2854
+ readonly emailProtection: "1.3.6.1.5.5.7.3.4"; /** id-kp-timeStamping (RFC 3161 TSA) */
2855
+ readonly timeStamping: "1.3.6.1.5.5.7.3.8"; /** id-kp-OCSPSigning (OCSP responder) */
2856
+ readonly ocspSigning: "1.3.6.1.5.5.7.3.9"; /** Adobe authentic document (PDF signing) */
2857
+ readonly adobeAuthenticDocument: "1.2.840.113583.1.1.5"; /** Microsoft document signing */
2858
+ readonly msDocumentSigning: "1.3.6.1.4.1.311.10.3.12"; /** anyExtendedKeyUsage */
2859
+ readonly anyExtendedKeyUsage: "2.5.29.37.0";
2860
+ };
2861
+ /**
2862
+ * Validate that a certificate has the required key usage flags.
2863
+ *
2864
+ * Parses the Key Usage extension (OID 2.5.29.15) from the certificate
2865
+ * and checks that all required flags are present.
2866
+ *
2867
+ * If the certificate has no Key Usage extension, the result is
2868
+ * `valid: true` with empty presentFlags (per RFC 5280, the absence
2869
+ * of the extension means all usages are permitted).
2870
+ *
2871
+ * @param cert DER-encoded X.509 certificate.
2872
+ * @param requiredUsage Array of required key usage flags.
2873
+ * @returns Validation result.
2874
+ */
2875
+ declare function validateKeyUsage(cert: Uint8Array, requiredUsage: KeyUsageFlag[]): KeyUsageValidationResult;
2876
+ /**
2877
+ * Validate that a certificate has the required extended key usage OIDs.
2878
+ *
2879
+ * Parses the Extended Key Usage extension (OID 2.5.29.37) and checks
2880
+ * that all required EKU OIDs are present.
2881
+ *
2882
+ * If the certificate has no EKU extension, the result is `valid: true`
2883
+ * (per RFC 5280, absence means all extended usages are permitted).
2884
+ *
2885
+ * The anyExtendedKeyUsage OID (2.5.29.37.0) satisfies all requirements.
2886
+ *
2887
+ * @param cert DER-encoded X.509 certificate.
2888
+ * @param requiredEku Array of required EKU OIDs (dotted-decimal).
2889
+ * @returns Validation result.
2890
+ */
2891
+ declare function validateExtendedKeyUsage(cert: Uint8Array, requiredEku: string[]): EkuValidationResult;
2892
+ /**
2893
+ * Perform comprehensive certificate policy validation.
2894
+ *
2895
+ * Checks:
2896
+ * 1. Key usage flags (digitalSignature and/or nonRepudiation)
2897
+ * 2. Extended key usage (if present)
2898
+ * 3. Validity period (notBefore/notAfter)
2899
+ * 4. Basic Constraints (CA flag)
2900
+ *
2901
+ * @param cert DER-encoded X.509 certificate.
2902
+ * @param options Validation options.
2903
+ * @returns Comprehensive validation result.
2904
+ */
2905
+ declare function validateCertificatePolicy(cert: Uint8Array, options?: PolicyValidationOptions): PolicyValidationResult;
2906
+ //#endregion
2907
+ //#region src/signature/revocationCache.d.ts
2908
+ /**
2909
+ * @module signature/revocationCache
2910
+ *
2911
+ * Revocation response caching for OCSP and CRL data.
2912
+ *
2913
+ * Provides a time-bounded in-memory cache to avoid redundant network
2914
+ * requests when checking certificate revocation status. Cache keys
2915
+ * are derived using FNV-1a hashing of certificate serial numbers and
2916
+ * issuer identifiers.
2917
+ *
2918
+ * @packageDocumentation
2919
+ */
2920
+ /**
2921
+ * OCSP revocation status result.
2922
+ */
2923
+ interface OcspResult {
2924
+ /** Certificate status. */
2925
+ status: "good" | "revoked" | "unknown";
2926
+ /** When this status information was produced. */
2927
+ thisUpdate: Date;
2928
+ /** When next status update is expected. */
2929
+ nextUpdate?: Date | undefined;
2930
+ /** If revoked, the revocation date. */
2931
+ revokedAt?: Date | undefined;
2932
+ /** If revoked, the reason string. */
2933
+ revocationReason?: string | undefined;
2934
+ }
2935
+ /**
2936
+ * CRL revocation list data.
2937
+ */
2938
+ interface CrlData {
2939
+ /** CRL issuer distinguished name. */
2940
+ issuer: string;
2941
+ /** When this CRL was issued. */
2942
+ thisUpdate: Date;
2943
+ /** When the next CRL is expected. */
2944
+ nextUpdate?: Date | undefined;
2945
+ /** Revoked certificate entries. */
2946
+ entries: Array<{
2947
+ serialNumber: Uint8Array;
2948
+ revocationDate: Date;
2949
+ reason?: string | undefined;
2950
+ }>;
2951
+ }
2952
+ /**
2953
+ * Cached OCSP response entry.
2954
+ */
2955
+ interface OcspCacheEntry {
2956
+ /** The OCSP result. */
2957
+ result: OcspResult;
2958
+ /** Timestamp when this entry was cached (ms since epoch). */
2959
+ cachedAt: number;
2960
+ /** Timestamp when this entry expires (ms since epoch). */
2961
+ expiresAt: number;
2962
+ }
2963
+ /**
2964
+ * Cached CRL data entry.
2965
+ */
2966
+ interface CrlCacheEntry {
2967
+ /** The CRL data. */
2968
+ data: CrlData;
2969
+ /** Timestamp when this entry was cached (ms since epoch). */
2970
+ cachedAt: number;
2971
+ /** Timestamp when this entry expires (ms since epoch). */
2972
+ expiresAt: number;
2973
+ }
2974
+ /**
2975
+ * Configuration options for the revocation cache.
2976
+ */
2977
+ interface RevocationCacheOptions {
2978
+ /** Cache entry time-to-live in milliseconds. Default: 300000 (5 minutes). */
2979
+ ttlMs?: number | undefined;
2980
+ /** Maximum number of entries before eviction. Default: 1000. */
2981
+ maxEntries?: number | undefined;
2982
+ }
2983
+ /**
2984
+ * In-memory cache for OCSP and CRL revocation responses.
2985
+ *
2986
+ * Entries expire after a configurable TTL (default 5 minutes). When
2987
+ * the cache exceeds `maxEntries`, the oldest entries are evicted.
2988
+ *
2989
+ * @example
2990
+ * ```ts
2991
+ * const cache = new RevocationCache({ ttlMs: 10 * 60 * 1000 }); // 10 min
2992
+ * cache.cacheOcsp('abc123', {
2993
+ * result: { status: 'good', thisUpdate: new Date() },
2994
+ * cachedAt: Date.now(),
2995
+ * expiresAt: Date.now() + 600_000,
2996
+ * });
2997
+ * const entry = cache.getCachedOcsp('abc123');
2998
+ * ```
2999
+ */
3000
+ declare class RevocationCache {
3001
+ private readonly _ttlMs;
3002
+ private readonly _maxEntries;
3003
+ private readonly _ocspMap;
3004
+ private readonly _crlMap;
3005
+ /**
3006
+ * Create a new revocation cache.
3007
+ *
3008
+ * @param options Cache configuration.
3009
+ */
3010
+ constructor(options?: RevocationCacheOptions);
3011
+ /**
3012
+ * Retrieve a cached OCSP response by certificate identifier.
3013
+ *
3014
+ * Returns `null` if no entry exists or the entry has expired.
3015
+ *
3016
+ * @param certId The cache key (typically from `deriveCacheKey`).
3017
+ * @returns The cached entry, or `null`.
3018
+ */
3019
+ getCachedOcsp(certId: string): OcspCacheEntry | null;
3020
+ /**
3021
+ * Store an OCSP response in the cache.
3022
+ *
3023
+ * If `expiresAt` is not set on the entry, it will be computed from
3024
+ * the configured TTL.
3025
+ *
3026
+ * @param certId The cache key.
3027
+ * @param entry The OCSP cache entry to store.
3028
+ */
3029
+ cacheOcsp(certId: string, entry: OcspCacheEntry): void;
3030
+ /**
3031
+ * Retrieve a cached CRL by URL.
3032
+ *
3033
+ * Returns `null` if no entry exists or the entry has expired.
3034
+ *
3035
+ * @param url The CRL distribution point URL.
3036
+ * @returns The cached entry, or `null`.
3037
+ */
3038
+ getCachedCrl(url: string): CrlCacheEntry | null;
3039
+ /**
3040
+ * Store a CRL in the cache.
3041
+ *
3042
+ * If `expiresAt` is not set on the entry, it will be computed from
3043
+ * the configured TTL.
3044
+ *
3045
+ * @param url The CRL distribution point URL.
3046
+ * @param entry The CRL cache entry to store.
3047
+ */
3048
+ cacheCrl(url: string, entry: CrlCacheEntry): void;
3049
+ /**
3050
+ * Remove all expired entries from both OCSP and CRL caches.
3051
+ *
3052
+ * @returns The number of entries removed.
3053
+ */
3054
+ clearExpired(): number;
3055
+ /**
3056
+ * Remove all entries from both caches.
3057
+ */
3058
+ clear(): void;
3059
+ /**
3060
+ * Total number of entries across both OCSP and CRL caches.
3061
+ */
3062
+ get size(): number;
3063
+ /**
3064
+ * Evict oldest entries when the total count exceeds `maxEntries`.
3065
+ *
3066
+ * Uses the `cachedAt` timestamp to determine eviction order.
3067
+ * @internal
3068
+ */
3069
+ private _evictIfNeeded;
3070
+ }
3071
+ //#endregion
3072
+ //#region src/signature/detailedVerifier.d.ts
3073
+ /**
3074
+ * Information about a single certificate in a chain.
3075
+ */
3076
+ interface CertificateInfo {
3077
+ /** Subject distinguished name (CN). */
3078
+ subject: string;
3079
+ /** Issuer distinguished name (CN). */
3080
+ issuer: string;
3081
+ /** Certificate validity start date. */
3082
+ validFrom: Date;
3083
+ /** Certificate validity end date. */
3084
+ validTo: Date;
3085
+ /** Certificate serial number as hex string. */
3086
+ serialNumber: string;
3087
+ /** Key usage extensions, if present. */
3088
+ keyUsage?: string[] | undefined;
3089
+ /** Whether this is a CA certificate. */
3090
+ isCA?: boolean | undefined;
3091
+ }
3092
+ /**
3093
+ * Detailed result from verifying a single PDF signature.
3094
+ */
3095
+ interface DetailedVerificationResult {
3096
+ /** The signature field name. */
3097
+ fieldName: string;
3098
+ /** Subject CN of the signing certificate. */
3099
+ signedBy: string;
3100
+ /** Overall validity (all checks passed). */
3101
+ valid: boolean;
3102
+ /** Whether the ByteRange hash matches the signed hash. */
3103
+ integrityValid: boolean;
3104
+ /** Whether the cryptographic signature is valid. */
3105
+ cryptoValid: boolean;
3106
+ /** Certificate chain from signer to root. */
3107
+ chain: CertificateInfo[];
3108
+ /** Whether revocation status was checked. */
3109
+ revocationChecked: boolean;
3110
+ /** Revocation status of the signing certificate. */
3111
+ revocationStatus: "good" | "revoked" | "unknown" | "unchecked";
3112
+ /** OCSP response details, if available. */
3113
+ ocspResponse?: {
3114
+ status: string;
3115
+ thisUpdate: Date;
3116
+ nextUpdate?: Date;
3117
+ } | undefined;
3118
+ /** Whether CRL was checked. */
3119
+ crlChecked: boolean;
3120
+ /** Timestamp information, if present. */
3121
+ timestamp?: {
3122
+ time: Date;
3123
+ valid: boolean;
3124
+ } | undefined;
3125
+ /** Non-fatal warnings about the signature. */
3126
+ warnings: string[];
3127
+ /** Fatal errors encountered during verification. */
3128
+ errors: string[];
3129
+ }
3130
+ /**
3131
+ * Options for detailed signature verification.
3132
+ */
3133
+ interface DetailedVerifyOptions {
3134
+ /** Whether to check certificate revocation status. Default: false. */
3135
+ checkRevocation?: boolean | undefined;
3136
+ /** Trusted root certificates (DER-encoded) for chain validation. */
3137
+ trustedCerts?: Uint8Array[] | undefined;
3138
+ /** Revocation cache for OCSP/CRL responses. */
3139
+ revocationCache?: RevocationCache | undefined;
3140
+ /** Timeout in milliseconds for network operations. Default: 10000. */
3141
+ timeout?: number | undefined;
3142
+ }
3143
+ /**
3144
+ * Verify all signatures in a PDF with detailed, structured results.
3145
+ *
3146
+ * For each signature found, returns comprehensive information about:
3147
+ * - Integrity verification (ByteRange hash)
3148
+ * - Cryptographic signature validity
3149
+ * - Certificate chain (all certificates in the PKCS#7 structure)
3150
+ * - Revocation status (if `checkRevocation` is enabled)
3151
+ * - Timestamp information
3152
+ * - Diagnostic warnings and errors
3153
+ *
3154
+ * @param pdf The PDF file bytes.
3155
+ * @param options Verification options.
3156
+ * @returns Array of detailed verification results.
3157
+ *
3158
+ * @example
3159
+ * ```ts
3160
+ * const results = await verifySignatureDetailed(pdfBytes, {
3161
+ * checkRevocation: true,
3162
+ * });
3163
+ * for (const result of results) {
3164
+ * console.log(`${result.fieldName}: ${result.valid ? 'VALID' : 'INVALID'}`);
3165
+ * if (result.warnings.length > 0) {
3166
+ * console.log('Warnings:', result.warnings);
3167
+ * }
3168
+ * }
3169
+ * ```
3170
+ */
3171
+ declare function verifySignatureDetailed(pdf: Uint8Array, options?: DetailedVerifyOptions): Promise<DetailedVerificationResult[]>;
3172
+ //#endregion
2068
3173
  //#region src/signature/incrementalSave.d.ts
2069
3174
  /**
2070
3175
  * @module signature/incrementalSave
@@ -3422,21 +4527,106 @@ interface EnforcementAction {
3422
4527
  *
3423
4528
  * @throws {Error} If the PDF is encrypted (cannot be fixed automatically).
3424
4529
  *
3425
- * @example
3426
- * ```ts
3427
- * import { enforcePdfAFull } from 'modern-pdf-lib';
4530
+ * @example
4531
+ * ```ts
4532
+ * import { enforcePdfAFull } from 'modern-pdf-lib';
4533
+ *
4534
+ * const result = await enforcePdfAFull(pdfBytes, '1b', {
4535
+ * title: 'My Document',
4536
+ * author: 'Jane Doe',
4537
+ * });
4538
+ *
4539
+ * if (result.fullyCompliant) {
4540
+ * console.log('PDF/A-1b compliant!');
4541
+ * }
4542
+ * ```
4543
+ */
4544
+ declare function enforcePdfAFull(pdfBytes: Uint8Array, level: PdfALevel, options?: EnforcePdfAOptions): Promise<EnforcePdfAResult>;
4545
+ //#endregion
4546
+ //#region src/compliance/pdfxCompliance.d.ts
4547
+ /** PDF/X conformance level. */
4548
+ type PdfXLevel = "X-1a:2003" | "X-3:2003" | "X-4";
4549
+ /** Result of a PDF/X validation check. */
4550
+ interface PdfXValidationResult {
4551
+ valid: boolean;
4552
+ level: PdfXLevel;
4553
+ errors: PdfXIssue[];
4554
+ warnings: PdfXIssue[];
4555
+ }
4556
+ /** A single PDF/X compliance issue. */
4557
+ interface PdfXIssue {
4558
+ code: string;
4559
+ message: string;
4560
+ clause?: string;
4561
+ }
4562
+ /** Options for PDF/X enforcement. */
4563
+ interface PdfXOptions {
4564
+ level: PdfXLevel;
4565
+ outputIntent: OutputIntentConfig;
4566
+ trapped?: "True" | "False" | "Unknown";
4567
+ }
4568
+ /** Configuration for an output intent. */
4569
+ interface OutputIntentConfig {
4570
+ /** Output condition identifier, e.g. "CGATS TR 001". */
4571
+ condition: string;
4572
+ /** Registry URL, e.g. "http://www.color.org". */
4573
+ registryName?: string;
4574
+ /** ICC profile bytes. */
4575
+ iccProfile?: Uint8Array;
4576
+ /** Human-readable description. */
4577
+ info?: string;
4578
+ }
4579
+ /**
4580
+ * Validate a PDF against a specific PDF/X conformance level.
4581
+ *
4582
+ * Performs structural checks on the raw PDF bytes for:
4583
+ * - Output intent presence and subtype
4584
+ * - /Trapped key in Info dictionary
4585
+ * - Transparency restrictions (X-1a, X-3)
4586
+ * - Color space restrictions (X-1a: CMYK/Gray only)
4587
+ * - Font embedding
4588
+ * - No encryption
4589
+ * - TrimBox or BleedBox on every page
4590
+ * - No JavaScript or multimedia
4591
+ * - Page box nesting (MediaBox >= BleedBox >= TrimBox >= ArtBox)
4592
+ * - PDF version requirements (X-4 requires 1.6+)
4593
+ *
4594
+ * @param pdfBytes The raw PDF bytes.
4595
+ * @param level The target PDF/X conformance level.
4596
+ * @returns A validation result with errors and warnings.
4597
+ */
4598
+ declare function validatePdfX(pdfBytes: Uint8Array, level: PdfXLevel): PdfXValidationResult;
4599
+ /**
4600
+ * Attempt to make a PDF conform to a PDF/X level.
4601
+ *
4602
+ * This adds or corrects:
4603
+ * - Output intent with the specified configuration
4604
+ * - /Trapped key in the Info dictionary
4605
+ * - TrimBox = CropBox (or MediaBox) if missing
4606
+ * - Flattens transparency for X-1a and X-3
4607
+ *
4608
+ * **Limitations:**
4609
+ * - Cannot convert RGB to CMYK (for X-1a — validation will still fail)
4610
+ * - Cannot embed fonts that are not already embedded
4611
+ * - Cannot remove encryption (throws an error)
4612
+ * - Cannot remove JavaScript (throws an error)
4613
+ *
4614
+ * @param pdfBytes The raw PDF bytes.
4615
+ * @param options PDF/X enforcement options.
4616
+ * @returns The modified PDF bytes.
4617
+ */
4618
+ declare function enforcePdfX(pdfBytes: Uint8Array, options: PdfXOptions): Uint8Array;
4619
+ /**
4620
+ * Build a PDF/X output intent dictionary.
3428
4621
  *
3429
- * const result = await enforcePdfAFull(pdfBytes, '1b', {
3430
- * title: 'My Document',
3431
- * author: 'Jane Doe',
3432
- * });
4622
+ * Creates the /OutputIntent dictionary and ICC profile stream
4623
+ * for use in the catalog's /OutputIntents array.
3433
4624
  *
3434
- * if (result.fullyCompliant) {
3435
- * console.log('PDF/A-1b compliant!');
3436
- * }
3437
- * ```
4625
+ * @param registry The PDF object registry to register objects into.
4626
+ * @param config The output intent configuration.
4627
+ * @returns An indirect reference to the OutputIntent dictionary.
3438
4628
  */
3439
- declare function enforcePdfAFull(pdfBytes: Uint8Array, level: PdfALevel, options?: EnforcePdfAOptions): Promise<EnforcePdfAResult>;
4629
+ declare function buildPdfXOutputIntent(registry: PdfObjectRegistry, config: OutputIntentConfig): PdfRef;
3440
4630
  //#endregion
3441
4631
  //#region src/annotation/applyRedactions.d.ts
3442
4632
  /** Result of applying redactions to a document. */
@@ -6974,7 +8164,7 @@ interface TableExtractOptions {
6974
8164
  * share a consistent column structure. Returns an empty array
6975
8165
  * when no table-like block is found.
6976
8166
  */
6977
- declare function extractTables(items: readonly TextItem[], options?: TableExtractOptions): ExtractedTable[];
8167
+ declare function extractTables(items: readonly TextItem$1[], options?: TableExtractOptions): ExtractedTable[];
6978
8168
  /**
6979
8169
  * Serialise a table to RFC 4180 CSV. Fields containing a comma, a double
6980
8170
  * quote or a newline are wrapped in double quotes, with embedded quotes
@@ -7399,7 +8589,7 @@ interface Line {
7399
8589
  /** The representative baseline `y` coordinate of the line. */
7400
8590
  readonly y: number;
7401
8591
  /** The source items that make up this line, sorted left-to-right. */
7402
- readonly items: readonly TextItem[];
8592
+ readonly items: readonly TextItem$1[];
7403
8593
  }
7404
8594
  /**
7405
8595
  * A reconstructed paragraph: a run of vertically-adjacent lines.
@@ -7438,7 +8628,7 @@ interface ReconstructOptions {
7438
8628
  * @param options Reconstruction options.
7439
8629
  * @returns The reconstructed lines, in reading order.
7440
8630
  */
7441
- declare function reconstructLines(items: readonly TextItem[], options?: ReconstructOptions): Line[];
8631
+ declare function reconstructLines(items: readonly TextItem$1[], options?: ReconstructOptions): Line[];
7442
8632
  /**
7443
8633
  * Group positioned text items into paragraphs.
7444
8634
  *
@@ -7450,7 +8640,7 @@ declare function reconstructLines(items: readonly TextItem[], options?: Reconstr
7450
8640
  * @param options Reconstruction options.
7451
8641
  * @returns The reconstructed paragraphs, in reading order.
7452
8642
  */
7453
- declare function reconstructParagraphs(items: readonly TextItem[], options?: ReconstructOptions): Paragraph[];
8643
+ declare function reconstructParagraphs(items: readonly TextItem$1[], options?: ReconstructOptions): Paragraph[];
7454
8644
  //#endregion
7455
8645
  //#region src/core/collections.d.ts
7456
8646
  /**
@@ -8328,7 +9518,7 @@ type VNode = {
8328
9518
  /**
8329
9519
  * Options controlling how a {@link VNode} tree is rendered to PDF.
8330
9520
  */
8331
- interface RenderOptions {
9521
+ interface RenderOptions$1 {
8332
9522
  /** Base body font size in points. Default: 12. */
8333
9523
  readonly fontSize?: number | undefined;
8334
9524
  /** Page margin in points applied on all four sides. Default: 50. */
@@ -8361,7 +9551,7 @@ declare function h(type: VNode["type"], props: Record<string, unknown>, ...child
8361
9551
  * @param options Optional layout overrides.
8362
9552
  * @returns A promise resolving to the saved PDF bytes (starting `%PDF-`).
8363
9553
  */
8364
- declare function renderToPdf(root: VNode, options?: RenderOptions): Promise<Uint8Array>;
9554
+ declare function renderToPdf(root: VNode, options?: RenderOptions$1): Promise<Uint8Array>;
8365
9555
  //#endregion
8366
9556
  //#region src/compliance/pdfVT.d.ts
8367
9557
  /**
@@ -8625,8 +9815,881 @@ declare function readWoffHeader(data: Uint8Array): WoffInfo;
8625
9815
  * descriptive error when a WOFF1 container is malformed.
8626
9816
  */
8627
9817
  declare function decodeWoff(data: Uint8Array): Uint8Array;
9818
+ //#endregion
9819
+ //#region src/parser/jpeg2000Tiles.d.ts
9820
+ /**
9821
+ * @module parser/jpeg2000Tiles
9822
+ *
9823
+ * Tiled decoding for JPEG2000 (JP2 / J2K) images.
9824
+ *
9825
+ * JPEG2000 supports partitioning an image into rectangular tiles that can
9826
+ * be independently decoded. This is critical for:
9827
+ *
9828
+ * - Large images (satellite, medical) where decoding the entire image is
9829
+ * impractical or unnecessary.
9830
+ * - Region-of-interest access — decode only the tiles that intersect the
9831
+ * requested viewport.
9832
+ * - Parallel / streaming decode — tiles are independent units.
9833
+ *
9834
+ * The tile grid is defined by the SIZ marker (ITU-T T.800, Annex A.5.1),
9835
+ * and individual tiles are delimited by SOT (Start of Tile-Part) markers
9836
+ * within the codestream.
9837
+ *
9838
+ * Reference: ITU-T T.800 (ISO/IEC 15444-1), Annexes A and B.
9839
+ *
9840
+ * @packageDocumentation
9841
+ */
9842
+ /**
9843
+ * Tile grid geometry extracted from the SIZ marker.
9844
+ */
9845
+ interface TileGridInfo {
9846
+ /** Full image width in pixels. */
9847
+ imageWidth: number;
9848
+ /** Full image height in pixels. */
9849
+ imageHeight: number;
9850
+ /** Nominal tile width. */
9851
+ tileWidth: number;
9852
+ /** Nominal tile height. */
9853
+ tileHeight: number;
9854
+ /** Number of tiles in the horizontal direction. */
9855
+ tilesX: number;
9856
+ /** Number of tiles in the vertical direction. */
9857
+ tilesY: number;
9858
+ /** Tile grid origin X offset. */
9859
+ originX: number;
9860
+ /** Tile grid origin Y offset. */
9861
+ originY: number;
9862
+ /** Number of image components. */
9863
+ components: number;
9864
+ /** Bits per component (from the first component's Ssiz entry). */
9865
+ bitsPerComponent: number;
9866
+ }
9867
+ /**
9868
+ * Decoded data for a single tile.
9869
+ */
9870
+ interface TileData {
9871
+ /** Zero-based tile index (row-major order). */
9872
+ index: number;
9873
+ /** Pixel X coordinate of the tile's top-left corner in the image. */
9874
+ x: number;
9875
+ /** Pixel Y coordinate of the tile's top-left corner in the image. */
9876
+ y: number;
9877
+ /** Tile width in pixels (may be smaller for rightmost / bottom tiles). */
9878
+ width: number;
9879
+ /** Tile height in pixels (may be smaller for rightmost / bottom tiles). */
9880
+ height: number;
9881
+ /** Decoded pixel data for this tile (interleaved components, row-major). */
9882
+ data: Uint8Array;
9883
+ /** Number of components in the tile data. */
9884
+ components: number;
9885
+ }
9886
+ /**
9887
+ * A rectangular region used for region-of-interest decoding.
9888
+ */
9889
+ interface Region {
9890
+ x: number;
9891
+ y: number;
9892
+ width: number;
9893
+ height: number;
9894
+ }
9895
+ /**
9896
+ * Parse the SIZ marker to extract tile grid geometry.
9897
+ *
9898
+ * @param data - A JPEG2000 codestream (raw J2K) or JP2 file.
9899
+ * @returns The tile grid information.
9900
+ * @throws If the SIZ marker cannot be found or is truncated.
9901
+ */
9902
+ declare function parseTileInfo(data: Uint8Array): TileGridInfo;
9903
+ /**
9904
+ * Decode a single tile from a JPEG2000 codestream.
9905
+ *
9906
+ * This extracts the tile data for the given tile index by locating its
9907
+ * SOT marker(s) in the codestream. The actual decoding produces
9908
+ * uncompressed pixel data for that tile.
9909
+ *
9910
+ * Note: Full wavelet / entropy decoding of JPEG2000 tile data is
9911
+ * extremely complex. This implementation provides the tile extraction
9912
+ * and framing layer. For production use, the WASM bridge should be
9913
+ * used for the actual decompression. When WASM is not available, this
9914
+ * returns a zero-filled buffer matching the tile dimensions (useful for
9915
+ * layout / testing purposes).
9916
+ *
9917
+ * @param data - Full JPEG2000 codestream or JP2 file bytes.
9918
+ * @param tileIndex - Zero-based tile index (row-major order).
9919
+ * @returns Decoded tile data.
9920
+ * @throws If the tile index is out of range or the codestream is invalid.
9921
+ */
9922
+ declare function decodeTile(data: Uint8Array, tileIndex: number): TileData;
9923
+ /**
9924
+ * Decode only the tiles that intersect the given rectangular region.
9925
+ *
9926
+ * This is the key API for efficient region-of-interest decoding — only
9927
+ * tiles overlapping the requested region are decoded, which can save
9928
+ * significant time for large tiled images.
9929
+ *
9930
+ * The returned data covers exactly the requested region, cropped from
9931
+ * the relevant tiles.
9932
+ *
9933
+ * @param data - Full JPEG2000 codestream or JP2 file bytes.
9934
+ * @param region - The rectangular region to decode.
9935
+ * @returns Decoded pixel data covering the requested region.
9936
+ * @throws If the region is entirely outside the image bounds.
9937
+ */
9938
+ declare function decodeTileRegion(data: Uint8Array, region: Region): Uint8Array;
9939
+ /**
9940
+ * Assemble an array of decoded tiles into a full (or partial) image.
9941
+ *
9942
+ * The tiles are placed onto a canvas matching the full image dimensions
9943
+ * described by `gridInfo`. Missing tiles result in zero-filled regions.
9944
+ *
9945
+ * @param tiles - Array of decoded tile data.
9946
+ * @param gridInfo - The tile grid geometry from {@link parseTileInfo}.
9947
+ * @returns A `Uint8Array` containing the assembled image pixels
9948
+ * (interleaved components, row-major order).
9949
+ */
9950
+ declare function assembleTiles(tiles: TileData[], gridInfo: TileGridInfo): Uint8Array;
9951
+ //#endregion
9952
+ //#region src/parser/jpeg2000BitDepth.d.ts
9953
+ /**
9954
+ * @module parser/jpeg2000BitDepth
9955
+ *
9956
+ * 16-bit and variable bit depth support for JPEG2000 (JP2 / J2K) images.
9957
+ *
9958
+ * JPEG2000 supports per-component bit depths from 1 to 38 bits, with both
9959
+ * signed and unsigned representations. Medical imaging (DICOM), satellite
9960
+ * imagery, and scientific data frequently use 12-bit or 16-bit components.
9961
+ *
9962
+ * This module provides utilities to:
9963
+ * - Parse the SIZ marker to extract per-component bit depth information
9964
+ * - Convert between different bit depths (e.g. 16-bit to 8-bit)
9965
+ * - Handle signed components by offsetting to unsigned range
9966
+ *
9967
+ * Reference: ITU-T T.800 (ISO/IEC 15444-1), Annex A — SIZ marker segment.
9968
+ *
9969
+ * @packageDocumentation
9970
+ */
9971
+ /**
9972
+ * Per-component bit depth information extracted from a JPEG2000 SIZ marker.
9973
+ */
9974
+ interface BitDepthInfo {
9975
+ /** Number of bits per component sample. */
9976
+ bitsPerComponent: number;
9977
+ /** Whether the component values are signed (two's complement). */
9978
+ isSigned: boolean;
9979
+ /** Total number of image components. */
9980
+ components: number;
9981
+ }
9982
+ /**
9983
+ * Detailed per-component depth descriptor returned by
9984
+ * {@link getComponentDepths}.
9985
+ */
9986
+ interface ComponentDepth {
9987
+ /** Bit depth for this component (1–38). */
9988
+ bits: number;
9989
+ /** Whether the component is signed. */
9990
+ isSigned: boolean;
9991
+ }
9992
+ /**
9993
+ * Parse the SIZ marker to extract per-component bit depth information.
9994
+ *
9995
+ * The SIZ marker segment stores the component count followed by one byte
9996
+ * per component describing its bit depth and signedness:
9997
+ *
9998
+ * - Bits 0–6: depth minus one (i.e. value 7 means 8 bits)
9999
+ * - Bit 7: 1 = signed, 0 = unsigned
10000
+ *
10001
+ * @param sizMarker - A `Uint8Array` containing at least the SIZ marker
10002
+ * segment. May be a full JP2/J2K codestream — the SIZ is located
10003
+ * automatically.
10004
+ * @returns An array of per-component depth descriptors.
10005
+ * @throws If the SIZ marker cannot be found or is truncated.
10006
+ */
10007
+ declare function getComponentDepths(sizMarker: Uint8Array): ComponentDepth[];
10008
+ /**
10009
+ * Downscale component data from a higher bit depth (>8) to 8-bit.
10010
+ *
10011
+ * Uses linear scaling: `out = round(value * 255 / maxValue)`.
10012
+ * For signed components, the values are first offset by `2^(bits-1)` to
10013
+ * produce unsigned values in the range `[0, 2^bits - 1]`.
10014
+ *
10015
+ * @param data - Source samples. For depths <= 8, each sample occupies
10016
+ * one byte. For depths 9–16, each sample occupies two bytes (big-endian).
10017
+ * @param bitsPerComponent - The source bit depth (must be > 8, up to 16).
10018
+ * @returns A new `Uint8Array` with one byte per sample, scaled to [0, 255].
10019
+ */
10020
+ declare function downscale16To8(data: Uint8Array, bitsPerComponent: number): Uint8Array;
10021
+ /**
10022
+ * Upscale 8-bit component data to 16-bit.
10023
+ *
10024
+ * Each 8-bit sample is expanded to a 16-bit value using the formula
10025
+ * `out = value * 257` (which maps 0→0 and 255→65535 exactly) and
10026
+ * stored as big-endian two-byte pairs.
10027
+ *
10028
+ * @param data - Source 8-bit samples.
10029
+ * @returns A new `Uint8Array` of length `data.length * 2`, big-endian 16-bit.
10030
+ */
10031
+ declare function upscale8To16(data: Uint8Array): Uint8Array;
10032
+ /**
10033
+ * Generic bit-depth normalizer. Converts component sample data from an
10034
+ * arbitrary source depth to an arbitrary target depth.
10035
+ *
10036
+ * Handles signed source data by offsetting before scaling. The output is
10037
+ * always unsigned.
10038
+ *
10039
+ * Supports depths from 1 to 16. Source data is expected in big-endian
10040
+ * byte order when the depth exceeds 8 bits (2 bytes per sample). Output
10041
+ * follows the same convention.
10042
+ *
10043
+ * @param data - Source sample bytes.
10044
+ * @param fromBits - Source bit depth (1–16).
10045
+ * @param toBits - Target bit depth (1–16).
10046
+ * @returns A new `Uint8Array` with samples at the target depth.
10047
+ */
10048
+ declare function normalizeComponentDepth(data: Uint8Array, fromBits: number, toBits: number): Uint8Array;
10049
+ /**
10050
+ * Offset signed component samples to unsigned range.
10051
+ *
10052
+ * For signed data with `N` bits, the offset is `2^(N-1)`. For example,
10053
+ * a signed 16-bit value of −32768 becomes 0 and +32767 becomes 65535.
10054
+ *
10055
+ * @param data - Source sample bytes (big-endian for >8 bits).
10056
+ * @param bitsPerComponent - Component bit depth.
10057
+ * @returns A new `Uint8Array` with the offset applied.
10058
+ */
10059
+ declare function offsetSignedToUnsigned(data: Uint8Array, bitsPerComponent: number): Uint8Array;
10060
+ /**
10061
+ * Create a {@link BitDepthInfo} summary from component depth descriptors.
10062
+ *
10063
+ * If all components share the same bit depth and signedness, the result
10064
+ * uses those values. Otherwise, the maximum bit depth and the logical
10065
+ * OR of all signed flags are used.
10066
+ *
10067
+ * @param depths - Per-component depth descriptors from
10068
+ * {@link getComponentDepths}.
10069
+ * @returns A summary object.
10070
+ */
10071
+ declare function summarizeBitDepth(depths: ComponentDepth[]): BitDepthInfo;
10072
+ //#endregion
10073
+ //#region src/layout/textLayout.d.ts
10074
+ /** A rectangular region within which text can be laid out. */
10075
+ interface TextFrame {
10076
+ x: number;
10077
+ y: number;
10078
+ width: number;
10079
+ height: number;
10080
+ }
10081
+ /** Text alignment mode. */
10082
+ type TextAlignment = "left" | "right" | "center" | "justify";
10083
+ /** A span of text with optional styling overrides. */
10084
+ interface TextSpan {
10085
+ text: string;
10086
+ font?: FontRef | string;
10087
+ fontSize?: number;
10088
+ color?: Color;
10089
+ bold?: boolean;
10090
+ italic?: boolean;
10091
+ underline?: boolean;
10092
+ strikethrough?: boolean;
10093
+ superscript?: boolean;
10094
+ subscript?: boolean;
10095
+ }
10096
+ /** Options controlling paragraph layout. */
10097
+ interface ParagraphOptions {
10098
+ alignment?: TextAlignment;
10099
+ lineHeight?: number;
10100
+ paragraphSpacing?: number;
10101
+ firstLineIndent?: number;
10102
+ hangingIndent?: number;
10103
+ hyphenation?: boolean;
10104
+ hyphenChar?: string;
10105
+ locale?: string;
10106
+ orphanLines?: number;
10107
+ widowLines?: number;
10108
+ }
10109
+ /** Options for multi-column layout. */
10110
+ interface MultiColumnOptions {
10111
+ columns: number;
10112
+ columnGap?: number;
10113
+ columnRule?: {
10114
+ width: number;
10115
+ color: Color;
10116
+ style: "solid" | "dashed";
10117
+ };
10118
+ balanceColumns?: boolean;
10119
+ }
10120
+ /** Result of a text layout operation. */
10121
+ interface TextLayoutResult {
10122
+ /** Content stream operators for the laid-out text. */
10123
+ operators: string;
10124
+ /** Number of lines rendered. */
10125
+ lineCount: number;
10126
+ /** Remaining text that didn't fit in the frame(s). */
10127
+ overflow: string;
10128
+ /** Y position after the last line (for continuation). */
10129
+ lastY: number;
10130
+ /** Actual height used. */
10131
+ usedHeight: number;
10132
+ }
10133
+ /**
10134
+ * Find possible hyphenation points for a word.
10135
+ * Returns an array of split positions (character indices where a hyphen
10136
+ * could be inserted *before* the character at that index).
10137
+ */
10138
+ declare function findHyphenationPoints(word: string, _locale?: string): number[];
10139
+ /**
10140
+ * Lay out a paragraph of text in a frame with full typographic control.
10141
+ *
10142
+ * Accepts plain text or an array of styled {@link TextSpan} objects.
10143
+ * Performs word wrapping, alignment, optional hyphenation, and
10144
+ * widow/orphan control.
10145
+ *
10146
+ * @param spans The text content, as a plain string or styled spans.
10147
+ * @param frame The rectangular frame to lay text into.
10148
+ * @param options Paragraph layout options (alignment, hyphenation, etc.).
10149
+ * @param measureFn Optional text measurement function. If omitted, a
10150
+ * character-count heuristic is used.
10151
+ * @returns A {@link TextLayoutResult} with operators and overflow.
10152
+ */
10153
+ declare function layoutParagraph(spans: TextSpan[] | string, frame: TextFrame, options?: ParagraphOptions, measureFn?: (text: string, font: string, size: number) => number): TextLayoutResult;
10154
+ /**
10155
+ * Lay out text across multiple columns within a frame.
10156
+ *
10157
+ * Divides the frame into equal-width columns separated by gaps,
10158
+ * then flows text sequentially through each column. Optionally
10159
+ * draws column rules (vertical lines between columns) and balances
10160
+ * column heights.
10161
+ *
10162
+ * @param spans The text content.
10163
+ * @param frame The outer frame containing all columns.
10164
+ * @param columnOptions Number of columns, gap, rule, balancing.
10165
+ * @param paragraphOptions Paragraph-level options.
10166
+ * @param measureFn Optional text measurement function.
10167
+ * @returns A combined {@link TextLayoutResult}.
10168
+ */
10169
+ declare function layoutColumns(spans: TextSpan[] | string, frame: TextFrame, columnOptions: MultiColumnOptions, paragraphOptions?: ParagraphOptions, measureFn?: (text: string, font: string, size: number) => number): TextLayoutResult;
10170
+ /**
10171
+ * Lay out text across multiple frames (for multi-page flow).
10172
+ *
10173
+ * Text flows from one frame to the next, with each frame producing
10174
+ * its own {@link TextLayoutResult}. Useful for flowing a long body of
10175
+ * text across multiple pages.
10176
+ *
10177
+ * @param spans The text content.
10178
+ * @param frames Array of frames to fill in order.
10179
+ * @param options Paragraph-level options.
10180
+ * @param measureFn Optional text measurement function.
10181
+ * @returns An array of results, one per frame used.
10182
+ */
10183
+ declare function layoutTextFlow(spans: TextSpan[] | string, frames: TextFrame[], options?: ParagraphOptions, measureFn?: (text: string, font: string, size: number) => number): TextLayoutResult[];
10184
+ //#endregion
10185
+ //#region src/render/matrix.d.ts
10186
+ /**
10187
+ * @module render/matrix
10188
+ *
10189
+ * 2-D affine transforms used by the content-stream interpreter and rasterizer.
10190
+ * A PDF transformation matrix is the 6-tuple `[a, b, c, d, e, f]` representing
10191
+ *
10192
+ * ```
10193
+ * | a b 0 |
10194
+ * | c d 0 |
10195
+ * | e f 1 |
10196
+ * ```
10197
+ *
10198
+ * A point `(x, y)` maps to `(a·x + c·y + e, b·x + d·y + f)` (ISO 32000-2 §8.3.4).
10199
+ *
10200
+ * @packageDocumentation
10201
+ */
10202
+ /** A 2-D affine transform as the PDF `[a, b, c, d, e, f]` 6-tuple. */
10203
+ type Matrix = readonly [number, number, number, number, number, number];
10204
+ //#endregion
10205
+ //#region src/render/displayList.d.ts
10206
+ /** An 8-bit RGBA color, each channel `0–255`. */
10207
+ type Rgba = readonly [number, number, number, number];
10208
+ /**
10209
+ * A flattened sub-path: an array of page-space coordinates as a flat
10210
+ * `[x0, y0, x1, y1, …]` polyline. Bézier curves are flattened to line segments
10211
+ * by the interpreter.
10212
+ */
10213
+ interface SubPath {
10214
+ /** Flat `[x, y, …]` page-space points. */
10215
+ readonly points: readonly number[];
10216
+ /** Whether the sub-path is closed (last point joins the first). */
10217
+ readonly closed: boolean;
10218
+ }
10219
+ /** A filled region. */
10220
+ interface FillItem {
10221
+ readonly type: "fill";
10222
+ readonly subpaths: readonly SubPath[];
10223
+ /** Winding rule (`f`/`B` → nonzero, `f*`/`B*` → evenodd). */
10224
+ readonly rule: "nonzero" | "evenodd";
10225
+ readonly color: Rgba;
10226
+ /** Constant alpha from the graphics state (`ca`), `0–1`. */
10227
+ readonly alpha: number;
10228
+ /** Active clip path (page space), if any. */
10229
+ readonly clip?: readonly SubPath[] | undefined;
10230
+ }
10231
+ /** A stroked path. */
10232
+ interface StrokeItem {
10233
+ readonly type: "stroke";
10234
+ readonly subpaths: readonly SubPath[];
10235
+ readonly color: Rgba;
10236
+ readonly alpha: number;
10237
+ /** Line width in page-space units (the user-space width × CTM scale). */
10238
+ readonly lineWidth: number;
10239
+ readonly lineCap: 0 | 1 | 2;
10240
+ readonly lineJoin: 0 | 1 | 2;
10241
+ readonly clip?: readonly SubPath[] | undefined;
10242
+ }
10243
+ /** A positioned text run (a `Tj`/`TJ`/`'`/`"` show). */
10244
+ interface TextItem {
10245
+ readonly type: "text";
10246
+ /** The decoded Unicode text (best-effort via ToUnicode / WinAnsi). */
10247
+ readonly text: string;
10248
+ /** The resource font name (e.g. `F1`), or `undefined` if unresolved. */
10249
+ readonly font: string | undefined;
10250
+ /** Font size in text-space units. */
10251
+ readonly fontSize: number;
10252
+ /** Text-space → page-space transform at the run's origin (Tm × CTM). */
10253
+ readonly transform: Matrix;
10254
+ /** Fill color (text render modes 0/2/4/6). */
10255
+ readonly color: Rgba;
10256
+ readonly alpha: number;
10257
+ /** Text rendering mode (Tr), `0–7`; `3`/`7` are invisible (§9.3.3). */
10258
+ readonly renderMode: number;
10259
+ readonly clip?: readonly SubPath[] | undefined;
10260
+ }
10261
+ /** A placed image XObject (`Do`) or inline image (`BI…EI`). */
10262
+ interface ImageItem {
10263
+ readonly type: "image";
10264
+ /** Resource XObject name, or `inline` for an inline image. */
10265
+ readonly name: string;
10266
+ /** Unit-square `(0,0)–(1,1)` → page-space placement (the CTM at `Do`). */
10267
+ readonly transform: Matrix;
10268
+ readonly alpha: number;
10269
+ readonly clip?: readonly SubPath[] | undefined;
10270
+ }
10271
+ /** Any drawable produced by the interpreter. */
10272
+ type DisplayItem = FillItem | StrokeItem | TextItem | ImageItem;
10273
+ /** The full interpreted page: drawables in paint order + page dimensions. */
10274
+ interface DisplayList {
10275
+ /** Drawables in paint order (first = painted first / bottom-most). */
10276
+ readonly items: readonly DisplayItem[];
10277
+ /** Page width in user-space units (from the crop/media box). */
10278
+ readonly width: number;
10279
+ /** Page height in user-space units. */
10280
+ readonly height: number;
10281
+ /** Page-space origin offset (crop/media box lower-left), for renderers. */
10282
+ readonly origin: readonly [number, number];
10283
+ }
10284
+ //#endregion
10285
+ //#region src/render/interpreter.d.ts
10286
+ /** Options for {@link interpretContentStream}. */
10287
+ interface InterpretOptions {
10288
+ /** Page (crop/media box) width in user-space units. */
10289
+ width: number;
10290
+ /** Page (crop/media box) height in user-space units. */
10291
+ height: number;
10292
+ /** Page-space origin (crop/media box lower-left). Default `[0, 0]`. */
10293
+ origin?: readonly [number, number] | undefined;
10294
+ /** Page `/Resources` dict, for `Do`/`Tf` resolution. */
10295
+ resources?: PdfDict | undefined;
10296
+ /** Object registry, to resolve indirect resource refs. */
10297
+ registry?: PdfObjectRegistry | undefined;
10298
+ }
10299
+ /**
10300
+ * Execute a parsed content stream into a {@link DisplayList}.
10301
+ *
10302
+ * @param operators - Output of {@link parseContentStream}.
10303
+ * @param options - Page dimensions and (optional) resources/registry.
10304
+ */
10305
+ declare function interpretContentStream(operators: readonly ContentStreamOperator[], options: InterpretOptions): DisplayList;
10306
+ /**
10307
+ * Interpret a {@link PdfPage}'s content into a {@link DisplayList}, using its
10308
+ * crop/media box for dimensions and its resources/registry for `Do`/`gs`/`Tf`
10309
+ * resolution. The entry point for {@link renderPageToImage} et al.
10310
+ */
10311
+ declare function interpretPage(page: PdfPage): DisplayList;
10312
+ //#endregion
10313
+ //#region src/render/rasterizer.d.ts
10314
+ /** Options controlling raster output. */
10315
+ interface RenderOptions {
10316
+ /** Scale factor (1 = 72 dpi / 1 px per user unit). Overrides `dpi`. */
10317
+ scale?: number | undefined;
10318
+ /** Target resolution in dots per inch (72 dpi = scale 1). */
10319
+ dpi?: number | undefined;
10320
+ /** Background fill; `'transparent'` for a transparent canvas. Default white. */
10321
+ background?: Rgba | "transparent" | undefined;
10322
+ /** Render text runs as positioned glyph boxes. Default `true`. */
10323
+ renderText?: boolean | undefined;
10324
+ /**
10325
+ * Render only a pixel sub-window of the full-scale image (for tiling huge
10326
+ * pages). `x`/`y` are the tile's top-left in full-image pixel coordinates;
10327
+ * the returned image is `width`×`height`.
10328
+ */
10329
+ region?: {
10330
+ x: number;
10331
+ y: number;
10332
+ width: number;
10333
+ height: number;
10334
+ } | undefined;
10335
+ }
10336
+ /** A raw RGBA8888 image. */
10337
+ interface RasterImage {
10338
+ readonly data: Uint8Array;
10339
+ readonly width: number;
10340
+ readonly height: number;
10341
+ }
10342
+ /** Rasterize a display list to an RGBA8888 buffer. */
10343
+ declare function rasterize(dl: DisplayList, opts?: RenderOptions): RasterImage;
10344
+ /**
10345
+ * Render a {@link PdfPage} to a PNG image.
10346
+ * @returns The PNG bytes plus pixel dimensions.
10347
+ */
10348
+ declare function renderPageToImage(page: PdfPage, opts?: RenderOptions): Promise<{
10349
+ data: Uint8Array;
10350
+ width: number;
10351
+ height: number;
10352
+ }>;
10353
+ //#endregion
10354
+ //#region src/render/canvas.d.ts
10355
+ /** The subset of the Canvas 2D context API used by the renderer. */
10356
+ interface Canvas2DLike {
10357
+ save(): void;
10358
+ restore(): void;
10359
+ beginPath(): void;
10360
+ moveTo(x: number, y: number): void;
10361
+ lineTo(x: number, y: number): void;
10362
+ closePath(): void;
10363
+ fill(rule?: "nonzero" | "evenodd"): void;
10364
+ stroke(): void;
10365
+ fillRect(x: number, y: number, w: number, h: number): void;
10366
+ fillText(text: string, x: number, y: number): void;
10367
+ fillStyle: string;
10368
+ strokeStyle: string;
10369
+ lineWidth: number;
10370
+ font: string;
10371
+ }
10372
+ /** Options for Canvas rendering. */
10373
+ interface CanvasRenderOptions {
10374
+ /** Scale (1 = 72 dpi). Overrides `dpi`. */
10375
+ scale?: number | undefined;
10376
+ /** Target dpi (72 = scale 1). */
10377
+ dpi?: number | undefined;
10378
+ /** `devicePixelRatio` to multiply into the scale (browser HiDPI). Default 1. */
10379
+ pixelRatio?: number | undefined;
10380
+ /** Font family for text runs. Default `sans-serif`. */
10381
+ fontFamily?: string | undefined;
10382
+ }
10383
+ /** Replay a display list onto a 2D context. */
10384
+ declare function renderDisplayListToCanvas(dl: DisplayList, ctx: Canvas2DLike, opts?: CanvasRenderOptions): void;
10385
+ /**
10386
+ * Render a {@link PdfPage} onto a 2D context. The context's canvas should be
10387
+ * sized to `page.width × scale` by `page.height × scale`.
10388
+ */
10389
+ declare function renderPageToCanvas(page: PdfPage, ctx: Canvas2DLike, opts?: CanvasRenderOptions): void;
10390
+ //#endregion
10391
+ //#region src/render/thumbnail.d.ts
10392
+ /** Options for {@link generateThumbnail}. */
10393
+ interface ThumbnailOptions {
10394
+ /** Longest-side length in pixels. Default 256. */
10395
+ maxSize?: number | undefined;
10396
+ /** Background fill (defaults to white via the rasterizer). */
10397
+ background?: RenderOptions["background"];
10398
+ /** Render text runs (as boxes). Default true. */
10399
+ renderText?: boolean | undefined;
10400
+ }
10401
+ /**
10402
+ * Render `page` to a thumbnail PNG whose longest side is `maxSize` pixels,
10403
+ * preserving aspect ratio.
10404
+ */
10405
+ declare function generateThumbnail(page: PdfPage, opts?: ThumbnailOptions): Promise<{
10406
+ data: Uint8Array;
10407
+ width: number;
10408
+ height: number;
10409
+ }>;
10410
+ //#endregion
10411
+ //#region src/render/imageExtract.d.ts
10412
+ /**
10413
+ * A single decoded image extracted from a page's XObject resources.
10414
+ *
10415
+ * `pixels` is interleaved, row-major, 8-bit data:
10416
+ * - RGBA (4 channels) when {@link hasAlpha} is `true`,
10417
+ * - RGB (3 channels) for colour images without alpha,
10418
+ * - grayscale (1 channel) for `/DeviceGray` images without alpha.
10419
+ */
10420
+ interface ExtractedImage {
10421
+ /** Resource name of the image XObject (without the leading slash, e.g. `Im1`). */
10422
+ name: string;
10423
+ /** Image width in pixels. */
10424
+ width: number;
10425
+ /** Image height in pixels. */
10426
+ height: number;
10427
+ /** Number of interleaved channels in {@link pixels} (1, 3, or 4). */
10428
+ channels: number;
10429
+ /** Interleaved 8-bit pixel data (RGBA, RGB, or grayscale). */
10430
+ pixels: Uint8Array;
10431
+ /** Resolved colour-space name (e.g. `DeviceRGB`, `DeviceGray`, `DeviceCMYK`, `Indexed`). */
10432
+ colorSpace: string;
10433
+ /** Bits per component of the source samples (typically `8`). */
10434
+ bitsPerComponent: number;
10435
+ /** Whether {@link pixels} includes an alpha channel (4-channel RGBA). */
10436
+ hasAlpha: boolean;
10437
+ }
10438
+ /**
10439
+ * Extract and decode all image XObjects referenced by a page.
10440
+ *
10441
+ * @param page - The page whose `/Resources /XObject` images are extracted.
10442
+ * @returns One {@link ExtractedImage} per successfully decoded image XObject.
10443
+ * Images that cannot be decoded (unsupported filters/colour spaces,
10444
+ * missing WASM, malformed data) are skipped silently.
10445
+ *
10446
+ * @example
10447
+ * ```ts
10448
+ * import { loadPdf } from 'modern-pdf-lib';
10449
+ * import { extractImages } from 'modern-pdf-lib/render';
10450
+ *
10451
+ * const doc = await loadPdf(bytes);
10452
+ * for (const img of extractImages(doc.getPage(0))) {
10453
+ * console.log(img.name, img.width, img.height, img.channels, img.hasAlpha);
10454
+ * }
10455
+ * ```
10456
+ */
10457
+ declare function extractImages(page: PdfPage): ExtractedImage[];
10458
+ //#endregion
10459
+ //#region src/render/fontExtract.d.ts
10460
+ /** The on-disk format of an embedded font program. */
10461
+ type FontFileFormat = "truetype" | "cff" | "opentype" | "type1";
10462
+ /** A single embedded font program extracted from a page. */
10463
+ interface ExtractedFont {
10464
+ /** Resource name under `/Font` (e.g. `F1`), without the leading slash. */
10465
+ resourceName: string;
10466
+ /** The `/BaseFont` PostScript name, with any leading slash stripped. */
10467
+ baseFont: string;
10468
+ /** Detected font-program format. */
10469
+ format: FontFileFormat;
10470
+ /** The standalone, filter-decoded font bytes. */
10471
+ data: Uint8Array;
10472
+ /**
10473
+ * `true` when {@link baseFont} carries a 6-uppercase-letter `+`-prefixed
10474
+ * subset tag (e.g. `ABCDEF+Helvetica`).
10475
+ */
10476
+ subset: boolean;
10477
+ }
10478
+ /**
10479
+ * Extract every embedded font program referenced by a page.
10480
+ *
10481
+ * Walks the page's original `/Resources` → `/Font` dictionary. For each
10482
+ * font that carries an embedded file (`/FontFile`, `/FontFile2`, or
10483
+ * `/FontFile3`) — directly or via a Type0 descendant — the standalone,
10484
+ * filter-decoded font bytes are returned. Standard-14 fonts with no
10485
+ * embedded file are omitted, and malformed entries are skipped silently.
10486
+ *
10487
+ * @param page The page to scan (typically from a loaded PDF).
10488
+ * @returns One {@link ExtractedFont} per embedded font program.
10489
+ *
10490
+ * @example
10491
+ * ```ts
10492
+ * const loaded = await PdfDocument.load(bytes);
10493
+ * const fonts = extractFonts(loaded.getPage(0));
10494
+ * for (const f of fonts) {
10495
+ * console.log(f.resourceName, f.baseFont, f.format, f.data.length, f.subset);
10496
+ * }
10497
+ * ```
10498
+ */
10499
+ declare function extractFonts(page: PdfPage): ExtractedFont[];
10500
+ //#endregion
10501
+ //#region src/render/diff.d.ts
10502
+ /** Result of a visual comparison. */
10503
+ interface DiffResult {
10504
+ readonly width: number;
10505
+ readonly height: number;
10506
+ /** Number of pixels whose max channel difference exceeds the threshold. */
10507
+ readonly changedPixels: number;
10508
+ /** `changedPixels / (width·height)`. */
10509
+ readonly changedRatio: number;
10510
+ /** Mean structural similarity over 8×8 luminance blocks, `0–1` (1 = identical). */
10511
+ readonly ssim: number;
10512
+ /** RGBA heatmap: changed pixels in red over a dimmed grayscale of image A. */
10513
+ readonly heatmap: Uint8Array;
10514
+ }
10515
+ /** Options for {@link compareImages}. */
10516
+ interface CompareOptions {
10517
+ /** Per-channel difference (0–255) above which a pixel counts as changed. Default 16. */
10518
+ threshold?: number | undefined;
10519
+ }
10520
+ /** Compare two equally-sized raster images. */
10521
+ declare function compareImages(a: RasterImage, b: RasterImage, opts?: CompareOptions): DiffResult;
10522
+ /** Rasterize two pages at the same scale and compare them. */
10523
+ declare function comparePages(pageA: PdfPage, pageB: PdfPage, opts?: RenderOptions & CompareOptions): Promise<DiffResult>;
10524
+ //#endregion
10525
+ //#region src/render/ocr.d.ts
10526
+ /**
10527
+ * A single recognized word with its bounding box in **page space**.
10528
+ *
10529
+ * Coordinates follow the PDF convention: the origin is the lower-left corner
10530
+ * of the page and the y-axis points up. `x`/`y` are the lower-left corner of
10531
+ * the word box; `width`/`height` are its extent in page units (points).
10532
+ */
10533
+ interface OcrWord {
10534
+ /** The recognized text of the word. */
10535
+ text: string;
10536
+ /** X coordinate of the word box's lower-left corner, in page units. */
10537
+ x: number;
10538
+ /** Y coordinate of the word box's lower-left corner (y-up), in page units. */
10539
+ y: number;
10540
+ /** Width of the word box, in page units. */
10541
+ width: number;
10542
+ /** Height of the word box, in page units. */
10543
+ height: number;
10544
+ }
10545
+ /**
10546
+ * A pluggable OCR backend.
10547
+ *
10548
+ * Implementations receive an interleaved 8-bit RGBA bitmap of the rasterized
10549
+ * page (row-major, top-to-bottom, `width * height * 4` bytes) and return the
10550
+ * recognized words with **page-space** bounding boxes (see {@link OcrWord}).
10551
+ */
10552
+ interface OcrEngine {
10553
+ /**
10554
+ * Recognize text in a rasterized page.
10555
+ *
10556
+ * @param rgba Interleaved RGBA8888 pixels (`width * height * 4` bytes).
10557
+ * @param width Bitmap width in pixels.
10558
+ * @param height Bitmap height in pixels.
10559
+ * @returns The recognized words, with page-space boxes.
10560
+ */
10561
+ recognize(rgba: Uint8Array, width: number, height: number): Promise<OcrWord[]>;
10562
+ }
10563
+ /** Options controlling {@link applyOcr}. */
10564
+ interface ApplyOcrOptions {
10565
+ /**
10566
+ * Rasterization resolution handed to the engine, in dots per inch.
10567
+ * Higher values give the OCR engine more detail at the cost of memory.
10568
+ * Default: `150`.
10569
+ */
10570
+ dpi?: number | undefined;
10571
+ /**
10572
+ * Resource name to use for the invisible overlay font. A standard
10573
+ * Helvetica Type 1 font is embedded under this name if it is not already
10574
+ * present. Default: `'OCRFont'`.
10575
+ */
10576
+ fontResourceName?: string | undefined;
10577
+ }
10578
+ /**
10579
+ * Run OCR on a page and append the recognized text as an invisible,
10580
+ * selectable/searchable overlay.
10581
+ *
10582
+ * The page is rasterized to RGBA at `opts.dpi`, passed to `engine.recognize`,
10583
+ * and each returned word is written back as a content-stream fragment:
10584
+ *
10585
+ * ```text
10586
+ * BT 3 Tr /<font> <size> Tf <x> <y> Td (<escaped text>) Tj ET
10587
+ * ```
10588
+ *
10589
+ * where `<size> ≈ word.height` and `<x> <y>` is the word's lower-left corner
10590
+ * in page space. Render mode `3` makes the text invisible (no fill, no
10591
+ * stroke) while keeping it part of the document's text content.
10592
+ *
10593
+ * @param page The page to OCR and annotate.
10594
+ * @param engine The OCR backend.
10595
+ * @param opts Optional DPI and font-resource overrides.
10596
+ * @returns The words returned by the engine (unmodified).
10597
+ */
10598
+ declare function applyOcr(page: PdfPage, engine: OcrEngine, opts?: ApplyOcrOptions): Promise<OcrWord[]>;
10599
+ //#endregion
10600
+ //#region src/render/redactContent.d.ts
10601
+ /** A rectangular region to redact, in page space (PDF points, y-up, lower-left origin). */
10602
+ interface RedactRect {
10603
+ /** X coordinate of the lower-left corner. */
10604
+ x: number;
10605
+ /** Y coordinate of the lower-left corner. */
10606
+ y: number;
10607
+ /** Width of the region (must be > 0 to match anything). */
10608
+ width: number;
10609
+ /** Height of the region (must be > 0 to match anything). */
10610
+ height: number;
10611
+ }
10612
+ /** The outcome of a {@link redactRegions} call. */
10613
+ interface RedactResult {
10614
+ /** Number of text-showing operators removed. */
10615
+ removedText: number;
10616
+ /** Number of image (`Do`) placements removed. */
10617
+ removedImages: number;
10618
+ }
10619
+ /**
10620
+ * Permanently remove text and image content within the given regions from a
10621
+ * page (redaction by removal).
10622
+ *
10623
+ * The page's content stream is parsed, replayed through a position-tracking
10624
+ * graphics-state machine, and re-emitted with every text-showing operator and
10625
+ * image placement that falls inside any redaction rect omitted. All other
10626
+ * operators — paths, fills, colors, clips, state changes — are preserved, so
10627
+ * the surrounding page layout is left intact. The filtered content is written
10628
+ * back to the page and takes effect on the next `save()`.
10629
+ *
10630
+ * @param page The page to redact (modified in place).
10631
+ * @param rects Redaction regions in page space (PDF points, y-up).
10632
+ * @returns Counts of removed text runs and image placements.
10633
+ *
10634
+ * @example
10635
+ * ```ts
10636
+ * const result = redactRegions(page, [{ x: 0, y: 90, width: 200, height: 30 }]);
10637
+ * console.log(`Removed ${result.removedText} text runs`);
10638
+ * const bytes = await doc.save();
10639
+ * ```
10640
+ */
10641
+ declare function redactRegions(page: PdfPage, rects: RedactRect[]): RedactResult;
10642
+ //#endregion
10643
+ //#region src/render/tiles.d.ts
10644
+ /** Options for tiling. */
10645
+ interface TileOptions {
10646
+ /** Tile edge length in pixels. Default 512. */
10647
+ tileSize?: number | undefined;
10648
+ /** Scale (1 = 72 dpi). Overrides `dpi`. */
10649
+ scale?: number | undefined;
10650
+ /** Target dpi (72 = scale 1). */
10651
+ dpi?: number | undefined;
10652
+ /** Background fill. */
10653
+ background?: RenderOptions["background"];
10654
+ /** Render text runs. Default true. */
10655
+ renderText?: boolean | undefined;
10656
+ }
10657
+ /** Tile grid geometry for a page at a given scale. */
10658
+ interface TileGrid {
10659
+ readonly columns: number;
10660
+ readonly rows: number;
10661
+ readonly tileSize: number;
10662
+ readonly fullWidth: number;
10663
+ readonly fullHeight: number;
10664
+ readonly scale: number;
10665
+ }
10666
+ /** Compute the tile grid for a page. */
10667
+ declare function computeTileGrid(page: PdfPage, opts?: TileOptions): TileGrid;
10668
+ /** Render a single tile `(column, row)` of a page to an RGBA image. */
10669
+ declare function renderPageTile(page: PdfPage, column: number, row: number, opts?: TileOptions): RasterImage;
10670
+ /**
10671
+ * A simple least-recently-used cache (Map-backed). Useful for memoizing
10672
+ * interpreted display lists or rasterized tiles across renders.
10673
+ */
10674
+ declare class RenderCache<V> {
10675
+ private readonly maxEntries;
10676
+ private readonly map;
10677
+ constructor(maxEntries?: number);
10678
+ /** Number of cached entries. */
10679
+ get size(): number;
10680
+ /** Look up a value, marking it most-recently-used. */
10681
+ get(key: string): V | undefined;
10682
+ /** Whether a key is present (without affecting recency). */
10683
+ has(key: string): boolean;
10684
+ /** Insert/replace a value, evicting the LRU entry when over capacity. */
10685
+ set(key: string, value: V): void;
10686
+ /** Remove a key. */
10687
+ delete(key: string): boolean;
10688
+ /** Empty the cache. */
10689
+ clear(): void;
10690
+ }
8628
10691
  declare namespace index_d_exports {
8629
- export { AFRelationship, AccessibilityIssue, AccessibilityPluginOptions, AddBookmarkOptions, AnalysisReport, AnalyzeImagesOptions, Angle, AnnotationFlags, AnnotationOptions, AnnotationType, AppearanceProviderFor, AppendOptions, AssociatedFileOptions, AssociatedFileResult, BarcodeMatrix, BarcodeOptions, BarcodeReadResult, BatchErrorStrategy, BatchOptimizeOptions, BatchOptions, BatchProcessingError, BatchProgressCallback, BatchResult, BlendMode, BookmarkNode, BookmarkRef, BoxGeometry, ButtonAppearanceOptions, ByteRangeResult, ByteWriter, CIDFontData, CIDSystemInfoData, CalGrayParams, CalRGBParams, CaretSymbol, CatalogOptions, CellContent, ChangeTracker, CheckboxAppearanceOptions, ChromaSubsampling, CmykColor, Code128Options, Code39Options, CodeFrameOptions, CollectionOptions, CollectionSchemaField, CollectionView, Color, ColorStop, CombedTextLayoutError, ComputeFontSizeOptions, ContentStreamOperator, CounterSignatureInfo, CropBox, DEFAULT_DOC_TIMESTAMP_CONTENTS_SIZE, DEFAULT_SARIF_TOOL_NAME, DataMatrixOptions, DataMatrixResult, DeduplicationReport, DeferredSignOptions, DeferredSignResult, Degrees, DeviceNColor, DiffEntry, DirectEmbedOptions, DirectEmbedResult, DocTimeStampOptions, DocumentDiff, DocumentMetadata, DocumentPart, DocumentStructure, DownscaleOptions, DrawCircleOptions, DrawEllipseOptions, DrawImageOptions, DrawLineOptions, DrawPageOptions, DrawQrCodeOptions, DrawRectangleOptions, DrawSquareOptions, DrawSvgPathOptions, DrawTableOptions, DrawTextOptions, DropdownAppearanceOptions, DssData, BarcodeOptions as EanOptions, EmbedFontOptions, EmbedPageOptions, EmbeddedFile, EmbeddedFont, EmbeddedPdfPage, EncryptAlgorithm, EncryptDictValues, EncryptOptions, EncryptedPdfError, EnforcePdfAOptions, EnforcePdfAResult, EnforcementAction, ErrorCorrectionLevel, ExceededMaxLengthError, ExponentialFunction, ExternalSigner, ExtractedTable, FacturXProfile, FallbackFont, FallbackRun, FetchLike, FetchLikeResponse, FieldAlreadyExistsError, FieldExistsAsNonTerminalError, FieldFlags, FieldLockInfo, FieldLockOptions, FieldType, FileAttachmentIcon, FlattenFormResult, FlattenOptions, FontDescriptorData, FontEmbeddingResult, FontMetrics, FontNotEmbeddedError, FontRef, ForeignPageError, FreeTextAlignment, FunctionShadingOptions, GradientFill, GrayscaleColor, HeaderFooterContent, HeaderFooterOptions, HeaderFooterPosition, IccProfile, IfdEntry, ImageAlignment, ImageAnalysis, ImageDpi, ImageFormat, ImageInfo, ImageOptimizeEntry, ImageOptimizeOptions, ImageRef, IncrementalChange, IncrementalObject, IncrementalSaveOptions, IncrementalSaveResult, InitWasmOptions, InvalidColorError, InvalidFieldNamePartError, InvalidPageSizeError, Invoice, InvoiceLine, InvoiceParty, ItfOptions, JpegDecodeResult, JpegMarkerInfo, JpegMetadata, JpegWasmModule, JsonReport, LabParams, LayoutCombedOptions, LayoutMultilineOptions, LayoutMultilineResult, LayoutSinglelineOptions, LayoutSinglelineResult, LineCapStyle, LineEndingStyle, LineJoinStyle, LinearGradientOptions, LinearizationInfo, LinearizationOptions, LinkHighlightMode, ListboxAppearanceOptions, LoadPdfOptions, LtvOptions, MATHML_NAMESPACE, MarkdownToPdfOptions, MarkedContentScope, MdpPermission, MetadataPluginOptions, MissingOnValueCheckError, ModificationReport, ModificationViolation, ModificationViolationType, MultiPageTableResult, NamespaceDef, NestedTableContent, NoSuchFieldError, NormalizedStop, Operand, OptimizationReport, OptimizeResult, OrderXType, OutlineDestination, OutlineItemOptions, OutputIntentOptions, OverflowMode, OverflowResult, OverlayAlignment, PDF2_NAMESPACE, PDFOperator, PageContent, PageEntry, PageLabelRange, PageLabelStyle, PageRange, PageSize, PageSizes, ParseSpeeds, ParsedPage, ParsedXmpMetadata, PatternFill, Pdf417Matrix, Pdf417Options, PdfA4ExtensionProperty, PdfA4ExtensionSchema, PdfA4Level, PdfA4Options, PdfAIssue, PdfALevel, PdfAProfile, PdfAValidationResult, PdfAXmpOptions, PdfAnnotation, PdfArray, PdfBool, PdfButtonField, PdfCaretAnnotation, PdfCheckboxField, PdfCircleAnnotation, PdfDict, PdfDocument, PdfDocumentBuilder, PdfDropdownField, PdfEncryptionHandler, PdfField, PdfFileAttachmentAnnotation, PdfForm, PdfFreeTextAnnotation, PdfFunctionDef, PdfHighlightAnnotation, PdfInkAnnotation, PdfLayer, PdfLayerManager, PdfLineAnnotation, PdfLinkAnnotation, PdfListboxField, PdfName, PdfNull, PdfNumber, PdfObject, PdfObjectRegistry, PdfOutlineItem, PdfOutlineTree, PdfPage, PdfParseError, PdfPermissionFlags, PdfPlugin, PdfPluginManager, PdfPolyLineAnnotation, PdfPolygonAnnotation, PdfPopupAnnotation, PdfRadioGroup, PdfRect, PdfRedactAnnotation, PdfRef, PdfSaveOptions, PdfSignatureField, PdfSignatureInfo, PdfSquareAnnotation, PdfSquigglyAnnotation, PdfStampAnnotation, PdfStream, PdfStreamWriter, PdfStrikeOutAnnotation, PdfString, PdfStructureElement, PdfStructureTree, PdfTextAnnotation, PdfTextField, PdfUaEnforcementResult, PdfUaError, PdfUaLevel, PdfUaValidationResult, PdfUaWarning, PdfUnderlineAnnotation, PdfViewerPreferences, PdfVtConformance, PdfWorker, PdfWorkerOptions, PdfWriter, PdfX6Options, PdfX6Variant, PluginDocument, PluginError, PluginPage, PostScriptFunction, PrepareAppearanceOptions, PresetName, PresetOptions, ProgressInfo, QrCodeMatrix, QrCodeOptions, RadialGradientFill, RadialGradientOptions, Radians, RadioAppearanceOptions, RangeFetchOptions, RangeFetcher, RawImageData, RecompressOptions, ReconstructOptions, RedactionMark, RedactionOperatorOptions, RedactionOptions, RedactionResult, RefResolver, RegistryEntry, RemovePageFromEmptyDocumentError, RequirementType, RgbColor, RichTextFieldReadError, RuntimeKind, SARIF_SCHEMA_URI, SRGB_ICC_PROFILE, STANDARD_SPOT_FUNCTIONS, SampledFunction, SarifLog, SarifResult, SarifRun, ScriptRun, SetTitleOptions, SignOptions, SignatureAlgorithm, SignatureAppearanceOptions, SignatureByteRange, SignatureChainEntry, SignatureChainResult, SignatureOptions, SignatureVerificationResult, SignerInfo, SoftMaskBuilder, SoftMaskRef, SpotColor, StandardFontName, StandardFonts, StandardStampName, StitchingFunction, StreamingParseError, StreamingParseResult, StreamingParserEvent, StreamingParserOptions, StreamingPdfParser, StripOptions, StripResult, StrippedFeature, StructureElementOptions, StructureType, StyledBarcodeOptions, SubsetCmap, SubsetResult, SvgDrawCommand, SvgElement, SvgGradient, SvgGradientStop, SvgRenderOptions, TableCell, TableColumn, TableExtractOptions, TablePreset, TableRenderResult, TableRow, TaskRunner, TextAlignment, TextAnnotationIcon, TextAppearanceOptions, TextExtractionOptions, TextItem, Line as TextLine, Paragraph as TextParagraph, TextRenderingMode, TextRun, TiffCmykEmbedResult, TiffDecodeOptions, TiffIfdEntry, TiffImage, TilingPatternOptions, TimestampPluginOptions, TimestampResult, TrailerInfo, TransparencyFinding, TransparencyGroupOptions, TransparencyInfo, Type0FontData, Type1Halftone, UnexpectedFieldTypeError, BarcodeOptions as UpcOptions, VNode, ValidationFinding, ValidationLevel, RenderOptions as VdomRenderOptions, ViewerPreferences, VisibleSignatureOptions, RecordMetadata as VtRecordMetadata, WasmLoaderConfig, WasmModuleName, WatermarkOptions, WebPImage, WidgetAnnotationHost, WidthEntry, WoffInfo, WorkerPool, WorkerPoolOptions, XRechnungOptions, XmpIssue, XmpValidationResult, accessibilityPlugin, addBookmark, addCounterSignature, addFieldLock, addWatermark, addWatermarkToPage, aesDecryptCBC, aesEncryptCBC, analyzeImages, analyzeJpegMarkers, annotationFromDict, appendIncrementalUpdate, applyFillColor, applyHeaderFooter, applyHeaderFooterToPage, applyOverflow, applyPreset, applyRedaction, applyRedactions, applySpreadMethod, applyStrokeColor, applyTablePreset, asNumber, asPDFName, asPDFNumber, asPdfName, asPdfNumber, attachFile, base64Decode, base64Encode, batchFlatten, batchMerge, beginArtifact, beginArtifactWithType, beginLayerContent, beginMarkedContent, beginMarkedContentSequence, beginMarkedContentWithProperties, beginText, borderedPreset, buildAfArray, buildAnnotationDict, buildBoxDict, buildCalGray, buildCalRGB, buildCatalog, buildCollection, buildDPartRoot, buildDeviceNColorSpace, buildDocMdpReference, buildDocTimeStampDict, buildDocumentStructure, buildDssDictionary, buildEmbeddedFilesNameTree, buildFieldLockDict, buildFunctionShading, buildGradientObjects, buildGtsPdfxVersion, buildInfoDict, buildLab, buildNamespace, buildNamespacesArray, buildOutputIntent, buildPageTree, buildPatternObjects, buildPdfA4Xmp, buildPdfVtDParts, buildPdfX6OutputIntent, buildPieceInfo, buildPkcs7Signature, buildRequirement, buildRequirements, buildSampledTransferFunction, buildSeparationColorSpace, buildThresholdHalftone, buildTimestampRequest, buildType1Halftone, buildType5Halftone, buildViewerPreferencesDict, buildVtDpm, buildXmpMetadata, calculateBarcodeDimensions, calculateEanCheckDigit, calculateUpcCheckDigit, canDirectEmbed, checkAccessibility, circlePath, clearWasmCache, clipEvenOdd, clip as clipOp, closeAndStroke, closeFillAndStroke, closeFillEvenOddAndStroke, closePath as closePathOp, cmyk, cmykToRgb, code128ToOperators, code39ToOperators, colorToComponents, colorToHex, componentsToColor, computeCode39CheckDigit, computeFileEncryptionKey, computeFontSize, computeImageDpi, computeObjectHash, computeSignatureHash, computeTargetDimensions, concatMatrix, concatMatrix as concatTransformationMatrix, configureWasmLoader, convertTiffCmykToRgb, convertToGrayscale, copyPages, countOccurrences, createAnnotation, createAssociatedFile, createMarkedContentScope, createPdf, createRangeFetcher, h as createVNode, createWorkerPool, createXmpStream, cropPage, curveToFinal, curveToInitial, curveTo as curveToOp, dataMatrixToOperators, decodeImageStream, decodeJpegWasm, decodePermissions, decodeStream, decodeTiff, decodeTiffAll, decodeTiffPage, decodeWebP, decodeWoff, deduplicateImages, degrees, degreesToRadians, delinearizePdf, detectImageFormat, detectModifications, detectRuntime, detectTransparency, deviceNColor, deviceNResourceName, didYouMean, diffSignedContent, downscaleImage, drawImageWithMatrix, drawImageXObject, drawXObject as drawObject, drawSvgOnPage, drawXObject, ean13ToOperators, ean8ToOperators, ellipsePath, ellipsisText, embedIccProfile, embedLtvData, embedPageAsFormXObject, embedSignature, embedTiffCmyk, embedTiffDirect, encodeCode128, encodeCode128Values, encodeCode39, encodeContextTag, encodeDataMatrix, encodeEan13, encodeEan8, encodeInteger, encodeItf, encodeJpegWasm, encodeLength, encodeOID, encodeOctetString, encodePdf417, encodePermissions, encodePngFromPixels, encodePrintableString, encodeQrCode, encodeSequence, encodeSet, encodeUTCTime, encodeUpcA, encodeUtf8String, endArtifact, endLayerContent, endMarkedContent, endPath as endPathOp, endText, enforcePdfA, enforcePdfAFull, enforcePdfUa, estimateJpegQuality, estimateTextWidth, evaluateFunction, extractIccProfile, extractImages, extractJpegMetadata, extractMetrics, extractTables, extractText, extractTextWithPositions, extractXmpMetadata, fillAndStroke as fillAndStrokeOp, fillEvenOdd, fillEvenOddAndStroke, fill as fillOp, findChangedObjects, findExistingSignatures, findSignatures, flattenField, flattenFields, flattenForm, flattenTransparency, formatDate, formatHexContext, formatPdfDate, generateButtonAppearance, generateCheckboxAppearance, generateCiiXml, generateCircleAppearance, generateDropdownAppearance, generateFreeTextAppearance, generateHighlightAppearance, generateInkAppearance, generateLineAppearance, generateListboxAppearance, generateOrderX, generatePdfAXmp, generatePdfAXmpBytes, generateRadioAppearance, generateSignatureAppearance, generateSquareAppearance, generateSquigglyAppearance, generateSrgbIccProfile, generateStrikeOutAppearance, generateSymbolToUnicodeCmap, generateTextAppearance, generateUnderlineAppearance, generateWinAnsiToUnicodeCmap, generateXRechnungCii, generateZapfDingbatsToUnicodeCmap, getAttachments, getBookmarks, getCertificationLevel, getCounterSignatures, getFieldLocks, getImageFormatName, getInlineWasmBytes, getInlineWasmSize, getLinearizationInfo, getPageLabels, getPageSize, getProfile, getRedactionMarks, getSignatures, getSupportedFormats, getSupportedLevels, getTiffPageCount, getToUnicodeCmap, grayscale, gtsPdfVtVersion, hasInlineWasmData, hasLtvData, hexToColor, identityTransferFunction, initJpegWasm, initWasm, injectJpegMetadata, insertPage, instantiateWasmModuleStreaming, interpolateLinearRgb, isAccessible, isCmykTiff, isGrayscaleImage, isJpegWasmReady, isLinearized, isOpenTypeCFF, isTiff, isTrueType, isValidLevel, isValidModuleName, isWasmDisabled, isWasmModuleCached, isWebP, isWebPLossless, isWoff, isWoff2, itfToOperators, labToRgb, layoutCombedText, layoutMultilineText, layoutSinglelineText, levenshtein, lineTo as lineToOp, linearGradient, linearizePdf, loadPdf, loadWasmModule, loadWasmModuleStreaming, markForRedaction, markdownToPdf, md5, mergePdfs, metadataPlugin, minimalPreset, movePage, moveText as moveTextOp, moveTextSetLeading, moveTo as moveToOp, nameHalftone, nextLine as nextLineOp, optimizeAllImages, optimizeImage, optimizeIncrementalSave, parseContentStream, parseExistingTrailer, parseIccColorSpace, parseIccDescription, parseSvg, parseSvgColor, parseSvgPath, parseSvgTransform, parseTiffIfd, parseTimestampResponse, parseViewerPreferences, parseXmpMetadata$1 as parseXmpMetadata, parseXmpMetadata as parseXmpPdfAMetadata, pdf417ToOperators, pdfA4Rules, restoreState as popGraphicsState, preloadInlineWasm, prepareForSigning, processBatch, professionalPreset, provideWasmBytes, saveState as pushGraphicsState, qrCodeToOperators, radialGradient, radians, radiansToDegrees, rc4, readBarcode, readCode128, readCode39, readEan13, readEan8, readWoffHeader, recompressImage, recompressWebP, reconstructLines, reconstructParagraphs, rectangle as rectangleOp, removeAllBookmarks, removeBookmark, removePage, removePageLabels, removePages, renderCodeFrame, renderMultiPageTable, renderStyledBarcode, renderTable, renderToPdf, replaceTemplateVariables, requestTimestamp, resetWasmLoader, resizePage, resolveFallback, restoreState, reversePages, rgb, rgbToCmyk, rotateAllPages, rotate as rotateOp, rotatePage, rotationMatrix, sampleShadingColor, saveDocumentIncremental, saveIncremental, saveIncrementalWithSignaturePreservation, saveState, scale as scaleOp, searchTextItems, serializePdf, setCertificationLevel, setCharacterSpacing as setCharacterSpacingOp, setCharacterSpacing as setCharacterSqueeze, setColorSpace, setDashPattern as setDashPatternOp, setFillColor, setFillColorCmyk, setFillColorGray, setFillColorRgb, setFillingColor, setFlatness, setFont as setFontAndSize, setFont as setFontOp, setFontSize as setFontSizeOp, setGraphicsState as setGraphicsStateOp, setLeading as setLeadingOp, setLineCap as setLineCapOp, setLeading as setLineHeight, setLineJoin as setLineJoinOp, setLineWidth as setLineWidthOp, setMiterLimit, setPageLabels, setStrokeColor, setStrokeColorCmyk, setStrokeColorGray, setStrokeColorRgb, setStrokeColorSpace, setStrokingColor, setTextMatrix as setTextMatrixOp, setTextRenderingMode as setTextRenderingModeOp, setTextRise as setTextRiseOp, setWordSpacing as setWordSpacingOp, sha256, sha384, sha512, showTextArray, showTextHex, showTextNextLine, showText as showTextOp, showTextWithSpacing, shrinkFontSize, signDeferred, signPdf, skew as skewOp, splitByScript, splitPdf, spotColor, spotResourceName, stripProhibitedFeatures, stripedPreset, stroke as strokeOp, summarizeIssues, svgToPdfOperators, tableToCsv, tableToJson, tilingPattern, timestampPlugin, toAlpha, toJsonReport, toRoman, toSarif, translate as translateOp, truncateText, upcAToOperators, validateBoxGeometry, validateByteRangeIntegrity, validatePdfA, validatePdfUa, validateSignatureChain, validateXmpMetadata, valuesToModules, verifyOwnerPassword, verifySignature, verifySignatures, verifyUserPassword, webpToJpeg, webpToPng, wrapInMarkedContent, wrapText };
10692
+ export { AFDate_FormatEx, AFNumber_Format, AFRelationship, AFSpecial_Format, AccessibilityIssue, AccessibilityPluginOptions, AddBookmarkOptions, AnalysisReport, AnalyzeImagesOptions, Angle, AnnotationFlags, AnnotationOptions, AnnotationType, AppearanceProviderFor, AppendOptions, ApplyOcrOptions, AssociatedFileOptions, AssociatedFileResult, BarcodeMatrix, BarcodeOptions, BarcodeReadResult, BatchErrorStrategy, BatchOptimizeOptions, BatchOptions, BatchProcessingError, BatchProgressCallback, BatchResult, BlendMode, BookmarkNode, BookmarkRef, BoxGeometry, ButtonAppearanceOptions, ByteRangeResult, ByteWriter, CIDFontData, CIDSystemInfoData, CalGrayParams, CalRGBParams, Canvas2DLike, CanvasRenderOptions, CaretSymbol, CatalogOptions, CellContent, ChangeTracker, CheckboxAppearanceOptions, ChromaSubsampling, CmykColor, Code128Options, Code39Options, CodeFrameOptions, CollectionOptions, CollectionSchemaField, CollectionView, Color, ColorStop, CombedTextLayoutError, CompareOptions, ComputeFontSizeOptions, ContentStreamOperator, CounterSignatureInfo, CropBox, DEFAULT_DOC_TIMESTAMP_CONTENTS_SIZE, DEFAULT_SARIF_TOOL_NAME, DataMatrixOptions, DataMatrixResult, DeduplicationReport, DeferredSignOptions, DeferredSignResult, Degrees, DeviceNColor, DiffEntry, DiffResult, DirectEmbedOptions, DirectEmbedResult, DisplayItem, DisplayList, DocTimeStampOptions, DocumentDiff, DocumentMetadata, DocumentPart, DocumentStructure, DownscaleOptions, DrawCircleOptions, DrawEllipseOptions, DrawImageOptions, DrawLineOptions, DrawPageOptions, DrawQrCodeOptions, DrawRectangleOptions, DrawSquareOptions, DrawSvgPathOptions, DrawTableOptions, DrawTextOptions, DropdownAppearanceOptions, DssData, EKU_OIDS, BarcodeOptions as EanOptions, EmbedFontOptions, EmbedPageOptions, EmbeddedFile, EmbeddedFont, EmbeddedPdfPage, EncryptAlgorithm, EncryptDictValues, EncryptOptions, EncryptedPdfError, EnforcePdfAOptions, EnforcePdfAResult, EnforcementAction, ErrorCorrectionLevel, ExceededMaxLengthError, ExponentialFunction, ExternalSigner, ExtractedFont, ExtractedImage, ExtractedTable, FacturXProfile, FallbackFont, FallbackRun, FetchLike, FetchLikeResponse, FieldAlreadyExistsError, FieldExistsAsNonTerminalError, FieldFlags, FieldLockInfo, FieldLockOptions, FieldType, FileAttachmentIcon, FillItem, FlattenFormResult, FlattenOptions, FontDescriptorData, FontEmbeddingResult, FontFileFormat, FontMetrics, FontNotEmbeddedError, FontRef, ForeignPageError, FreeTextAlignment, FunctionShadingOptions, GradientFill, GrayscaleColor, HeaderFooterContent, HeaderFooterOptions, HeaderFooterPosition, IccProfile, IfdEntry, ImageAlignment, ImageAnalysis, ImageDpi, ImageFormat, ImageInfo, ImageItem, ImageOptimizeEntry, ImageOptimizeOptions, ImageRef, IncrementalChange, IncrementalObject, IncrementalSaveOptions, IncrementalSaveResult, InitWasmOptions, InterpretOptions, InvalidColorError, InvalidFieldNamePartError, InvalidPageSizeError, Invoice, InvoiceLine, InvoiceParty, ItfOptions, JpegDecodeResult, JpegMarkerInfo, JpegMetadata, JpegWasmModule, JsonReport, LabParams, LayoutCombedOptions, LayoutMultilineOptions, LayoutMultilineResult, LayoutSinglelineOptions, LayoutSinglelineResult, LineCapStyle, LineEndingStyle, LineJoinStyle, LinearGradientOptions, LinearizationInfo, LinearizationOptions, LinkHighlightMode, ListboxAppearanceOptions, LoadPdfOptions, LtvOptions, MATHML_NAMESPACE, MarkdownToPdfOptions, MarkedContentScope, Matrix, MdpPermission, MetadataPluginOptions, MissingOnValueCheckError, ModificationReport, ModificationViolation, ModificationViolationType, MultiPageTableResult, NamespaceDef, NestedTableContent, NoSuchFieldError, NormalizedStop, OcrEngine, OcrWord, Operand, OptimizationReport, OptimizeResult, OrderXType, OutlineDestination, OutlineItemOptions, OutputIntentOptions, OverflowMode, OverflowResult, OverlayAlignment, PDF2_NAMESPACE, PDFOperator, PageContent, PageEntry, PageLabelRange, PageLabelStyle, PageRange, PageSize, PageSizes, ParseSpeeds, ParsedPage, ParsedXmpMetadata, PatternFill, Pdf417Matrix, Pdf417Options, PdfA4ExtensionProperty, PdfA4ExtensionSchema, PdfA4Level, PdfA4Options, PdfAIssue, PdfALevel, PdfAProfile, PdfAValidationResult, PdfAXmpOptions, PdfAnnotation, PdfArray, PdfBool, PdfButtonField, PdfCaretAnnotation, PdfCheckboxField, PdfCircleAnnotation, PdfDict, PdfDocument, PdfDocumentBuilder, PdfDropdownField, PdfEncryptionHandler, PdfField, PdfFileAttachmentAnnotation, PdfForm, PdfFreeTextAnnotation, PdfFunctionDef, PdfHighlightAnnotation, PdfInkAnnotation, PdfLayer, PdfLayerManager, PdfLineAnnotation, PdfLinkAnnotation, PdfListboxField, PdfName, PdfNull, PdfNumber, PdfObject, PdfObjectRegistry, PdfOutlineItem, PdfOutlineTree, PdfPage, PdfParseError, PdfPermissionFlags, PdfPlugin, PdfPluginManager, PdfPolyLineAnnotation, PdfPolygonAnnotation, PdfPopupAnnotation, PdfRadioGroup, PdfRect, PdfRedactAnnotation, PdfRef, PdfSaveOptions, PdfSignatureField, PdfSignatureInfo, PdfSquareAnnotation, PdfSquigglyAnnotation, PdfStampAnnotation, PdfStream, PdfStreamWriter, PdfStrikeOutAnnotation, PdfString, PdfStructureElement, PdfStructureTree, PdfTextAnnotation, PdfTextField, PdfUaEnforcementResult, PdfUaError, PdfUaLevel, PdfUaValidationResult, PdfUaWarning, PdfUnderlineAnnotation, PdfViewerPreferences, PdfVtConformance, PdfWorker, PdfWorkerOptions, PdfWriter, PdfX6Options, PdfX6Variant, PluginDocument, PluginError, PluginPage, PostScriptFunction, PrepareAppearanceOptions, PresetName, PresetOptions, ProgressInfo, QrCodeMatrix, QrCodeOptions, RadialGradientFill, RadialGradientOptions, Radians, RadioAppearanceOptions, RangeFetchOptions, RangeFetcher, RasterImage, RawImageData, RecompressOptions, ReconstructOptions, RedactRect, RedactResult, RedactionMark, RedactionOperatorOptions, RedactionOptions, RedactionResult, RefResolver, RegistryEntry, RemovePageFromEmptyDocumentError, RenderCache, RenderOptions, RequirementType, RgbColor, Rgba, RichTextFieldReadError, RuntimeKind, SARIF_SCHEMA_URI, SRGB_ICC_PROFILE, STANDARD_SPOT_FUNCTIONS, SampledFunction, SarifLog, SarifResult, SarifRun, ScriptRun, SetTitleOptions, SignOptions, SignatureAlgorithm, SignatureAppearanceOptions, SignatureByteRange, SignatureChainEntry, SignatureChainResult, SignatureOptions, SignatureVerificationResult, SignerInfo, SoftMaskBuilder, SoftMaskRef, SpotColor, StandardFontName, StandardFonts, StandardStampName, StitchingFunction, StreamingParseError, StreamingParseResult, StreamingParserEvent, StreamingParserOptions, StreamingPdfParser, StripOptions, StripResult, StrippedFeature, StrokeItem, StructureElementOptions, StructureType, StyledBarcodeOptions, SubPath, SubsetCmap, SubsetResult, SvgDrawCommand, SvgElement, SvgGradient, SvgGradientStop, SvgRenderOptions, TableCell, TableColumn, TableExtractOptions, TablePreset, TableRenderResult, TableRow, TaskRunner, TextAlignment$1 as TextAlignment, TextAnnotationIcon, TextAppearanceOptions, TextItem as TextDisplayItem, TextExtractionOptions, TextItem$1 as TextItem, Line as TextLine, Paragraph as TextParagraph, TextRenderingMode, TextRun, ThumbnailOptions, TiffCmykEmbedResult, TiffDecodeOptions, TiffIfdEntry, TiffImage, TileGrid, TileOptions, TilingPatternOptions, TimestampPluginOptions, TimestampResult, TrailerInfo, TransparencyFinding, TransparencyGroupOptions, TransparencyInfo, TrustStore, Type0FontData, Type1Halftone, UnexpectedFieldTypeError, BarcodeOptions as UpcOptions, VNode, ValidationFinding, ValidationLevel, RenderOptions$1 as VdomRenderOptions, ViewerPreferences, VisibleSignatureOptions, RecordMetadata as VtRecordMetadata, WasmLoaderConfig, WasmModuleName, WatermarkOptions, WebPImage, WidgetAnnotationHost, WidthEntry, WoffInfo, WorkerPool, WorkerPoolOptions, XRechnungOptions, XmpIssue, XmpValidationResult, accessibilityPlugin, addBookmark, addCounterSignature, addFieldLock, addVisibilityAction, addWatermark, addWatermarkToPage, aesDecryptCBC, aesEncryptCBC, analyzeImages, analyzeJpegMarkers, annotationFromDict, appendIncrementalUpdate, applyFillColor, applyHeaderFooter, applyHeaderFooterToPage, applyOcr, applyOverflow, applyPreset, applyRedaction, applyRedactions, applySpreadMethod, applyStrokeColor, applyTablePreset, asNumber, asPDFName, asPDFNumber, asPdfName, asPdfNumber, assembleTiles, attachFile, base64Decode, base64Encode, batchFlatten, batchMerge, beginArtifact, beginArtifactWithType, beginLayerContent, beginMarkedContent, beginMarkedContentSequence, beginMarkedContentWithProperties, beginText, borderedPreset, buildAfArray, buildAnnotationDict, buildBoxDict, buildCalGray, buildCalRGB, buildCatalog, buildCertificateChain, buildCollection, buildDPartRoot, buildDeviceNColorSpace, buildDocMdpReference, buildDocTimeStampDict, buildDocumentStructure, buildDssDictionary, buildEmbeddedFilesNameTree, buildFieldLockDict, buildFunctionShading, buildGradientObjects, buildGtsPdfxVersion, buildInfoDict, buildLab, buildNamespace, buildNamespacesArray, buildOutputIntent, buildPageTree, buildPatternObjects, buildPdfA4Xmp, buildPdfVtDParts, buildPdfX6OutputIntent, buildPdfXOutputIntent, buildPieceInfo, buildPkcs7Signature, buildRequirement, buildRequirements, buildSampledTransferFunction, buildSeparationColorSpace, buildThresholdHalftone, buildTimestampRequest, buildType1Halftone, buildType5Halftone, buildViewerPreferencesDict, buildVtDpm, buildXmpMetadata, calculateBarcodeDimensions, calculateEanCheckDigit, calculateUpcCheckDigit, canDirectEmbed, checkAccessibility, checkCertificateStatus, circlePath, clearWasmCache, clipEvenOdd, clip as clipOp, closeAndStroke, closeFillAndStroke, closeFillEvenOddAndStroke, closePath as closePathOp, cmyk, cmykToRgb, code128ToOperators, code39ToOperators, colorToComponents, colorToHex, compareImages, comparePages, componentsToColor, computeCode39CheckDigit, computeFileEncryptionKey, computeFontSize, computeImageDpi, computeObjectHash, computeSignatureHash, computeTargetDimensions, computeTileGrid, concatMatrix, concatMatrix as concatTransformationMatrix, configureWasmLoader, convertTiffCmykToRgb, convertToGrayscale, copyPages, countOccurrences, createAnnotation, createAssociatedFile, createMarkedContentScope, createPdf, createRangeFetcher, createSandbox, h as createVNode, createWorkerPool, createXmpStream, cropPage, curveToFinal, curveToInitial, curveTo as curveToOp, dataMatrixToOperators, decodeImageStream, decodeJpeg2000, decodeJpegWasm, decodePermissions, decodeStream, decodeTiff, decodeTiffAll, decodeTiffPage, decodeTile, decodeTileRegion, decodeWebP, decodeWoff, deduplicateImages, degrees, degreesToRadians, delinearizePdf, detectImageFormat, detectModifications, detectRuntime, detectTransparency, deviceNColor, deviceNResourceName, didYouMean, diffSignedContent, downloadCrl, downscale16To8, downscaleImage, drawImageWithMatrix, drawImageXObject, drawXObject as drawObject, drawSvgOnPage, drawXObject, ean13ToOperators, ean8ToOperators, ellipsePath, ellipsisText, embedIccProfile, embedLtvData, embedPageAsFormXObject, embedSignature, embedTiffCmyk, embedTiffDirect, encodeCode128, encodeCode128Values, encodeCode39, encodeContextTag, encodeDataMatrix, encodeEan13, encodeEan8, encodeInteger, encodeItf, encodeJpegWasm, encodeLength, encodeOID, encodeOctetString, encodePdf417, encodePermissions, encodePngFromPixels, encodePrintableString, encodeQrCode, encodeSequence, encodeSet, encodeUTCTime, encodeUpcA, encodeUtf8String, endArtifact, endLayerContent, endMarkedContent, endPath as endPathOp, endText, enforcePdfA, enforcePdfAFull, enforcePdfUa, enforcePdfX, estimateJpegQuality, estimateTextWidth, evaluateFunction, extractCrlUrls, extractEmbeddedRevocationData, extractFonts, extractIccProfile, extractImages$1 as extractImages, extractJpegMetadata, extractMetrics, extractOcspUrl, extractImages as extractPageImages, extractTables, extractText, extractTextWithPositions, extractXmpMetadata, fillAndStroke as fillAndStrokeOp, fillEvenOdd, fillEvenOddAndStroke, fill as fillOp, findChangedObjects, findExistingSignatures, findHyphenationPoints, findSignatures, flattenField, flattenFields, flattenForm, flattenTransparency, formatDate$1 as formatAcrobatDate, formatDate, formatHexContext, formatNumber, formatPdfDate, generateButtonAppearance, generateCheckboxAppearance, generateCiiXml, generateCircleAppearance, generateDropdownAppearance, generateFreeTextAppearance, generateHighlightAppearance, generateInkAppearance, generateLineAppearance, generateListboxAppearance, generateOrderX, generatePdfAXmp, generatePdfAXmpBytes, generateRadioAppearance, generateSignatureAppearance, generateSquareAppearance, generateSquigglyAppearance, generateSrgbIccProfile, generateStrikeOutAppearance, generateSymbolToUnicodeCmap, generateTextAppearance, generateThumbnail, generateUnderlineAppearance, generateWinAnsiToUnicodeCmap, generateXRechnungCii, generateZapfDingbatsToUnicodeCmap, getAttachments, getBookmarks, getCertificationLevel, getComponentDepths, getCounterSignatures, getFieldLocks, getFieldValue, getImageFormatName, getInlineWasmBytes, getInlineWasmSize, getLinearizationInfo, getPageLabels, getPageSize, getProfile, getRedactionMarks, getSignatures, getSupportedFormats, getSupportedLevels, getTiffPageCount, getToUnicodeCmap, grayscale, gtsPdfVtVersion, hasInlineWasmData, hasLtvData, hexToColor, identityTransferFunction, initJpegWasm, initWasm, injectJpegMetadata, insertPage, instantiateWasmModuleStreaming, interpolateLinearRgb, interpretContentStream, interpretPage, isAccessible, isCertificateRevoked, isCmykTiff, isGrayscaleImage, isJpegWasmReady, isLinearized, isOpenTypeCFF, isTiff, isTrueType, isValidLevel, isValidModuleName, isWasmDisabled, isWasmModuleCached, isWebP, isWebPLossless, isWoff, isWoff2, itfToOperators, labToRgb, layoutColumns, layoutCombedText, layoutMultilineText, layoutParagraph, layoutSinglelineText, layoutTextFlow, levenshtein, lineTo as lineToOp, linearGradient, linearizePdf, loadPdf, loadWasmModule, loadWasmModuleStreaming, markForRedaction, markdownToPdf, md5, mergePdfs, metadataPlugin, minimalPreset, movePage, moveText as moveTextOp, moveTextSetLeading, moveTo as moveToOp, nameHalftone, nextLine as nextLineOp, normalizeComponentDepth, offsetSignedToUnsigned, optimizeAllImages, optimizeImage, optimizeIncrementalSave, parseAcrobatDate, parseContentStream, parseExistingTrailer, parseIccColorSpace, parseIccDescription, parseSvg, parseSvgColor, parseSvgPath, parseSvgTransform, parseTiffIfd, parseTileInfo, parseTimestampResponse, parseViewerPreferences, parseXmpMetadata$1 as parseXmpMetadata, parseXmpMetadata as parseXmpPdfAMetadata, pdf417ToOperators, pdfA4Rules, restoreState as popGraphicsState, preloadInlineWasm, prepareForSigning, processBatch, professionalPreset, provideWasmBytes, saveState as pushGraphicsState, qrCodeToOperators, radialGradient, radians, radiansToDegrees, rasterize, rc4, readBarcode, readCode128, readCode39, readEan13, readEan8, readWoffHeader, recompressImage, recompressWebP, reconstructLines, reconstructParagraphs, rectangle as rectangleOp, redactRegions, removeAllBookmarks, removeBookmark, removePage, removePageLabels, removePages, renderCodeFrame, renderDisplayListToCanvas, renderMultiPageTable, renderPageTile, renderPageToCanvas, renderPageToImage, renderStyledBarcode, renderTable, renderToPdf, replaceTemplateVariables, requestTimestamp, resetWasmLoader, resizePage, resolveFallback, resolveFieldReference, restoreState, reversePages, rgb, rgbToCmyk, rotateAllPages, rotate as rotateOp, rotatePage, rotationMatrix, sampleShadingColor, saveDocumentIncremental, saveIncremental, saveIncrementalWithSignaturePreservation, saveState, scale as scaleOp, searchTextItems, serializePdf, setCertificationLevel, setCharacterSpacing as setCharacterSpacingOp, setCharacterSpacing as setCharacterSqueeze, setColorSpace, setDashPattern as setDashPatternOp, setFieldValue, setFieldVisibility, setFillColor, setFillColorCmyk, setFillColorGray, setFillColorRgb, setFillingColor, setFlatness, setFont as setFontAndSize, setFont as setFontOp, setFontSize as setFontSizeOp, setGraphicsState as setGraphicsStateOp, setLeading as setLeadingOp, setLineCap as setLineCapOp, setLeading as setLineHeight, setLineJoin as setLineJoinOp, setLineWidth as setLineWidthOp, setMiterLimit, setPageLabels, setStrokeColor, setStrokeColorCmyk, setStrokeColorGray, setStrokeColorRgb, setStrokeColorSpace, setStrokingColor, setTextMatrix as setTextMatrixOp, setTextRenderingMode as setTextRenderingModeOp, setTextRise as setTextRiseOp, setWordSpacing as setWordSpacingOp, sha256, sha384, sha512, showTextArray, showTextHex, showTextNextLine, showText as showTextOp, showTextWithSpacing, shrinkFontSize, signDeferred, signPdf, skew as skewOp, splitByScript, splitPdf, spotColor, spotResourceName, stripProhibitedFeatures, stripedPreset, stroke as strokeOp, summarizeBitDepth, summarizeIssues, svgToPdfOperators, tableToCsv, tableToJson, tilingPattern, timestampPlugin, toAlpha, toJsonReport, toRoman, toSarif, translate as translateOp, truncateText, upcAToOperators, upscale8To16, validateBoxGeometry, validateByteRangeIntegrity, validateCertificateChain, validateCertificatePolicy, validateExtendedKeyUsage, validateFieldValue, validateKeyUsage, validatePdfA, validatePdfUa, validatePdfX, validateSignatureChain, validateXmpMetadata, valuesToModules, verifyOfflineRevocation, verifyOwnerPassword, verifySignature, verifySignatureDetailed, verifySignatures, verifyUserPassword, webpToJpeg, webpToPng, wrapInMarkedContent, wrapText };
8630
10693
  }
8631
10694
  /**
8632
10695
  * Options for WASM module initialization.
@@ -8678,5 +10741,5 @@ interface InitWasmOptions {
8678
10741
  */
8679
10742
  declare function initWasm(options?: string | URL | InitWasmOptions): Promise<void>;
8680
10743
  //#endregion
8681
- export { renderCodeFrame as $, OptimizeResult as $a, PdfFreeTextAnnotation as $c, IfdEntry as $i, setTextRenderingMode as $l, addBookmark as $n, TransparencyInfo as $o, readBarcode as $r, validateByteRangeIntegrity as $s, SarifRun as $t, RangeFetcher as A, extractJpegMetadata as Aa, generateSquigglyAppearance as Ac, Code128Options as Ai, MarkedContentScope as Al, StreamingPdfParser as An, AssociatedFileOptions as Ao, applyHeaderFooterToPage as Ar, addFieldLock as As, CollectionSchemaField as At, setLineCap as Au, generateXRechnungCii as B, parseIccColorSpace as Ba, PdfStampAnnotation as Bc, PdfWorkerOptions as Bi, drawImageWithMatrix as Bl, BatchProgressCallback as Bn, PdfAProfile as Bo, shrinkFontSize as Br, setCertificationLevel as Bs, buildDocTimeStampDict as Bt, saveIncremental as Bu, RenderOptions as C, getSupportedFormats as Ca, searchTextItems as Cc, ItfOptions as Ci, isAccessible as Cl, metadataPlugin as Cn, generatePdfAXmpBytes as Co, RichTextFieldReadError as Cr, addCounterSignature as Cs, PostScriptFunction as Ct, fillEvenOdd as Cu, FetchLike as D, embedTiffCmyk as Da, generateInkAppearance as Dc, code39ToOperators as Di, parseXmpMetadata$1 as Dl, StreamingParseResult as Dn, countOccurrences as Do, HeaderFooterOptions as Dr, diffSignedContent as Ds, MarkdownToPdfOptions as Dt, rectangle as Du, renderToPdf as E, convertTiffCmykToRgb as Ea, generateHighlightAppearance as Ec, Code39Options as Ei, createXmpStream as El, ParsedPage as En, StrippedFeature as Eo, HeaderFooterContent as Er, DocumentDiff as Es, evaluateFunction as Et, moveTo as Eu, resolveFallback as F, computeImageDpi as Fa, CaretSymbol as Fc, BarcodeMatrix as Fi, beginMarkedContentWithProperties as Fl, hasInlineWasmData as Fn, XmpIssue as Fo, OverflowMode as Fr, ModificationViolationType as Fs, ReconstructOptions as Ft, isOpenTypeCFF as Fu, buildPdfA4Xmp as G, deduplicateImages as Ga, PdfPolyLineAnnotation as Gc, detectRuntime as Gi, moveText as Gl, PageLabelRange as Gn, generateWinAnsiToUnicodeCmap as Go, TablePreset as Gr, IncrementalObject as Gs, buildCalRGB as Gt, PdfA4ExtensionSchema as H, convertToGrayscale as Ha, LineEndingStyle as Hc, WasmLoaderConfig as Hi, drawXObject as Hl, batchFlatten as Hn, getSupportedLevels as Ho, wrapText as Hr, SignatureChainResult as Hs, CalRGBParams as Ht, splitByScript as I, computeTargetDimensions as Ia, PdfCaretAnnotation as Ic, BarcodeOptions as Ii, createMarkedContentScope as Il, isValidModuleName as In, XmpValidationResult as Io, OverflowResult as Ir, detectModifications as Is, reconstructLines as It, isTrueType as Iu, buildFunctionShading as J, OptimizationReport as Ja, PdfHighlightAnnotation as Jc, isWasmModuleCached as Ji, setCharacterSpacing as Jl, removePageLabels as Jn, OutputIntentOptions as Jo, borderedPreset as Jr, TrailerInfo as Js, DEFAULT_SARIF_TOOL_NAME as Jt, pdfA4Rules as K, BatchOptimizeOptions as Ka, PdfPolygonAnnotation as Kc, instantiateWasmModuleStreaming as Ki, moveTextSetLeading as Kl, PageLabelStyle as Kn, generateZapfDingbatsToUnicodeCmap as Ko, applyPreset as Kr, IncrementalSaveOptions as Ks, buildLab as Kt, OrderXType as L, IccProfile as La, PdfPopupAnnotation as Lc, base64Decode as Li, endArtifact as Ll, preloadInlineWasm as Ln, extractXmpMetadata as Lo, applyOverflow as Lr, MdpPermission as Ls, reconstructParagraphs as Lt, ChangeTracker as Lu, FallbackFont as M, JpegMarkerInfo as Ma, generateUnderlineAppearance as Mc, encodeCode128 as Mi, beginArtifactWithType as Ml, WasmModuleName as Mn, buildAfArray as Mo, replaceTemplateVariables as Mr, getFieldLocks as Ms, buildCollection as Mt, setLineWidth as Mu, FallbackRun as N, analyzeJpegMarkers as Na, FileAttachmentIcon as Nc, encodeCode128Values as Ni, beginMarkedContent as Nl, getInlineWasmBytes as Nn, createAssociatedFile as No, toAlpha as Nr, ModificationReport as Ns, Line as Nt, setMiterLimit as Nu, FetchLikeResponse as O, isCmykTiff as Oa, generateLineAppearance as Oc, computeCode39CheckDigit as Oi, PdfStreamWriter as Ol, StreamingParserEvent as On, stripProhibitedFeatures as Oo, HeaderFooterPosition as Or, FieldLockInfo as Os, markdownToPdf as Ot, setDashPattern as Ou, ScriptRun as P, ImageDpi as Pa, PdfFileAttachmentAnnotation as Pc, valuesToModules as Pi, beginMarkedContentSequence as Pl, getInlineWasmSize as Pn, ParsedXmpMetadata as Po, toRoman as Pr, ModificationViolation as Ps, Paragraph as Pt, stroke as Pu, levenshtein as Q, ImageOptimizeOptions as Qa, FreeTextAlignment as Qc, resetWasmLoader as Qi, setTextMatrix as Ql, BookmarkRef as Qn, TransparencyFinding as Qo, BarcodeReadResult as Qr, saveIncrementalWithSignaturePreservation as Qs, SarifResult as Qt, XRechnungOptions as R, embedIccProfile as Ra, PdfRedactAnnotation as Rc, base64Encode as Ri, endMarkedContent as Rl, BatchErrorStrategy as Rn, parseXmpMetadata as Ro, ellipsisText as Rr, buildDocMdpReference as Rs, DEFAULT_DOC_TIMESTAMP_CONTENTS_SIZE as Rt, IncrementalSaveResult as Ru, gtsPdfVtVersion as S, getImageFormatName as Sa, prepareForSigning as Sc, encodeEan8 as Si, checkAccessibility as Sl, MetadataPluginOptions as Sn, generatePdfAXmp as So, RemovePageFromEmptyDocumentError as Sr, CounterSignatureInfo as Ss, PdfFunctionDef as St, fillAndStroke as Su, h as T, TiffIfdEntry as Ta, generateFreeTextAppearance as Tc, itfToOperators as Ti, buildXmpMetadata as Tl, timestampPlugin as Tn, StripResult as To, UnexpectedFieldTypeError as Tr, DiffEntry as Ts, StitchingFunction as Tt, lineTo as Tu, PdfA4Level as U, isGrayscaleImage as Ua, PdfCircleAnnotation as Uc, clearWasmCache as Ui, beginText as Ul, batchMerge as Un, isValidLevel as Uo, PresetName as Ur, validateSignatureChain as Us, LabParams as Ut, PdfA4ExtensionProperty as V, parseIccDescription as Va, StandardStampName as Vc, RuntimeKind as Vi, drawImageXObject as Vl, BatchResult as Vn, getProfile as Vo, truncateText as Vr, SignatureChainEntry as Vs, CalGrayParams as Vt, __exportAll as Vu, PdfA4Options as W, DeduplicationReport as Wa, PdfLineAnnotation as Wc, configureWasmLoader as Wi, endText as Wl, processBatch as Wn, generateSymbolToUnicodeCmap as Wo, PresetOptions as Wr, AppendOptions as Ws, buildCalGray as Wt, CodeFrameOptions as X, optimizeAllImages as Xa, PdfStrikeOutAnnotation as Xc, loadWasmModuleStreaming as Xi, setFontSize as Xl, AddBookmarkOptions as Xn, SRGB_ICC_PROFILE as Xo, professionalPreset as Xr, findExistingSignatures as Xs, SARIF_SCHEMA_URI as Xt, sampleShadingColor as Y, ProgressInfo as Ya, PdfSquigglyAnnotation as Yc, loadWasmModule as Yi, setFont as Yl, setPageLabels as Yn, buildOutputIntent as Yo, minimalPreset as Yr, appendIncrementalUpdate as Ys, JsonReport as Yt, didYouMean as Z, DownscaleOptions as Za, PdfUnderlineAnnotation as Zc, provideWasmBytes as Zi, setLeading as Zl, BookmarkNode as Zn, generateSrgbIccProfile as Zo, stripedPreset as Zr, parseExistingTrailer as Zs, SarifLog as Zt, createWorkerPool as _, recompressWebP as _a, ByteRangeResult as _c, upcAToOperators as _i, PdfUaLevel as _l, extractTables as _n, EnforcePdfAOptions as _o, InvalidFieldNamePartError as _r, DssData as _s, buildType1Halftone as _t, curveToFinal as _u, decodeWoff as a, getTiffPageCount as aa, SignerInfo as ac, calculateBarcodeDimensions as ai, sha384 as al, NamespaceDef as an, recompressImage as ao, flattenField as ar, enforcePdfA as as, BoxGeometry as at, showTextNextLine as au, buildPdfVtDParts as b, ImageFormat as ba, embedSignature as bc, ean8ToOperators as bi, enforcePdfUa as bl, AccessibilityPluginOptions as bn, enforcePdfAFull as bo, NoSuchFieldError as br, embedLtvData as bs, nameHalftone as bt, endPath as bu, readWoffHeader as c, WebPImage as ca, encodeInteger as cc, Pdf417Options as ci, aesEncryptCBC as cl, buildNamespacesArray as cn, JpegWasmModule as co, BatchProcessingError as cr, LinearizationOptions as cs, PdfX6Variant as ct, buildSeparationColorSpace as cu, ExternalSigner as d, isWebPLossless as da, encodeOctetString as dc, DataMatrixOptions as di, EncryptDictValues as dl, buildRequirement as dn, initJpegWasm as do, ExceededMaxLengthError as dr, isLinearized as ds, buildPdfX6OutputIntent as dt, clipEvenOdd as du, TiffDecodeOptions as ea, TimestampResult as ec, readCode128 as ei, LinkHighlightMode as el, ValidationFinding as en, RawImageData as eo, getBookmarks as er, detectTransparency as es, FacturXProfile as et, setTextRise as eu, SignatureAlgorithm as f, DirectEmbedOptions as fa, encodePrintableString as fc, DataMatrixResult as fi, computeFileEncryptionKey as fl, buildRequirements as fn, isJpegWasmReady as fo, FieldAlreadyExistsError as fr, linearizePdf as fs, validateBoxGeometry as ft, closeAndStroke as fu, WorkerPoolOptions as g, encodePngFromPixels as ga, encodeUtf8String as gc, encodeUpcA as gi, PdfUaError as gl, TableExtractOptions as gn, applyRedaction as go, InvalidColorError as gr, optimizeIncrementalSave as gs, buildThresholdHalftone as gt, curveTo as gu, WorkerPool as h, embedTiffDirect as ha, encodeUTCTime as hc, calculateUpcCheckDigit as hi, PdfUaEnforcementResult as hl, ExtractedTable as hn, RedactionResult as ho, ForeignPageError as hr, findChangedObjects as hs, buildSampledTransferFunction as ht, closePath as hu, WoffInfo as i, decodeTiffPage as ia, SignatureOptions as ic, StyledBarcodeOptions as ii, sha256 as il, MATHML_NAMESPACE as in, optimizeImage as io, FlattenOptions as ir, PdfAValidationResult as is, generateCiiXml as it, showTextHex as iu, createRangeFetcher as j, injectJpegMetadata as ja, generateStrikeOutAppearance as jc, code128ToOperators as ji, beginArtifact as jl, PdfDocumentBuilder as jn, AssociatedFileResult as jo, formatDate as jr, buildFieldLockDict as js, CollectionView as jt, setLineJoin as ju, RangeFetchOptions as k, JpegMetadata as ka, generateSquareAppearance as kc, encodeCode39 as ki, PDFOperator as kl, StreamingParserOptions as kn, AFRelationship as ko, applyHeaderFooter as kr, FieldLockOptions as ks, CollectionOptions as kt, setFlatness as ku, DeferredSignOptions as l, decodeWebP as la, encodeLength as lc, encodePdf417 as li, rc4 as ll, buildPieceInfo as ln, decodeJpegWasm as lo, CombedTextLayoutError as lr, delinearizePdf as ls, buildBoxDict as lt, circlePath as lu, TaskRunner as m, canDirectEmbed as ma, encodeSet as mc, encodeDataMatrix as mi, verifyUserPassword as ml, buildDPartRoot as mn, RedactionOperatorOptions as mo, FontNotEmbeddedError as mr, computeObjectHash as ms, Type1Halftone as mt, closeFillEvenOddAndStroke as mu, index_d_exports as n, decodeTiff as na, parseTimestampResponse as nc, readEan13 as ni, PdfTextAnnotation as nl, toJsonReport as nn, downscaleImage as no, removeBookmark as nr, PdfAIssue as ns, InvoiceLine as nt, showText as nu, isWoff as o, isTiff as oa, buildPkcs7Signature as oc, renderStyledBarcode as oi, sha512 as ol, PDF2_NAMESPACE as on, ChromaSubsampling as oo, flattenFields as or, validatePdfA as os, PdfRect as ot, showTextWithSpacing as ou, signDeferred as p, DirectEmbedResult as pa, encodeSequence as pc, dataMatrixToOperators as pi, verifyOwnerPassword as pl, DocumentPart as pn, OverlayAlignment as po, FieldExistsAsNonTerminalError as pr, IncrementalChange as ps, STANDARD_SPOT_FUNCTIONS as pt, closeFillAndStroke as pu, FunctionShadingOptions as q, ImageOptimizeEntry as qa, PdfSquareAnnotation as qc, isWasmDisabled as qi, nextLine as ql, getPageLabels as qn, getToUnicodeCmap as qo, applyTablePreset as qr, SignatureByteRange as qs, labToRgb as qt, initWasm as r, decodeTiffAll as ra, requestTimestamp as rc, readEan8 as ri, TextAnnotationIcon as rl, toSarif as rn, estimateJpegQuality as ro, FlattenFormResult as rr, PdfALevel as rs, InvoiceParty as rt, showTextArray as ru, isWoff2 as s, parseTiffIfd as sa, encodeContextTag as sc, Pdf417Matrix as si, aesDecryptCBC as sl, buildNamespace as sn, JpegDecodeResult as so, flattenForm as sr, LinearizationInfo as ss, PdfX6Options as st, buildDeviceNColorSpace as su, InitWasmOptions as t, TiffImage as ta, buildTimestampRequest as tc, readCode39 as ti, PdfLinkAnnotation as tl, ValidationLevel as tn, RecompressOptions as to, removeAllBookmarks as tr, flattenTransparency as ts, Invoice as tt, setWordSpacing as tu, DeferredSignResult as u, isWebP as ua, encodeOID as uc, pdf417ToOperators as ui, md5 as ul, RequirementType as un, encodeJpegWasm as uo, EncryptedPdfError as ur, getLinearizationInfo as us, buildGtsPdfxVersion as ut, clip as uu, PdfVtConformance as v, webpToJpeg as va, PrepareAppearanceOptions as vc, calculateEanCheckDigit as vi, PdfUaValidationResult as vl, tableToCsv as vn, EnforcePdfAResult as vo, InvalidPageSizeError as vr, LtvOptions as vs, buildType5Halftone as vt, curveToInitial as vu, VNode as w, TiffCmykEmbedResult as wa, generateCircleAppearance as wc, encodeItf as wi, summarizeIssues as wl, TimestampPluginOptions as wn, StripOptions as wo, StreamingParseError as wr, getCounterSignatures as ws, SampledFunction as wt, fillEvenOddAndStroke as wu, buildVtDpm as x, detectImageFormat as xa, findSignatures as xc, encodeEan13 as xi, validatePdfUa as xl, accessibilityPlugin as xn, PdfAXmpOptions as xo, PluginError as xr, hasLtvData as xs, ExponentialFunction as xt, fill as xu, RecordMetadata as y, webpToPng as ya, computeSignatureHash as yc, ean13ToOperators as yi, PdfUaWarning as yl, tableToJson as yn, EnforcementAction as yo, MissingOnValueCheckError as yr, buildDssDictionary as ys, identityTransferFunction as yt, ellipsePath as yu, generateOrderX as z, extractIccProfile as za, PdfInkAnnotation as zc, PdfWorker as zi, wrapInMarkedContent as zl, BatchOptions as zn, validateXmpMetadata as zo, estimateTextWidth as zr, getCertificationLevel as zs, DocTimeStampOptions as zt, saveDocumentIncremental as zu };
8682
- //# sourceMappingURL=index-C1lZe66f.d.mts.map
10744
+ export { normalizeComponentDepth as $, loadWasmModuleStreaming as $a, SignatureByteRange as $c, curveToInitial as $d, professionalPreset as $i, generateStrikeOutAppearance as $l, SARIF_SCHEMA_URI as $n, optimizeAllImages as $o, AddBookmarkOptions as $r, getToUnicodeCmap as $s, CodeFrameOptions as $t, PdfUaValidationResult as $u, renderPageToCanvas as A, code39ToOperators as Aa, getCounterSignatures as Ac, setFont as Ad, HeaderFooterOptions as Ai, encodeLength as Al, MarkdownToPdfOptions as An, embedTiffCmyk as Ao, StreamingParseResult as Ar, StripOptions as As, FetchLike as At, formatNumber as Au, FillItem as B, base64Decode as Ba, ModificationViolation as Bc, showTextNextLine as Bd, applyOverflow as Bi, computeSignatureHash as Bl, reconstructParagraphs as Bn, IccProfile as Bo, preloadInlineWasm as Br, ParsedXmpMetadata as Bs, OrderXType as Bt, sha384 as Bu, ExtractedImage as C, ean8ToOperators as Ca, DssData as Cc, drawXObject as Cd, NoSuchFieldError as Ci, parseTimestampResponse as Cl, nameHalftone as Cn, ImageFormat as Co, AccessibilityPluginOptions as Cr, EnforcePdfAOptions as Cs, buildPdfVtDParts as Ct, PdfLinkAnnotation as Cu, Canvas2DLike as D, encodeItf as Da, hasLtvData as Dc, moveTextSetLeading as Dd, StreamingParseError as Di, buildPkcs7Signature as Dl, SampledFunction as Dn, TiffCmykEmbedResult as Do, TimestampPluginOptions as Dr, PdfAXmpOptions as Ds, VNode as Dt, formatDate$1 as Du, generateThumbnail as E, ItfOptions as Ea, embedLtvData as Ec, moveText as Ed, RichTextFieldReadError as Ei, SignerInfo as El, PostScriptFunction as En, getSupportedFormats as Eo, metadataPlugin as Er, enforcePdfAFull as Es, RenderOptions$1 as Et, AFDate_FormatEx as Eu, InterpretOptions as F, encodeCode128 as Fa, FieldLockOptions as Fc, setTextRise as Fd, replaceTemplateVariables as Fi, encodeSet as Fl, buildCollection as Fn, JpegMarkerInfo as Fo, WasmModuleName as Fr, AFRelationship as Fs, FallbackFont as Ft, addVisibilityAction as Fu, TextItem as G, WasmLoaderConfig as Ga, getCertificationLevel as Gc, clip as Gd, wrapText as Gi, searchTextItems as Gl, CalRGBParams as Gn, convertToGrayscale as Go, batchFlatten as Gr, validateXmpMetadata as Gs, PdfA4ExtensionSchema as Gt, md5 as Gu, Rgba as H, PdfWorker as Ha, detectModifications as Hc, buildDeviceNColorSpace as Hd, estimateTextWidth as Hi, findSignatures as Hl, DocTimeStampOptions as Hn, extractIccProfile as Ho, BatchOptions as Hr, XmpValidationResult as Hs, generateOrderX as Ht, aesDecryptCBC as Hu, interpretContentStream as I, encodeCode128Values as Ia, addFieldLock as Ic, setWordSpacing as Id, toAlpha as Ii, encodeUTCTime as Il, Line as In, analyzeJpegMarkers as Io, getInlineWasmBytes as Ir, AssociatedFileOptions as Is, FallbackRun as It, setFieldVisibility as Iu, layoutColumns as J, detectRuntime as Ja, SignatureChainResult as Jc, closeFillAndStroke as Jd, TablePreset as Ji, generateHighlightAppearance as Jl, buildCalRGB as Jn, deduplicateImages as Jo, PageLabelRange as Jr, getSupportedLevels as Js, buildPdfA4Xmp as Jt, verifyOwnerPassword as Ju, Matrix as K, clearWasmCache as Ka, setCertificationLevel as Kc, clipEvenOdd as Kd, PresetName as Ki, generateCircleAppearance as Kl, LabParams as Kn, isGrayscaleImage as Ko, batchMerge as Kr, PdfAProfile as Ks, PdfA4Level as Kt, EncryptDictValues as Ku, interpretPage as L, valuesToModules as La, buildFieldLockDict as Lc, showText as Ld, toRoman as Li, encodeUtf8String as Ll, Paragraph as Ln, ImageDpi as Lo, getInlineWasmSize as Lr, AssociatedFileResult as Ls, ScriptRun as Lt, AFSpecial_Format as Lu, RenderOptions as M, encodeCode39 as Ma, DocumentDiff as Mc, setLeading as Md, applyHeaderFooter as Mi, encodeOctetString as Ml, CollectionOptions as Mn, JpegMetadata as Mo, StreamingParserOptions as Mr, StrippedFeature as Ms, RangeFetchOptions as Mt, getFieldValue as Mu, rasterize as N, Code128Options as Na, diffSignedContent as Nc, setTextMatrix as Nd, applyHeaderFooterToPage as Ni, encodePrintableString as Nl, CollectionSchemaField as Nn, extractJpegMetadata as No, StreamingPdfParser as Nr, countOccurrences as Ns, RangeFetcher as Nt, resolveFieldReference as Nu, CanvasRenderOptions as O, itfToOperators as Oa, CounterSignatureInfo as Oc, nextLine as Od, UnexpectedFieldTypeError as Oi, encodeContextTag as Ol, StitchingFunction as On, TiffIfdEntry as Oo, timestampPlugin as Or, generatePdfAXmp as Os, h as Ot, parseAcrobatDate as Ou, renderPageToImage as P, code128ToOperators as Pa, FieldLockInfo as Pc, setTextRenderingMode as Pd, formatDate as Pi, encodeSequence as Pl, CollectionView as Pn, injectJpegMetadata as Po, PdfDocumentBuilder as Pr, stripProhibitedFeatures as Ps, createRangeFetcher as Pt, setFieldValue as Pu, getComponentDepths as Q, loadWasmModule as Qa, IncrementalSaveOptions as Qc, curveToFinal as Qd, minimalPreset as Qi, generateSquigglyAppearance as Ql, JsonReport as Qn, ProgressInfo as Qo, setPageLabels as Qr, generateZapfDingbatsToUnicodeCmap as Qs, sampleShadingColor as Qt, PdfUaLevel as Qu, DisplayItem as R, BarcodeMatrix as Ra, getFieldLocks as Rc, showTextArray as Rd, OverflowMode as Ri, ByteRangeResult as Rl, ReconstructOptions as Rn, computeImageDpi as Ro, hasInlineWasmData as Rr, buildAfArray as Rs, resolveFallback as Rt, validateFieldValue as Ru, extractFonts as S, ean13ToOperators as Sa, optimizeIncrementalSave as Sc, drawImageXObject as Sd, __exportAll as Sf, MissingOnValueCheckError as Si, buildTimestampRequest as Sl, identityTransferFunction as Sn, webpToPng as So, tableToJson as Sr, validatePdfX as Ss, RecordMetadata as St, LinkHighlightMode as Su, ThumbnailOptions as T, encodeEan8 as Ta, buildDssDictionary as Tc, endText as Td, RemovePageFromEmptyDocumentError as Ti, SignatureOptions as Tl, PdfFunctionDef as Tn, getImageFormatName as To, MetadataPluginOptions as Tr, EnforcementAction as Ts, gtsPdfVtVersion as Tt, TextAnnotationIcon as Tu, StrokeItem as U, PdfWorkerOptions as Ua, MdpPermission as Uc, buildSeparationColorSpace as Ud, shrinkFontSize as Ui, prepareForSigning as Ul, buildDocTimeStampDict as Un, parseIccColorSpace as Uo, BatchProgressCallback as Ur, extractXmpMetadata as Us, generateXRechnungCii as Ut, aesEncryptCBC as Uu, ImageItem as V, base64Encode as Va, ModificationViolationType as Vc, showTextWithSpacing as Vd, ellipsisText as Vi, embedSignature as Vl, DEFAULT_DOC_TIMESTAMP_CONTENTS_SIZE as Vn, embedIccProfile as Vo, BatchErrorStrategy as Vr, XmpIssue as Vs, XRechnungOptions as Vt, sha512 as Vu, SubPath as W, RuntimeKind as Wa, buildDocMdpReference as Wc, circlePath as Wd, truncateText as Wi, decodeJpeg2000 as Wl, CalGrayParams as Wn, parseIccDescription as Wo, BatchResult as Wr, parseXmpMetadata as Ws, PdfA4ExtensionProperty as Wt, rc4 as Wu, layoutTextFlow as X, isWasmDisabled as Xa, AppendOptions as Xc, closePath as Xd, applyTablePreset as Xi, generateLineAppearance as Xl, labToRgb as Xn, ImageOptimizeEntry as Xo, getPageLabels as Xr, generateSymbolToUnicodeCmap as Xs, FunctionShadingOptions as Xt, PdfUaEnforcementResult as Xu, layoutParagraph as Y, instantiateWasmModuleStreaming as Ya, validateSignatureChain as Yc, closeFillEvenOddAndStroke as Yd, applyPreset as Yi, generateInkAppearance as Yl, buildLab as Yn, BatchOptimizeOptions as Yo, PageLabelStyle as Yr, isValidLevel as Ys, pdfA4Rules as Yt, verifyUserPassword as Yu, downscale16To8 as Z, isWasmModuleCached as Za, IncrementalObject as Zc, curveTo as Zd, borderedPreset as Zi, generateSquareAppearance as Zl, DEFAULT_SARIF_TOOL_NAME as Zn, OptimizationReport as Zo, removePageLabels as Zr, generateWinAnsiToUnicodeCmap as Zs, buildFunctionShading as Zt, PdfUaError as Zu, DiffResult as _, encodeDataMatrix as _a, isLinearized as _c, createMarkedContentScope as _d, isTrueType as _f, FontNotEmbeddedError as _i, extractCrlUrls as _l, Type1Halftone as _n, canDirectEmbed as _o, buildDPartRoot as _r, RedactionOperatorOptions as _s, TaskRunner as _t, PdfSquigglyAnnotation as _u, TileGrid as a, readEan13 as aa, TransparencyInfo as ac, summarizeIssues as ad, fillEvenOddAndStroke as af, removeBookmark as ai, validateByteRangeIntegrity as al, InvoiceLine as an, decodeTiff as ao, toJsonReport as ar, downscaleImage as as, decodeTileRegion as at, PdfPopupAnnotation as au, ExtractedFont as b, upcAToOperators as ba, computeObjectHash as bc, wrapInMarkedContent as bd, saveDocumentIncremental as bf, InvalidFieldNamePartError as bi, extractOcspUrl as bl, buildType1Halftone as bn, recompressWebP as bo, extractTables as br, buildPdfXOutputIntent as bs, createWorkerPool as bt, FreeTextAlignment as bu, renderPageTile as c, calculateBarcodeDimensions as ca, PdfAIssue as cc, parseXmpMetadata$1 as cd, rectangle as cf, flattenField as ci, validateCertificatePolicy as cl, BoxGeometry as cn, getTiffPageCount as co, NamespaceDef as cr, recompressImage as cs, decodeWoff as ct, PdfStampAnnotation as cu, redactRegions as d, Pdf417Options as da, enforcePdfA as dc, MarkedContentScope as dd, setLineCap as df, BatchProcessingError as di, TrustStore as dl, PdfX6Variant as dn, WebPImage as do, buildNamespacesArray as dr, JpegWasmModule as ds, readWoffHeader as dt, PdfCircleAnnotation as du, stripedPreset as ea, OutputIntentOptions as ec, PdfUaWarning as ed, ellipsePath as ef, BookmarkNode as ei, TrailerInfo as el, didYouMean as en, provideWasmBytes as eo, SarifLog as er, DownscaleOptions as es, offsetSignedToUnsigned as et, generateUnderlineAppearance as eu, ApplyOcrOptions as f, encodePdf417 as fa, validatePdfA as fc, beginArtifact as fd, setLineJoin as ff, CombedTextLayoutError as fi, extractEmbeddedRevocationData as fl, buildBoxDict as fn, decodeWebP as fo, buildPieceInfo as fr, decodeJpegWasm as fs, DeferredSignOptions as ft, PdfLineAnnotation as fu, CompareOptions as g, dataMatrixToOperators as ga, getLinearizationInfo as gc, beginMarkedContentWithProperties as gd, isOpenTypeCFF as gf, FieldExistsAsNonTerminalError as gi, downloadCrl as gl, STANDARD_SPOT_FUNCTIONS as gn, DirectEmbedResult as go, DocumentPart as gr, OverlayAlignment as gs, signDeferred as gt, PdfHighlightAnnotation as gu, applyOcr as h, DataMatrixResult as ha, delinearizePdf as hc, beginMarkedContentSequence as hd, stroke as hf, FieldAlreadyExistsError as hi, validateCertificateChain as hl, validateBoxGeometry as hn, DirectEmbedOptions as ho, buildRequirements as hr, isJpegWasmReady as hs, SignatureAlgorithm as ht, PdfSquareAnnotation as hu, RenderCache as i, readCode39 as ia, TransparencyFinding as ic, isAccessible as id, fillEvenOdd as if, removeAllBookmarks as ii, saveIncrementalWithSignaturePreservation as il, Invoice as in, TiffImage as io, ValidationLevel as ir, RecompressOptions as is, decodeTile as it, PdfCaretAnnotation as iu, RasterImage as j, computeCode39CheckDigit as ja, DiffEntry as jc, setFontSize as jd, HeaderFooterPosition as ji, encodeOID as jl, markdownToPdf as jn, isCmykTiff as jo, StreamingParserEvent as jr, StripResult as js, FetchLikeResponse as jt, createSandbox as ju, renderDisplayListToCanvas as k, Code39Options as ka, addCounterSignature as kc, setCharacterSpacing as kd, HeaderFooterContent as ki, encodeInteger as kl, evaluateFunction as kn, convertTiffCmykToRgb as ko, ParsedPage as kr, generatePdfAXmpBytes as ks, renderToPdf as kt, AFNumber_Format as ku, RedactRect as l, renderStyledBarcode as la, PdfALevel as lc, PdfStreamWriter as ld, setDashPattern as lf, flattenFields as li, validateExtendedKeyUsage as ll, PdfRect as ln, isTiff as lo, PDF2_NAMESPACE as lr, ChromaSubsampling as ls, isWoff as lt, StandardStampName as lu, OcrWord as m, DataMatrixOptions as ma, LinearizationOptions as mc, beginMarkedContent as md, setMiterLimit as mf, ExceededMaxLengthError as mi, buildCertificateChain as ml, buildPdfX6OutputIntent as mn, isWebPLossless as mo, buildRequirement as mr, initJpegWasm as ms, ExternalSigner as mt, PdfPolygonAnnotation as mu, index_d_exports as n, readBarcode as na, SRGB_ICC_PROFILE as nc, validatePdfUa as nd, fill as nf, addBookmark as ni, findExistingSignatures as nl, renderCodeFrame as nn, IfdEntry as no, SarifRun as nr, OptimizeResult as ns, upscale8To16 as nt, PdfFileAttachmentAnnotation as nu, TileOptions as o, readEan8 as oa, detectTransparency as oc, buildXmpMetadata as od, lineTo as of, FlattenFormResult as oi, verifySignatureDetailed as ol, InvoiceParty as on, decodeTiffAll as oo, toSarif as or, estimateJpegQuality as os, parseTileInfo as ot, PdfRedactAnnotation as ou, OcrEngine as p, pdf417ToOperators as pa, LinearizationInfo as pc, beginArtifactWithType as pd, setLineWidth as pf, EncryptedPdfError as pi, verifyOfflineRevocation as pl, buildGtsPdfxVersion as pn, isWebP as po, RequirementType as pr, encodeJpegWasm as ps, DeferredSignResult as pt, PdfPolyLineAnnotation as pu, findHyphenationPoints as q, configureWasmLoader as qa, SignatureChainEntry as qc, closeAndStroke as qd, PresetOptions as qi, generateFreeTextAppearance as ql, buildCalGray as qn, DeduplicationReport as qo, processBatch as qr, getProfile as qs, PdfA4Options as qt, computeFileEncryptionKey as qu, initWasm as r, readCode128 as ra, generateSrgbIccProfile as rc, checkAccessibility as rd, fillAndStroke as rf, getBookmarks as ri, parseExistingTrailer as rl, FacturXProfile as rn, TiffDecodeOptions as ro, ValidationFinding as rr, RawImageData as rs, assembleTiles as rt, CaretSymbol as ru, computeTileGrid as s, StyledBarcodeOptions as sa, flattenTransparency as sc, createXmpStream as sd, moveTo as sf, FlattenOptions as si, EKU_OIDS as sl, generateCiiXml as sn, decodeTiffPage as so, MATHML_NAMESPACE as sr, optimizeImage as ss, WoffInfo as st, PdfInkAnnotation as su, InitWasmOptions as t, BarcodeReadResult as ta, buildOutputIntent as tc, enforcePdfUa as td, endPath as tf, BookmarkRef as ti, appendIncrementalUpdate as tl, levenshtein as tn, resetWasmLoader as to, SarifResult as tr, ImageOptimizeOptions as ts, summarizeBitDepth as tt, FileAttachmentIcon as tu, RedactResult as u, Pdf417Matrix as ua, PdfAValidationResult as uc, PDFOperator as ud, setFlatness as uf, flattenForm as ui, validateKeyUsage as ul, PdfX6Options as un, parseTiffIfd as uo, buildNamespace as ur, JpegDecodeResult as us, isWoff2 as ut, LineEndingStyle as uu, compareImages as v, calculateUpcCheckDigit as va, linearizePdf as vc, endArtifact as vd, ChangeTracker as vf, ForeignPageError as vi, isCertificateRevoked as vl, buildSampledTransferFunction as vn, embedTiffDirect as vo, ExtractedTable as vr, RedactionResult as vs, WorkerPool as vt, PdfStrikeOutAnnotation as vu, extractImages as w, encodeEan13 as wa, LtvOptions as wc, beginText as wd, PluginError as wi, requestTimestamp as wl, ExponentialFunction as wn, detectImageFormat as wo, accessibilityPlugin as wr, EnforcePdfAResult as ws, buildVtDpm as wt, PdfTextAnnotation as wu, FontFileFormat as x, calculateEanCheckDigit as xa, findChangedObjects as xc, drawImageWithMatrix as xd, saveIncremental as xf, InvalidPageSizeError as xi, TimestampResult as xl, buildType5Halftone as xn, webpToJpeg as xo, tableToCsv as xr, enforcePdfX as xs, PdfVtConformance as xt, PdfFreeTextAnnotation as xu, comparePages as y, encodeUpcA as ya, IncrementalChange as yc, endMarkedContent as yd, IncrementalSaveResult as yf, InvalidColorError as yi, checkCertificateStatus as yl, buildThresholdHalftone as yn, encodePngFromPixels as yo, TableExtractOptions as yr, applyRedaction as ys, WorkerPoolOptions as yt, PdfUnderlineAnnotation as yu, DisplayList as z, BarcodeOptions as za, ModificationReport as zc, showTextHex as zd, OverflowResult as zi, PrepareAppearanceOptions as zl, reconstructLines as zn, computeTargetDimensions as zo, isValidModuleName as zr, createAssociatedFile as zs, splitByScript as zt, sha256 as zu };
10745
+ //# sourceMappingURL=index-Cai7jC6u.d.mts.map