modern-pdf-lib 0.28.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -14
- package/dist/{batchOptimize-CXC9gNqD.cjs → batchOptimize-Ba5ehwoI.cjs} +2 -2
- package/dist/{batchOptimize-CjLGD5ie.mjs → batchOptimize-KB1k9LFg.mjs} +5 -5
- package/dist/{bridge-ZD6O6QQa.mjs → bridge-7dhURZj7.mjs} +3 -3
- package/dist/browser.cjs +55 -9
- package/dist/browser.d.cts +5 -5
- package/dist/browser.d.mts +5 -5
- package/dist/browser.mjs +11 -11
- package/dist/cli/index.cjs +2 -2
- package/dist/cli/index.mjs +3 -3
- package/dist/{compressionAnalysis-BgKy45pA.mjs → compressionAnalysis-BEd_745I.mjs} +3 -3
- package/dist/{compressionAnalysis-UfmonqbM.d.cts → compressionAnalysis-CyBVhRU5.d.cts} +2 -2
- package/dist/{compressionAnalysis-CDOp_vPr.d.mts.map → compressionAnalysis-CyBVhRU5.d.cts.map} +1 -1
- package/dist/{compressionAnalysis-Djv-Zvcd.cjs → compressionAnalysis-DwxVCe4E.cjs} +2 -2
- package/dist/{compressionAnalysis-CDOp_vPr.d.mts → compressionAnalysis-InMeGrqw.d.mts} +2 -2
- package/dist/{compressionAnalysis-UfmonqbM.d.cts.map → compressionAnalysis-InMeGrqw.d.mts.map} +1 -1
- package/dist/create.cjs +2 -2
- package/dist/create.d.cts +2 -2
- package/dist/create.d.mts +2 -2
- package/dist/create.mjs +2 -2
- package/dist/{deduplicateImages-BTCyAPfJ.mjs → deduplicateImages-Ba7RZ_sx.mjs} +3 -3
- package/dist/{deduplicateImages-CaGgaqyS.cjs → deduplicateImages-CYFpiEch.cjs} +2 -2
- package/dist/{fontEmbed-DGiZS0h2.d.cts → fontEmbed-DxtdZxUj.d.cts} +2 -2
- package/dist/{fontEmbed-DGiZS0h2.d.cts.map → fontEmbed-DxtdZxUj.d.cts.map} +1 -1
- package/dist/{fontEmbed-DtA_riGC.d.mts → fontEmbed-N-VWoZ0F.d.mts} +2 -2
- package/dist/{fontEmbed-DtA_riGC.d.mts.map → fontEmbed-N-VWoZ0F.d.mts.map} +1 -1
- package/dist/{imageExtract-DT50Hp_g.cjs → imageExtract-DQomHJiA.cjs} +2 -2
- package/dist/{imageExtract-Dapir-ux.mjs → imageExtract-DV-zq4h3.mjs} +2 -2
- package/dist/{index-C1lZe66f.d.mts → index-5Fv1-Z-p.d.mts} +1562 -6
- package/dist/index-5Fv1-Z-p.d.mts.map +1 -0
- package/dist/{index-D1SvXWSI.d.cts → index-_Onej9Wy.d.cts} +1562 -6
- package/dist/index-_Onej9Wy.d.cts.map +1 -0
- package/dist/index.cjs +55 -9
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/index.mjs +11 -11
- package/dist/{layout-lO4x64kY.mjs → layout-D035GpU8.mjs} +2 -2
- package/dist/{layout-C4vbTlBW.cjs → layout-DiO_3JLh.cjs} +2 -2
- package/dist/{loader-B1Ix7ozU.mjs → loader-DkrXz-h4.mjs} +2 -2
- package/dist/parse.cjs +4 -4
- package/dist/parse.d.cts +2 -2
- package/dist/parse.d.mts +2 -2
- package/dist/parse.mjs +4 -4
- package/dist/{pdfDocument-CzOipXnw.d.cts → pdfDocument-5Do0LKQh.d.cts} +22 -1
- package/dist/pdfDocument-5Do0LKQh.d.cts.map +1 -0
- package/dist/{pdfDocument-DRbT6HZw.mjs → pdfDocument-B6czyaVI.mjs} +46 -18
- package/dist/{pdfDocument-CH2E4UCc.d.mts → pdfDocument-B_0VSUHL.d.mts} +22 -1
- package/dist/pdfDocument-B_0VSUHL.d.mts.map +1 -0
- package/dist/{pdfDocument-C_7mrBCL.cjs → pdfDocument-BaQlOkYr.cjs} +48 -14
- package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/dist/{src-DJaD-bJ2.mjs → src-BOzRFaEE.mjs} +5533 -184
- package/dist/{src-C-IDXuvi.cjs → src-vNbsqoIy.cjs} +5887 -268
- package/dist/{streamDecode-BamENT3k.mjs → streamDecode-DCpgTocN.mjs} +15 -2
- package/dist/{streamDecode-DcaZz309.cjs → streamDecode-kQ-REV7v.cjs} +26 -1
- package/package.json +10 -4
- package/dist/index-C1lZe66f.d.mts.map +0 -1
- package/dist/index-D1SvXWSI.d.cts.map +0 -1
- package/dist/pdfDocument-CH2E4UCc.d.mts.map +0 -1
- 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-
|
|
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-5Do0LKQh.cjs";
|
|
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.cjs";
|
|
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-
|
|
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-DxtdZxUj.cjs";
|
|
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-Df1262CT.cjs";
|
|
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-
|
|
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-CyBVhRU5.cjs";
|
|
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";
|
|
@@ -1739,6 +2010,77 @@ interface SearchOptions {
|
|
|
1739
2010
|
*/
|
|
1740
2011
|
declare function searchTextItems(items: readonly TextItem[], query: string | RegExp, options?: SearchOptions): TextMatch[];
|
|
1741
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;
|
|
2083
|
+
//#endregion
|
|
1742
2084
|
//#region src/signature/byteRange.d.ts
|
|
1743
2085
|
/**
|
|
1744
2086
|
* @module signature/byteRange
|
|
@@ -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
|
|
@@ -3438,6 +4543,91 @@ interface EnforcementAction {
|
|
|
3438
4543
|
*/
|
|
3439
4544
|
declare function enforcePdfAFull(pdfBytes: Uint8Array, level: PdfALevel, options?: EnforcePdfAOptions): Promise<EnforcePdfAResult>;
|
|
3440
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.
|
|
4621
|
+
*
|
|
4622
|
+
* Creates the /OutputIntent dictionary and ICC profile stream
|
|
4623
|
+
* for use in the catalog's /OutputIntents array.
|
|
4624
|
+
*
|
|
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.
|
|
4628
|
+
*/
|
|
4629
|
+
declare function buildPdfXOutputIntent(registry: PdfObjectRegistry, config: OutputIntentConfig): PdfRef;
|
|
4630
|
+
//#endregion
|
|
3441
4631
|
//#region src/annotation/applyRedactions.d.ts
|
|
3442
4632
|
/** Result of applying redactions to a document. */
|
|
3443
4633
|
interface RedactionResult {
|
|
@@ -8625,8 +9815,374 @@ 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[];
|
|
8628
10184
|
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 };
|
|
10185
|
+
export { AFDate_FormatEx, AFNumber_Format, AFRelationship, AFSpecial_Format, 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, EKU_OIDS, 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$1 as TextAlignment, TextAnnotationIcon, TextAppearanceOptions, TextExtractionOptions, TextItem, Line as TextLine, Paragraph as TextParagraph, TextRenderingMode, TextRun, TiffCmykEmbedResult, TiffDecodeOptions, TiffIfdEntry, TiffImage, TilingPatternOptions, TimestampPluginOptions, TimestampResult, TrailerInfo, TransparencyFinding, TransparencyGroupOptions, TransparencyInfo, TrustStore, 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, addVisibilityAction, addWatermark, addWatermarkToPage, aesDecryptCBC, aesEncryptCBC, analyzeImages, analyzeJpegMarkers, annotationFromDict, appendIncrementalUpdate, applyFillColor, applyHeaderFooter, applyHeaderFooterToPage, 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, componentsToColor, computeCode39CheckDigit, computeFileEncryptionKey, computeFontSize, computeImageDpi, computeObjectHash, computeSignatureHash, computeTargetDimensions, 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, extractIccProfile, extractImages, extractJpegMetadata, extractMetrics, extractOcspUrl, 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, 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, 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, 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, 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
10186
|
}
|
|
8631
10187
|
/**
|
|
8632
10188
|
* Options for WASM module initialization.
|
|
@@ -8678,5 +10234,5 @@ interface InitWasmOptions {
|
|
|
8678
10234
|
*/
|
|
8679
10235
|
declare function initWasm(options?: string | URL | InitWasmOptions): Promise<void>;
|
|
8680
10236
|
//#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, 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-
|
|
10237
|
+
export { generateOrderX as $, extractIccProfile as $a, findSignatures as $c, PdfWorker as $i, aesDecryptCBC as $l, BatchOptions as $n, XmpValidationResult as $o, estimateTextWidth as $r, detectModifications as $s, DocTimeStampOptions as $t, buildDeviceNColorSpace as $u, WorkerPoolOptions as A, encodePngFromPixels as Aa, checkCertificateStatus as Ac, IncrementalSaveResult as Ad, encodeUpcA as Ai, PdfUnderlineAnnotation as Al, TableExtractOptions as An, applyRedaction as Ao, InvalidColorError as Ar, IncrementalChange as As, buildThresholdHalftone as At, endMarkedContent as Au, renderToPdf as B, convertTiffCmykToRgb as Ba, encodeInteger as Bc, Code39Options as Bi, AFNumber_Format as Bl, ParsedPage as Bn, generatePdfAXmpBytes as Bo, HeaderFooterContent as Br, addCounterSignature as Bs, evaluateFunction as Bt, setCharacterSpacing as Bu, DeferredSignOptions as C, decodeWebP as Ca, extractEmbeddedRevocationData as Cc, setLineJoin as Cd, encodePdf417 as Ci, PdfLineAnnotation as Cl, buildPieceInfo as Cn, decodeJpegWasm as Co, CombedTextLayoutError as Cr, validatePdfA as Cs, buildBoxDict as Ct, beginArtifact as Cu, signDeferred as D, DirectEmbedResult as Da, downloadCrl as Dc, isOpenTypeCFF as Dd, dataMatrixToOperators as Di, PdfHighlightAnnotation as Dl, DocumentPart as Dn, OverlayAlignment as Do, FieldExistsAsNonTerminalError as Dr, getLinearizationInfo as Ds, STANDARD_SPOT_FUNCTIONS as Dt, beginMarkedContentWithProperties as Du, SignatureAlgorithm as E, DirectEmbedOptions as Ea, validateCertificateChain as Ec, stroke as Ed, DataMatrixResult as Ei, PdfSquareAnnotation as El, buildRequirements as En, isJpegWasmReady as Eo, FieldAlreadyExistsError as Er, delinearizePdf as Es, validateBoxGeometry as Et, beginMarkedContentSequence as Eu, buildVtDpm as F, detectImageFormat as Fa, requestTimestamp as Fc, encodeEan13 as Fi, PdfTextAnnotation as Fl, accessibilityPlugin as Fn, EnforcePdfAResult as Fo, PluginError as Fr, LtvOptions as Fs, ExponentialFunction as Ft, beginText as Fu, createRangeFetcher as G, injectJpegMetadata as Ga, encodeSequence as Gc, code128ToOperators as Gi, setFieldValue as Gl, PdfDocumentBuilder as Gn, stripProhibitedFeatures as Go, formatDate as Gr, FieldLockInfo as Gs, CollectionView as Gt, setTextRenderingMode as Gu, FetchLikeResponse as H, isCmykTiff as Ha, encodeOID as Hc, computeCode39CheckDigit as Hi, createSandbox as Hl, StreamingParserEvent as Hn, StripResult as Ho, HeaderFooterPosition as Hr, DiffEntry as Hs, markdownToPdf as Ht, setFontSize as Hu, gtsPdfVtVersion as I, getImageFormatName as Ia, SignatureOptions as Ic, encodeEan8 as Ii, TextAnnotationIcon as Il, MetadataPluginOptions as In, EnforcementAction as Io, RemovePageFromEmptyDocumentError as Ir, buildDssDictionary as Is, PdfFunctionDef as It, endText as Iu, ScriptRun as J, ImageDpi as Ja, encodeUtf8String as Jc, valuesToModules as Ji, AFSpecial_Format as Jl, getInlineWasmSize as Jn, AssociatedFileResult as Jo, toRoman as Jr, buildFieldLockDict as Js, Paragraph as Jt, showText as Ju, FallbackFont as K, JpegMarkerInfo as Ka, encodeSet as Kc, encodeCode128 as Ki, addVisibilityAction as Kl, WasmModuleName as Kn, AFRelationship as Ko, replaceTemplateVariables as Kr, FieldLockOptions as Ks, buildCollection as Kt, setTextRise as Ku, RenderOptions as L, getSupportedFormats as La, SignerInfo as Lc, ItfOptions as Li, AFDate_FormatEx as Ll, metadataPlugin as Ln, enforcePdfAFull as Lo, RichTextFieldReadError as Lr, embedLtvData as Ls, PostScriptFunction as Lt, moveText as Lu, PdfVtConformance as M, webpToJpeg as Ma, TimestampResult as Mc, saveIncremental as Md, calculateEanCheckDigit as Mi, PdfFreeTextAnnotation as Ml, tableToCsv as Mn, enforcePdfX as Mo, InvalidPageSizeError as Mr, findChangedObjects as Ms, buildType5Halftone as Mt, drawImageWithMatrix as Mu, RecordMetadata as N, webpToPng as Na, buildTimestampRequest as Nc, ean13ToOperators as Ni, LinkHighlightMode as Nl, tableToJson as Nn, validatePdfX as No, MissingOnValueCheckError as Nr, optimizeIncrementalSave as Ns, identityTransferFunction as Nt, drawImageXObject as Nu, TaskRunner as O, canDirectEmbed as Oa, extractCrlUrls as Oc, isTrueType as Od, encodeDataMatrix as Oi, PdfSquigglyAnnotation as Ol, buildDPartRoot as On, RedactionOperatorOptions as Oo, FontNotEmbeddedError as Or, isLinearized as Os, Type1Halftone as Ot, createMarkedContentScope as Ou, buildPdfVtDParts as P, ImageFormat as Pa, parseTimestampResponse as Pc, ean8ToOperators as Pi, PdfLinkAnnotation as Pl, AccessibilityPluginOptions as Pn, EnforcePdfAOptions as Po, NoSuchFieldError as Pr, DssData as Ps, nameHalftone as Pt, drawXObject as Pu, XRechnungOptions as Q, embedIccProfile as Qa, embedSignature as Qc, base64Encode as Qi, sha512 as Ql, BatchErrorStrategy as Qn, XmpIssue as Qo, ellipsisText as Qr, ModificationViolationType as Qs, DEFAULT_DOC_TIMESTAMP_CONTENTS_SIZE as Qt, showTextWithSpacing as Qu, VNode as R, TiffCmykEmbedResult as Ra, buildPkcs7Signature as Rc, encodeItf as Ri, formatDate$1 as Rl, TimestampPluginOptions as Rn, PdfAXmpOptions as Ro, StreamingParseError as Rr, hasLtvData as Rs, SampledFunction as Rt, moveTextSetLeading as Ru, readWoffHeader as S, WebPImage as Sa, TrustStore as Sc, setLineCap as Sd, Pdf417Options as Si, PdfCircleAnnotation as Sl, buildNamespacesArray as Sn, JpegWasmModule as So, BatchProcessingError as Sr, enforcePdfA as Ss, PdfX6Variant as St, MarkedContentScope as Su, ExternalSigner as T, isWebPLossless as Ta, buildCertificateChain as Tc, setMiterLimit as Td, DataMatrixOptions as Ti, PdfPolygonAnnotation as Tl, buildRequirement as Tn, initJpegWasm as To, ExceededMaxLengthError as Tr, LinearizationOptions as Ts, buildPdfX6OutputIntent as Tt, beginMarkedContent as Tu, RangeFetchOptions as U, JpegMetadata as Ua, encodeOctetString as Uc, encodeCode39 as Ui, getFieldValue as Ul, StreamingParserOptions as Un, StrippedFeature as Uo, applyHeaderFooter as Ur, DocumentDiff as Us, CollectionOptions as Ut, setLeading as Uu, FetchLike as V, embedTiffCmyk as Va, encodeLength as Vc, code39ToOperators as Vi, formatNumber as Vl, StreamingParseResult as Vn, StripOptions as Vo, HeaderFooterOptions as Vr, getCounterSignatures as Vs, MarkdownToPdfOptions as Vt, setFont as Vu, RangeFetcher as W, extractJpegMetadata as Wa, encodePrintableString as Wc, Code128Options as Wi, resolveFieldReference as Wl, StreamingPdfParser as Wn, countOccurrences as Wo, applyHeaderFooterToPage as Wr, diffSignedContent as Ws, CollectionSchemaField as Wt, setTextMatrix as Wu, splitByScript as X, computeTargetDimensions as Xa, PrepareAppearanceOptions as Xc, BarcodeOptions as Xi, sha256 as Xl, isValidModuleName as Xn, createAssociatedFile as Xo, OverflowResult as Xr, ModificationReport as Xs, reconstructLines as Xt, showTextHex as Xu, resolveFallback as Y, computeImageDpi as Ya, ByteRangeResult as Yc, BarcodeMatrix as Yi, validateFieldValue as Yl, hasInlineWasmData as Yn, buildAfArray as Yo, OverflowMode as Yr, getFieldLocks as Ys, ReconstructOptions as Yt, showTextArray as Yu, OrderXType as Z, IccProfile as Za, computeSignatureHash as Zc, base64Decode as Zi, sha384 as Zl, preloadInlineWasm as Zn, ParsedXmpMetadata as Zo, applyOverflow as Zr, ModificationViolation as Zs, reconstructParagraphs as Zt, showTextNextLine as Zu, parseTileInfo as _, decodeTiffAll as _a, verifySignatureDetailed as _c, lineTo as _d, readEan8 as _i, PdfRedactAnnotation as _l, toSarif as _n, estimateJpegQuality as _o, FlattenFormResult as _r, detectTransparency as _s, InvoiceParty as _t, buildXmpMetadata as _u, layoutColumns as a, detectRuntime as aa, SignatureChainResult as ac, closeFillAndStroke as ad, TablePreset as ai, generateHighlightAppearance as al, buildCalRGB as an, deduplicateImages as ao, PageLabelRange as ar, getSupportedLevels as as, buildPdfA4Xmp as at, verifyOwnerPassword as au, isWoff as b, isTiff as ba, validateExtendedKeyUsage as bc, setDashPattern as bd, renderStyledBarcode as bi, StandardStampName as bl, PDF2_NAMESPACE as bn, ChromaSubsampling as bo, flattenFields as br, PdfALevel as bs, PdfRect as bt, PdfStreamWriter as bu, downscale16To8 as c, isWasmModuleCached as ca, IncrementalObject as cc, curveTo as cd, borderedPreset as ci, generateSquareAppearance as cl, DEFAULT_SARIF_TOOL_NAME as cn, OptimizationReport as co, removePageLabels as cr, generateWinAnsiToUnicodeCmap as cs, buildFunctionShading as ct, PdfUaError as cu, offsetSignedToUnsigned as d, provideWasmBytes as da, TrailerInfo as dc, ellipsePath as dd, stripedPreset as di, generateUnderlineAppearance as dl, SarifLog as dn, DownscaleOptions as do, BookmarkNode as dr, OutputIntentOptions as ds, didYouMean as dt, PdfUaWarning as du, PdfWorkerOptions as ea, MdpPermission as ec, buildSeparationColorSpace as ed, shrinkFontSize as ei, prepareForSigning as el, buildDocTimeStampDict as en, parseIccColorSpace as eo, BatchProgressCallback as er, extractXmpMetadata as es, generateXRechnungCii as et, aesEncryptCBC as eu, summarizeBitDepth as f, resetWasmLoader as fa, appendIncrementalUpdate as fc, endPath as fd, BarcodeReadResult as fi, FileAttachmentIcon as fl, SarifResult as fn, ImageOptimizeOptions as fo, BookmarkRef as fr, buildOutputIntent as fs, levenshtein as ft, enforcePdfUa as fu, decodeTileRegion as g, decodeTiff as ga, validateByteRangeIntegrity as gc, fillEvenOddAndStroke as gd, readEan13 as gi, PdfPopupAnnotation as gl, toJsonReport as gn, downscaleImage as go, removeBookmark as gr, TransparencyInfo as gs, InvoiceLine as gt, summarizeIssues as gu, decodeTile as h, TiffImage as ha, saveIncrementalWithSignaturePreservation as hc, fillEvenOdd as hd, readCode39 as hi, PdfCaretAnnotation as hl, ValidationLevel as hn, RecompressOptions as ho, removeAllBookmarks as hr, TransparencyFinding as hs, Invoice as ht, isAccessible as hu, findHyphenationPoints as i, configureWasmLoader as ia, SignatureChainEntry as ic, closeAndStroke as id, PresetOptions as ii, generateFreeTextAppearance as il, buildCalGray as in, DeduplicationReport as io, processBatch as ir, getProfile as is, PdfA4Options as it, computeFileEncryptionKey as iu, createWorkerPool as j, recompressWebP as ja, extractOcspUrl as jc, saveDocumentIncremental as jd, upcAToOperators as ji, FreeTextAlignment as jl, extractTables as jn, buildPdfXOutputIntent as jo, InvalidFieldNamePartError as jr, computeObjectHash as js, buildType1Halftone as jt, wrapInMarkedContent as ju, WorkerPool as k, embedTiffDirect as ka, isCertificateRevoked as kc, ChangeTracker as kd, calculateUpcCheckDigit as ki, PdfStrikeOutAnnotation as kl, ExtractedTable as kn, RedactionResult as ko, ForeignPageError as kr, linearizePdf as ks, buildSampledTransferFunction as kt, endArtifact as ku, getComponentDepths as l, loadWasmModule as la, IncrementalSaveOptions as lc, curveToFinal as ld, minimalPreset as li, generateSquigglyAppearance as ll, JsonReport as ln, ProgressInfo as lo, setPageLabels as lr, generateZapfDingbatsToUnicodeCmap as ls, sampleShadingColor as lt, PdfUaLevel as lu, assembleTiles as m, TiffDecodeOptions as ma, parseExistingTrailer as mc, fillAndStroke as md, readCode128 as mi, CaretSymbol as ml, ValidationFinding as mn, RawImageData as mo, getBookmarks as mr, generateSrgbIccProfile as ms, FacturXProfile as mt, checkAccessibility as mu, index_d_exports as n, WasmLoaderConfig as na, getCertificationLevel as nc, clip as nd, wrapText as ni, searchTextItems as nl, CalRGBParams as nn, convertToGrayscale as no, batchFlatten as nr, validateXmpMetadata as ns, PdfA4ExtensionSchema as nt, md5 as nu, layoutParagraph as o, instantiateWasmModuleStreaming as oa, validateSignatureChain as oc, closeFillEvenOddAndStroke as od, applyPreset as oi, generateInkAppearance as ol, buildLab as on, BatchOptimizeOptions as oo, PageLabelStyle as or, isValidLevel as os, pdfA4Rules as ot, verifyUserPassword as ou, upscale8To16 as p, IfdEntry as pa, findExistingSignatures as pc, fill as pd, readBarcode as pi, PdfFileAttachmentAnnotation as pl, SarifRun as pn, OptimizeResult as po, addBookmark as pr, SRGB_ICC_PROFILE as ps, renderCodeFrame as pt, validatePdfUa as pu, FallbackRun as q, analyzeJpegMarkers as qa, encodeUTCTime as qc, encodeCode128Values as qi, setFieldVisibility as ql, getInlineWasmBytes as qn, AssociatedFileOptions as qo, toAlpha as qr, addFieldLock as qs, Line as qt, setWordSpacing as qu, initWasm as r, clearWasmCache as ra, setCertificationLevel as rc, clipEvenOdd as rd, PresetName as ri, generateCircleAppearance as rl, LabParams as rn, isGrayscaleImage as ro, batchMerge as rr, PdfAProfile as rs, PdfA4Level as rt, EncryptDictValues as ru, layoutTextFlow as s, isWasmDisabled as sa, AppendOptions as sc, closePath as sd, applyTablePreset as si, generateLineAppearance as sl, labToRgb as sn, ImageOptimizeEntry as so, getPageLabels as sr, generateSymbolToUnicodeCmap as ss, FunctionShadingOptions as st, PdfUaEnforcementResult as su, InitWasmOptions as t, RuntimeKind as ta, buildDocMdpReference as tc, circlePath as td, truncateText as ti, decodeJpeg2000 as tl, CalGrayParams as tn, parseIccDescription as to, BatchResult as tr, parseXmpMetadata as ts, PdfA4ExtensionProperty as tt, rc4 as tu, normalizeComponentDepth as u, loadWasmModuleStreaming as ua, SignatureByteRange as uc, curveToInitial as ud, professionalPreset as ui, generateStrikeOutAppearance as ul, SARIF_SCHEMA_URI as un, optimizeAllImages as uo, AddBookmarkOptions as ur, getToUnicodeCmap as us, CodeFrameOptions as ut, PdfUaValidationResult as uu, WoffInfo as v, decodeTiffPage as va, EKU_OIDS as vc, moveTo as vd, StyledBarcodeOptions as vi, PdfInkAnnotation as vl, MATHML_NAMESPACE as vn, optimizeImage as vo, FlattenOptions as vr, flattenTransparency as vs, generateCiiXml as vt, createXmpStream as vu, DeferredSignResult as w, isWebP as wa, verifyOfflineRevocation as wc, setLineWidth as wd, pdf417ToOperators as wi, PdfPolyLineAnnotation as wl, RequirementType as wn, encodeJpegWasm as wo, EncryptedPdfError as wr, LinearizationInfo as ws, buildGtsPdfxVersion as wt, beginArtifactWithType as wu, isWoff2 as x, parseTiffIfd as xa, validateKeyUsage as xc, setFlatness as xd, Pdf417Matrix as xi, LineEndingStyle as xl, buildNamespace as xn, JpegDecodeResult as xo, flattenForm as xr, PdfAValidationResult as xs, PdfX6Options as xt, PDFOperator as xu, decodeWoff as y, getTiffPageCount as ya, validateCertificatePolicy as yc, rectangle as yd, calculateBarcodeDimensions as yi, PdfStampAnnotation as yl, NamespaceDef as yn, recompressImage as yo, flattenField as yr, PdfAIssue as ys, BoxGeometry as yt, parseXmpMetadata$1 as yu, h as z, TiffIfdEntry as za, encodeContextTag as zc, itfToOperators as zi, parseAcrobatDate as zl, timestampPlugin as zn, generatePdfAXmp as zo, UnexpectedFieldTypeError as zr, CounterSignatureInfo as zs, StitchingFunction as zt, nextLine as zu };
|
|
10238
|
+
//# sourceMappingURL=index-_Onej9Wy.d.cts.map
|