modern-pdf-lib 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +1 -1
  2. package/dist/{batchOptimize-DtRwBOqR.mjs → batchOptimize-BCJEEN8J.mjs} +4 -4
  3. package/dist/{batchOptimize-Ba_pWw71.cjs → batchOptimize-C1W3O68Q.cjs} +3 -3
  4. package/dist/{bridge-DYCQzxF7.cjs → bridge-DMEuGtfn.cjs} +2 -2
  5. package/dist/{bridge-CcivG_Sm.mjs → bridge-DaS-gzEd.mjs} +3 -3
  6. package/dist/browser.cjs +31 -10
  7. package/dist/browser.d.cts +5 -5
  8. package/dist/browser.d.mts +5 -5
  9. package/dist/browser.mjs +12 -12
  10. package/dist/cli/index.cjs +2 -2
  11. package/dist/cli/index.mjs +3 -3
  12. package/dist/{compressionAnalysis-B84FPXaQ.cjs → compressionAnalysis-B-FPzgzw.cjs} +7 -7
  13. package/dist/{compressionAnalysis-DGs-MqTe.d.mts → compressionAnalysis-Ch7t-HXn.d.mts} +2 -2
  14. package/dist/{compressionAnalysis-DGs-MqTe.d.mts.map → compressionAnalysis-Ch7t-HXn.d.mts.map} +1 -1
  15. package/dist/{compressionAnalysis-odbHC7Uk.mjs → compressionAnalysis-CwknBtqx.mjs} +7 -7
  16. package/dist/{compressionAnalysis-VtYV9Zmq.d.cts → compressionAnalysis-Dgv1TtHJ.d.cts} +2 -2
  17. package/dist/{compressionAnalysis-VtYV9Zmq.d.cts.map → compressionAnalysis-Dgv1TtHJ.d.cts.map} +1 -1
  18. package/dist/create.cjs +3 -3
  19. package/dist/create.d.cts +2 -2
  20. package/dist/create.d.mts +2 -2
  21. package/dist/create.mjs +3 -3
  22. package/dist/{deduplicateImages-MfUDPxQz.mjs → deduplicateImages-DIon68zB.mjs} +2 -2
  23. package/dist/{fflateAdapter-PSiW_ML7.mjs → fflateAdapter-DuNiByKx.mjs} +2 -2
  24. package/dist/{fontEmbed-BN842wlb.d.cts → fontEmbed-3YhUPLFj.d.cts} +2 -2
  25. package/dist/{fontEmbed-BN842wlb.d.cts.map → fontEmbed-3YhUPLFj.d.cts.map} +1 -1
  26. package/dist/{fontEmbed-Dgq5K89o.d.mts → fontEmbed-DlVnVCZU.d.mts} +2 -2
  27. package/dist/{fontEmbed-Dgq5K89o.d.mts.map → fontEmbed-DlVnVCZU.d.mts.map} +1 -1
  28. package/dist/{fontSubset-D-vQQems.mjs → fontSubset-BGFDIMmT.mjs} +2 -2
  29. package/dist/forms.cjs +1 -1
  30. package/dist/forms.mjs +1 -1
  31. package/dist/{index-DCSbmXWh.d.mts → index-B4S61WjK.d.mts} +589 -21
  32. package/dist/index-B4S61WjK.d.mts.map +1 -0
  33. package/dist/{index-J1W3FdL8.d.cts → index-xfJP6Ycm.d.cts} +589 -21
  34. package/dist/index-xfJP6Ycm.d.cts.map +1 -0
  35. package/dist/index.cjs +31 -10
  36. package/dist/index.d.cts +5 -5
  37. package/dist/index.d.mts +5 -5
  38. package/dist/index.mjs +12 -12
  39. package/dist/{layout-D6EUKSP8.mjs → layout-CrqeJBMI.mjs} +3 -3
  40. package/dist/{layout-DH61a1iR.cjs → layout-DQh05VP-.cjs} +3 -3
  41. package/dist/{libdeflateWasm-8b91Vmia.mjs → libdeflateWasm-CcA1W04G.mjs} +3 -3
  42. package/dist/{libdeflateWasm-BdiDEJOj.cjs → libdeflateWasm-DLw-I1CY.cjs} +2 -2
  43. package/dist/{loader-C7B5dVCI.mjs → loader-CVB-c_3Z.mjs} +16 -6
  44. package/dist/{loader-I4zdkoWc.cjs → loader-DYCH3n7d.cjs} +15 -5
  45. package/dist/parse.cjs +2 -2
  46. package/dist/parse.d.cts +2 -2
  47. package/dist/parse.d.mts +2 -2
  48. package/dist/parse.mjs +2 -2
  49. package/dist/{pdfCatalog-CYy4NXEY.cjs → pdfCatalog-Bqq4FiLn.cjs} +2 -1
  50. package/dist/{pdfCatalog-3yMIhJtt.mjs → pdfCatalog-CnKMAtIo.mjs} +3 -2
  51. package/dist/{pdfDocument-CbU-2TjT.d.cts → pdfDocument-Bc_vAO74.d.cts} +257 -172
  52. package/dist/pdfDocument-Bc_vAO74.d.cts.map +1 -0
  53. package/dist/{pdfDocument-BgvEP5Po.d.mts → pdfDocument-Bi-NoyXv.d.mts} +257 -172
  54. package/dist/pdfDocument-Bi-NoyXv.d.mts.map +1 -0
  55. package/dist/{pdfDocument-B0_XwS4X.mjs → pdfDocument-D7aFSQEY.mjs} +219 -40
  56. package/dist/{pdfDocument-CEbbUP9i.cjs → pdfDocument-D9uYNSb-.cjs} +233 -36
  57. package/dist/{pdfForm-9gd40uz9.cjs → pdfForm-BpqDGp29.cjs} +7 -1
  58. package/dist/{pdfForm-Cn-cVicP.mjs → pdfForm-C3mC9FoQ.mjs} +2 -2
  59. package/dist/{pdfPage-B_d9HmkG.mjs → pdfPage-BJIE5hc6.mjs} +189 -24
  60. package/dist/{pdfPage-Cd8jOJp6.cjs → pdfPage-C_tjEjj1.cjs} +188 -23
  61. package/dist/{pngEmbed-BWAbEUKF.mjs → pngEmbed-CGi7cym7.mjs} +3 -3
  62. package/dist/{pngEmbed-D4X4ZN-3.cjs → pngEmbed-CTn9IeNB.cjs} +2 -2
  63. package/dist/{src-Db6Qknoz.mjs → src-QZWP21qF.mjs} +1738 -157
  64. package/dist/{src-B1iDGLCL.cjs → src-lFqJHb1C.cjs} +1874 -185
  65. package/package.json +2 -1
  66. package/dist/index-DCSbmXWh.d.mts.map +0 -1
  67. package/dist/index-J1W3FdL8.d.cts.map +0 -1
  68. package/dist/pdfDocument-BgvEP5Po.d.mts.map +0 -1
  69. package/dist/pdfDocument-CbU-2TjT.d.cts.map +0 -1
@@ -1,8 +1,8 @@
1
- import { $ as DrawLineOptions, $n as colorToComponents, $t as PdfLayerManager, A as EncryptAlgorithm, An as Angle, At as ColorStop, B as serializePdf, Bn as rotationMatrix, Bt as linearGradient, C as ViewerPreferences, Cn as BlendMode, Ct as renderMultiPageTable, D as OutlineItemOptions, Dn as ParseSpeeds, Dt as QrCodeOptions, E as OutlineDestination, En as LineJoinStyle, Et as QrCodeMatrix, F as encodePermissions, Fn as degreesToRadians, Ft as RadialGradientFill, G as buildCatalog, Gn as translate, Gt as EmbeddedPdfPage, H as DocumentMetadata, Hn as scale, Ht as tilingPattern, I as LoadPdfOptions, In as radians, It as RadialGradientOptions, J as buildPageTree, Jn as GrayscaleColor, Jt as RedactionOptions, K as buildDocumentStructure, Kn as CmykColor, Kt as embedPageAsFormXObject, L as loadPdf, Ln as radiansToDegrees, Lt as TilingPatternOptions, M as PdfEncryptionHandler, Mn as Radians, Mt as LinearGradientOptions, N as PdfPermissionFlags, Nn as concatMatrix, Nt as NormalizedStop, O as PdfOutlineItem, On as TextAlignment, Ot as encodeQrCode, P as decodePermissions, Pn as degrees, Pt as PatternFill, Q as DrawImageOptions, Qn as cmyk, Qt as PdfLayer, R as PdfSaveOptions, Rn as restoreState, Rt as buildGradientObjects, S as PdfViewerPreferences, Sn as StructureType, St as TextRun, T as parseViewerPreferences, Tn as LineCapStyle, Tt as ErrorCorrectionLevel, U as DocumentStructure, Un as setGraphicsState, Ut as DrawPageOptions, V as CatalogOptions, Vn as saveState, Vt as radialGradient, W as PageEntry, Wn as skew, Wt as EmbedPageOptions, X as DrawCircleOptions, Xn as applyFillColor, Xt as getRedactionMarks, Y as formatPdfDate, Yn as RgbColor, Yt as applyRedactions, Z as DrawEllipseOptions, Zn as applyStrokeColor, Zt as markForRedaction, _ as PdfSignatureInfo, _n as createAnnotation, _t as PageContent, a as StandardFonts, an as SvgDrawCommand, ar as setFillColorCmyk, at as FontRef, b as getSignatures, bn as PdfStructureTree, bt as TableRenderResult, c as verifySignature, cn as parseSvgColor, cr as setFillingColor, ct as PageSizes, d as addWatermark, dn as AnnotationFlags, dr as setStrokeColorGray, dt as SoftMaskRef, en as beginLayerContent, er as componentsToColor, et as DrawQrCodeOptions, f as addWatermarkToPage, fn as AnnotationOptions, fr as setStrokeColorRgb, ft as TransparencyGroupOptions, g as getAttachments, gn as buildAnnotationDict, gt as NestedTableContent, h as buildEmbeddedFilesNameTree, hn as annotationFromDict, ht as MultiPageTableResult, i as StandardFontName, in as svgToPdfOperators, ir as setFillColor, it as DrawTextOptions, j as EncryptOptions, jn as Degrees, jt as GradientFill, k as PdfOutlineTree, kn as TextRenderingMode, kt as qrCodeToOperators, l as verifySignatures, ln as parseSvgPath, lr as setStrokeColor, lt as PdfPage, m as attachFile, mn as PdfAnnotation, mr as setStrokingColor, mt as DrawTableOptions, n as PdfDocument, nn as SvgRenderOptions, nr as rgb, nt as DrawSquareOptions, o as createPdf, on as SvgElement, or as setFillColorGray, ot as ImageRef, p as EmbeddedFile, pn as AnnotationType, pr as setStrokeColorSpace, pt as CellContent, q as buildInfoDict, qn as Color, qt as RedactionMark, r as SetTitleOptions, rn as drawSvgOnPage, rr as setColorSpace, rt as DrawSvgPathOptions, s as SignatureVerificationResult, sn as parseSvg, sr as setFillColorRgb, st as PageSize, t as EmbedFontOptions, tn as endLayerContent, tr as grayscale, tt as DrawRectangleOptions, u as WatermarkOptions, un as parseSvgTransform, ur as setStrokeColorCmyk, ut as SoftMaskBuilder, v as SignOptions, vn as AccessibilityIssue, vt as TableCell, w as buildViewerPreferencesDict, wn as ImageAlignment, wt as renderTable, x as signPdf, xn as StructureElementOptions, xt as TableRow, y as VisibleSignatureOptions, yn as PdfStructureElement, yt as TableColumn, z as PdfWriter, zn as rotate, zt as buildPatternObjects } from "./pdfDocument-CbU-2TjT.cjs";
1
+ import { $ as DrawLineOptions, $n as colorToComponents, $t as PdfLayerManager, A as LoadPdfOptions, An as Angle, At as ColorStop, B as encodePermissions, Bn as rotationMatrix, Bt as linearGradient, C as ViewerPreferences, Cn as BlendMode, Ct as renderMultiPageTable, D as OutlineItemOptions, Dn as ParseSpeeds, Dt as QrCodeOptions, E as OutlineDestination, En as LineJoinStyle, Et as QrCodeMatrix, F as EncryptAlgorithm, Fn as degreesToRadians, Ft as RadialGradientFill, G as buildCatalog, Gn as translate, Gt as EmbeddedPdfPage, H as DocumentMetadata, Hn as scale, Ht as tilingPattern, I as EncryptOptions, In as radians, It as RadialGradientOptions, J as buildPageTree, Jn as GrayscaleColor, Jt as RedactionOptions, K as buildDocumentStructure, Kn as CmykColor, Kt as embedPageAsFormXObject, L as PdfEncryptionHandler, Ln as radiansToDegrees, Lt as TilingPatternOptions, M as PdfSaveOptions, Mn as Radians, Mt as LinearGradientOptions, N as PdfWriter, Nn as concatMatrix, Nt as NormalizedStop, O as PdfOutlineItem, On as TextAlignment, Ot as encodeQrCode, P as serializePdf, Pn as degrees, Pt as PatternFill, Q as DrawImageOptions, Qn as cmyk, Qt as PdfLayer, R as PdfPermissionFlags, Rn as restoreState, Rt as buildGradientObjects, S as PdfViewerPreferences, Sn as StructureType, St as TextRun, T as parseViewerPreferences, Tn as LineCapStyle, Tt as ErrorCorrectionLevel, U as DocumentStructure, Un as setGraphicsState, Ut as DrawPageOptions, V as CatalogOptions, Vn as saveState, Vt as radialGradient, W as PageEntry, Wn as skew, Wt as EmbedPageOptions, X as DrawCircleOptions, Xn as applyFillColor, Xt as getRedactionMarks, Y as formatPdfDate, Yn as RgbColor, Yt as applyRedactions, Z as DrawEllipseOptions, Zn as applyStrokeColor, Zt as markForRedaction, _ as PdfSignatureInfo, _n as createAnnotation, _t as PageContent, a as StandardFonts, an as SvgDrawCommand, ar as setFillColorCmyk, at as FontRef, b as getSignatures, bn as PdfStructureTree, bt as TableRenderResult, c as verifySignature, cn as parseSvgColor, cr as setFillingColor, ct as PageSizes, d as addWatermark, dn as AnnotationFlags, dr as setStrokeColorGray, dt as SoftMaskRef, en as beginLayerContent, er as componentsToColor, et as DrawQrCodeOptions, f as addWatermarkToPage, fn as AnnotationOptions, fr as setStrokeColorRgb, ft as TransparencyGroupOptions, g as getAttachments, gn as buildAnnotationDict, gt as NestedTableContent, h as buildEmbeddedFilesNameTree, hn as annotationFromDict, ht as MultiPageTableResult, i as StandardFontName, in as svgToPdfOperators, ir as setFillColor, it as DrawTextOptions, j as loadPdf, jn as Degrees, jt as GradientFill, k as PdfOutlineTree, kn as TextRenderingMode, kt as qrCodeToOperators, l as verifySignatures, ln as parseSvgPath, lr as setStrokeColor, lt as PdfPage, m as attachFile, mn as PdfAnnotation, mr as setStrokingColor, mt as DrawTableOptions, n as PdfDocument, nn as SvgRenderOptions, nr as rgb, nt as DrawSquareOptions, o as createPdf, on as SvgElement, or as setFillColorGray, ot as ImageRef, p as EmbeddedFile, pn as AnnotationType, pr as setStrokeColorSpace, pt as CellContent, q as buildInfoDict, qn as Color, qt as RedactionMark, r as SetTitleOptions, rn as drawSvgOnPage, rr as setColorSpace, rt as DrawSvgPathOptions, s as SignatureVerificationResult, sn as parseSvg, sr as setFillColorRgb, st as PageSize, t as EmbedFontOptions, tn as endLayerContent, tr as grayscale, tt as DrawRectangleOptions, u as WatermarkOptions, un as parseSvgTransform, ur as setStrokeColorCmyk, ut as SoftMaskBuilder, v as SignOptions, vn as AccessibilityIssue, vt as TableCell, w as buildViewerPreferencesDict, wn as ImageAlignment, wt as renderTable, x as signPdf, xn as StructureElementOptions, xt as TableRow, y as VisibleSignatureOptions, yn as PdfStructureElement, yt as TableColumn, z as decodePermissions, zn as rotate, zt as buildPatternObjects } from "./pdfDocument-Bc_vAO74.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-SOXJ72LW.cjs";
3
- import { A as movePage, 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, _ 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-BN842wlb.cjs";
3
+ import { A as movePage, 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, _ 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-3YhUPLFj.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-CdiGFG5e.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-VtYV9Zmq.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-Dgv1TtHJ.cjs";
6
6
 
7
7
  //#region \0rolldown/runtime.js
8
8
  //#endregion
@@ -783,6 +783,132 @@ declare function summarizeIssues(issues: readonly AccessibilityIssue[]): {
783
783
  */
784
784
  declare function isAccessible(issues: readonly AccessibilityIssue[]): boolean;
785
785
  //#endregion
786
+ //#region src/accessibility/pdfUaValidator.d.ts
787
+ /**
788
+ * PDF/UA conformance level.
789
+ *
790
+ * Currently only PDF/UA-1 is supported. PDF/UA-2 (ISO 14289-2)
791
+ * may be added in a future release.
792
+ */
793
+ type PdfUaLevel = 'UA1';
794
+ /**
795
+ * A single PDF/UA validation error — a must-fix violation.
796
+ */
797
+ interface PdfUaError {
798
+ /** Machine-readable error code (e.g. `"UA-STRUCT-001"`). */
799
+ readonly code: string;
800
+ /** Human-readable description of the violation. */
801
+ readonly message: string;
802
+ /** The ISO 14289-1 clause reference, if applicable. */
803
+ readonly clause?: string | undefined;
804
+ /** The structure element related to the error, if any. */
805
+ readonly element?: PdfStructureElement | undefined;
806
+ /** Zero-based page index, if the issue is page-specific. */
807
+ readonly pageIndex?: number | undefined;
808
+ }
809
+ /**
810
+ * A single PDF/UA validation warning — a best-practice recommendation.
811
+ */
812
+ interface PdfUaWarning {
813
+ /** Machine-readable warning code (e.g. `"UA-WARN-001"`). */
814
+ readonly code: string;
815
+ /** Human-readable recommendation. */
816
+ readonly message: string;
817
+ /** The structure element related to the warning, if any. */
818
+ readonly element?: PdfStructureElement | undefined;
819
+ /** Zero-based page index, if the warning is page-specific. */
820
+ readonly pageIndex?: number | undefined;
821
+ }
822
+ /**
823
+ * Result of a PDF/UA validation check.
824
+ */
825
+ interface PdfUaValidationResult {
826
+ /** Whether the document passes all PDF/UA requirements (no errors). */
827
+ readonly valid: boolean;
828
+ /** The PDF/UA conformance level checked against. */
829
+ readonly level: PdfUaLevel;
830
+ /** Must-fix violations that prevent compliance. */
831
+ readonly errors: PdfUaError[];
832
+ /** Best-practice recommendations. */
833
+ readonly warnings: PdfUaWarning[];
834
+ }
835
+ /**
836
+ * Result of the {@link enforcePdfUa} auto-fix pass.
837
+ */
838
+ interface PdfUaEnforcementResult {
839
+ /** Actions that were successfully applied. */
840
+ readonly fixed: string[];
841
+ /** Issues that could not be auto-fixed and require manual attention. */
842
+ readonly unfixable: PdfUaError[];
843
+ }
844
+ /**
845
+ * Validate a PDF document against PDF/UA-1 (ISO 14289-1) requirements.
846
+ *
847
+ * Performs the following checks:
848
+ * 1. Structure tree presence (/StructTreeRoot, /MarkInfo)
849
+ * 2. Document language (/Lang)
850
+ * 3. Document title and /DisplayDocTitle
851
+ * 4. Heading hierarchy (sequential, no skips)
852
+ * 5. Alt text on all illustration elements (Figure, Formula, Form)
853
+ * 6. Table header cells (TH) with scope
854
+ * 7. List structure (L/LI/Lbl/LBody)
855
+ * 8. Reading order via structure tree
856
+ * 9. Font embedding (no unembedded standard 14 fonts)
857
+ * 10. Color contrast (AA: 4.5:1, AAA: 7:1)
858
+ * 11. Bookmarks for navigation
859
+ * 12. Tab order (/Tabs /S) on pages
860
+ *
861
+ * @param doc The PDF document to validate.
862
+ * @param level The PDF/UA conformance level (default: `'UA1'`).
863
+ * @returns A {@link PdfUaValidationResult} with errors and warnings.
864
+ *
865
+ * @example
866
+ * ```ts
867
+ * import { createPdf } from 'modern-pdf-lib';
868
+ * import { validatePdfUa } from 'modern-pdf-lib/accessibility';
869
+ *
870
+ * const doc = createPdf();
871
+ * const result = validatePdfUa(doc);
872
+ * if (!result.valid) {
873
+ * for (const err of result.errors) {
874
+ * console.error(`[${err.code}] ${err.message}`);
875
+ * }
876
+ * }
877
+ * ```
878
+ */
879
+ declare function validatePdfUa(doc: PdfDocument, level?: PdfUaLevel): PdfUaValidationResult;
880
+ /**
881
+ * Auto-fix PDF/UA issues that can be corrected programmatically.
882
+ *
883
+ * Applies the following corrections when the relevant requirement is
884
+ * not already satisfied:
885
+ * - Sets `/Lang` to `'en'` if the document has no language.
886
+ * - Sets the document title to `'Untitled'` if missing, and enables
887
+ * `/DisplayDocTitle` in viewer preferences.
888
+ * - Adds `/MarkInfo` by creating a structure tree if none exists.
889
+ * - Sets `/Tabs /S` (structure order) on every page.
890
+ *
891
+ * Returns a result listing what was fixed and what remains unfixable
892
+ * (e.g. missing alt text, heading skips — those require manual
893
+ * content changes).
894
+ *
895
+ * @param doc The PDF document to fix in-place.
896
+ * @returns A {@link PdfUaEnforcementResult} describing what was done.
897
+ *
898
+ * @example
899
+ * ```ts
900
+ * import { createPdf } from 'modern-pdf-lib';
901
+ * import { enforcePdfUa, validatePdfUa } from 'modern-pdf-lib/accessibility';
902
+ *
903
+ * const doc = createPdf();
904
+ * doc.addPage();
905
+ * const result = enforcePdfUa(doc);
906
+ * console.log('Fixed:', result.fixed);
907
+ * console.log('Unfixable:', result.unfixable.length);
908
+ * ```
909
+ */
910
+ declare function enforcePdfUa(doc: PdfDocument): PdfUaEnforcementResult;
911
+ //#endregion
786
912
  //#region src/crypto/keyDerivation.d.ts
787
913
  /**
788
914
  * The subset of encryption dictionary values needed by key derivation.
@@ -2641,29 +2767,32 @@ declare function optimizeIncrementalSave(originalPdf: Uint8Array, changes: Incre
2641
2767
  /**
2642
2768
  * @module core/linearization
2643
2769
  *
2644
- * Linearization support for PDF documents.
2770
+ * Linearization support for PDF documents (PDF spec Appendix F).
2645
2771
  *
2646
2772
  * A linearized PDF is organized so that the first page can be displayed
2647
2773
  * before the entire file is downloaded. This is sometimes called
2648
2774
  * "fast web view" or "optimized for the web".
2649
2775
  *
2650
- * **Structure of a linearized PDF:**
2776
+ * **Structure of a linearized PDF (per §F.2):**
2651
2777
  *
2652
- * 1. Header (%PDF-1.x)
2778
+ * 1. Header (%PDF-1.x + binary comment)
2653
2779
  * 2. Linearization parameter dictionary (first indirect object)
2654
2780
  * 3. First-page cross-reference table and trailer
2655
2781
  * 4. Document catalog, first-page objects
2656
- * 5. Remaining pages' objects
2657
- * 6. Hint stream(s)
2782
+ * 5. Primary hint stream
2783
+ * 6. Remaining pages' objects (part 6..11 per spec)
2658
2784
  * 7. Main (overflow) cross-reference table and trailer
2659
2785
  * 8. %%EOF
2660
2786
  *
2661
- * Full linearization is extremely complex (hundreds of pages in the
2662
- * spec). This implementation provides:
2787
+ * This implementation provides:
2663
2788
  * - Detection of linearized PDFs (`isLinearized`)
2664
- * - A basic linearization pass (`linearizePdf`) that reorganizes objects
2789
+ * - Extraction of linearization info (`getLinearizationInfo`)
2790
+ * - Full linearization pass (`linearizePdf`) that reorganizes objects
2665
2791
  * so the first page's objects come first, with a linearization
2666
- * parameter dict and page-offset hint table.
2792
+ * parameter dict, page-offset hint table, shared object hint table,
2793
+ * and cross-reference streams.
2794
+ * - Delinearization (`delinearizePdf`) that strips linearization
2795
+ * artifacts and produces a normal (non-linearized) PDF.
2667
2796
  *
2668
2797
  * Reference: PDF 1.7 spec, Appendix F (Linearized PDF).
2669
2798
  */
@@ -2672,6 +2801,22 @@ interface LinearizationOptions {
2672
2801
  /** First page to optimize for (default: 0). */
2673
2802
  firstPage?: number | undefined;
2674
2803
  }
2804
+ /**
2805
+ * Information extracted from a linearization parameter dictionary.
2806
+ * Maps to the entries defined in PDF spec §F.2.
2807
+ */
2808
+ interface LinearizationInfo {
2809
+ /** Linearization version (e.g. 1.0). */
2810
+ version: number;
2811
+ /** File length (/L). */
2812
+ length: number;
2813
+ /** Object number of the first page's page object (/O). */
2814
+ primaryPage: number;
2815
+ /** Total page count (/N). */
2816
+ pageCount: number;
2817
+ /** Byte offset of the end of the first page section (/E). */
2818
+ firstPageOffset: number;
2819
+ }
2675
2820
  /**
2676
2821
  * Check if a PDF is linearized.
2677
2822
  *
@@ -2683,23 +2828,43 @@ interface LinearizationOptions {
2683
2828
  * @returns `true` if the PDF appears to be linearized.
2684
2829
  */
2685
2830
  declare function isLinearized(pdfBytes: Uint8Array): boolean;
2831
+ /**
2832
+ * Extract linearization information from a linearized PDF.
2833
+ *
2834
+ * @param pdfBytes The raw PDF bytes.
2835
+ * @returns The linearization info, or `null` if not linearized.
2836
+ */
2837
+ declare function getLinearizationInfo(pdfBytes: Uint8Array): LinearizationInfo | null;
2686
2838
  /**
2687
2839
  * Linearize a PDF document for fast web viewing.
2688
2840
  *
2689
2841
  * This reorganizes the PDF so that:
2690
- * 1. A linearization parameter dictionary appears first
2842
+ * 1. A linearization parameter dictionary appears first (§F.2)
2691
2843
  * 2. Objects needed for the first page appear early in the file
2692
- * 3. A hint table describes page offsets
2693
- *
2694
- * Note: This is a simplified linearization. For production use with
2695
- * very large documents, a full implementation following PDF spec
2696
- * Appendix F is recommended.
2844
+ * 3. A primary hint stream describes page offsets and shared objects (§F.4)
2845
+ * 4. Cross-reference streams are used for all xref data (§7.5.8)
2697
2846
  *
2698
2847
  * @param pdfBytes The raw PDF bytes.
2699
2848
  * @param options Linearization options.
2700
2849
  * @returns The linearized PDF bytes.
2701
2850
  */
2702
2851
  declare function linearizePdf(pdfBytes: Uint8Array, options?: LinearizationOptions): Promise<Uint8Array>;
2852
+ /**
2853
+ * Remove linearization artifacts from a PDF, producing a normal
2854
+ * (non-linearized) PDF.
2855
+ *
2856
+ * This:
2857
+ * 1. Strips the linearization parameter dictionary
2858
+ * 2. Removes hint streams
2859
+ * 3. Rebuilds the xref table without linearization ordering constraints
2860
+ * 4. Removes any /Linearized key from the output
2861
+ *
2862
+ * If the input PDF is not linearized, it is returned unchanged.
2863
+ *
2864
+ * @param pdfBytes The raw PDF bytes.
2865
+ * @returns A non-linearized PDF.
2866
+ */
2867
+ declare function delinearizePdf(pdfBytes: Uint8Array): Promise<Uint8Array>;
2703
2868
  //#endregion
2704
2869
  //#region src/compliance/pdfA.d.ts
2705
2870
  /**
@@ -3409,6 +3574,28 @@ interface EnforcementAction {
3409
3574
  */
3410
3575
  declare function enforcePdfAFull(pdfBytes: Uint8Array, level: PdfALevel, options?: EnforcePdfAOptions): Promise<EnforcePdfAResult>;
3411
3576
  //#endregion
3577
+ //#region src/annotation/applyRedactions.d.ts
3578
+ /** Result of applying redactions to a document. */
3579
+ interface RedactionResult {
3580
+ /** Total number of redaction annotations that were applied. */
3581
+ appliedCount: number;
3582
+ /** Zero-based indices of pages that had redactions applied. */
3583
+ pages: number[];
3584
+ }
3585
+ /**
3586
+ * Apply a single redaction annotation identified by page and annotation
3587
+ * index.
3588
+ *
3589
+ * @param doc The PDF document.
3590
+ * @param pageIndex Zero-based page index.
3591
+ * @param annotIndex Zero-based annotation index within the page.
3592
+ * @returns A {@link RedactionResult} (appliedCount 0 or 1).
3593
+ * @throws RangeError if pageIndex or annotIndex is out of bounds.
3594
+ * @throws TypeError if the annotation at annotIndex is not a
3595
+ * /Redact annotation.
3596
+ */
3597
+ declare function applyRedaction(doc: PdfDocument, pageIndex: number, annotIndex: number): RedactionResult;
3598
+ //#endregion
3412
3599
  //#region src/wasm/jpeg/bridge.d.ts
3413
3600
  /**
3414
3601
  * @module wasm/jpeg/bridge
@@ -5882,8 +6069,389 @@ declare class ExceededMaxLengthError extends Error {
5882
6069
  readonly name = "ExceededMaxLengthError";
5883
6070
  constructor(textLength: number, maxLength: number, fieldName: string, options?: ErrorOptions);
5884
6071
  }
6072
+ //#endregion
6073
+ //#region src/form/formFlatten.d.ts
6074
+ /**
6075
+ * Options for form flattening operations.
6076
+ */
6077
+ interface FlattenOptions {
6078
+ /**
6079
+ * If `true`, read-only fields are skipped and left interactive.
6080
+ * All other fields are flattened normally.
6081
+ *
6082
+ * Default: `false` (all fields are flattened, including read-only ones).
6083
+ */
6084
+ preserveReadOnly?: boolean | undefined;
6085
+ }
6086
+ /**
6087
+ * Flatten ALL form fields into static page content.
6088
+ *
6089
+ * For each field in the document's AcroForm:
6090
+ * 1. Generate / retrieve the field's appearance stream
6091
+ * 2. Embed the appearance as a Form XObject in the page's content stream
6092
+ * 3. Remove the widget annotation from the page
6093
+ * 4. Remove the field from the AcroForm
6094
+ *
6095
+ * After all fields are processed, the /AcroForm dictionary is cleared.
6096
+ *
6097
+ * @param form The document's PdfForm.
6098
+ * @param options Optional flatten options.
6099
+ * @returns An object describing the flatten operations performed, suitable
6100
+ * for the caller to apply to page content streams and resources.
6101
+ */
6102
+ declare function flattenForm(form: PdfForm, options?: FlattenOptions): FlattenFormResult;
6103
+ /**
6104
+ * Flatten a SINGLE field by name.
6105
+ *
6106
+ * Locates the field in the form, merges its appearance into the page
6107
+ * content, removes the widget annotation, and removes the field from
6108
+ * the AcroForm's /Fields array. Other fields remain interactive.
6109
+ *
6110
+ * @param form The document's PdfForm.
6111
+ * @param fieldName The name of the field to flatten (partial or fully-qualified).
6112
+ * @param options Optional flatten options.
6113
+ * @returns An object describing the flatten operations performed.
6114
+ * @throws If the field is not found.
6115
+ */
6116
+ declare function flattenField(form: PdfForm, fieldName: string, options?: FlattenOptions): FlattenFormResult;
6117
+ /**
6118
+ * Flatten specific fields by name.
6119
+ *
6120
+ * @param form The document's PdfForm.
6121
+ * @param fieldNames Array of field names to flatten.
6122
+ * @param options Optional flatten options.
6123
+ * @returns An object describing the flatten operations performed.
6124
+ * @throws If any field name is not found.
6125
+ */
6126
+ declare function flattenFields(form: PdfForm, fieldNames: string[], options?: FlattenOptions): FlattenFormResult;
6127
+ /**
6128
+ * Result of a form flatten operation.
6129
+ *
6130
+ * Contains the content stream operators and XObject resources that
6131
+ * must be applied to the page(s) to complete the flattening.
6132
+ */
6133
+ interface FlattenFormResult {
6134
+ /** Content stream operators to append to the page. */
6135
+ contentOps: string;
6136
+ /** XObject name-to-stream pairs to add to page resources. */
6137
+ xObjects: Array<{
6138
+ name: string;
6139
+ stream: PdfStream;
6140
+ }>;
6141
+ /** Names of fields that were flattened. */
6142
+ flattenedFields: string[];
6143
+ /** Names of fields that were skipped (e.g. read-only with preserveReadOnly). */
6144
+ skippedFields: string[];
6145
+ /** Whether the AcroForm was fully removed (all fields flattened). */
6146
+ acroFormRemoved: boolean;
6147
+ }
6148
+ //#endregion
6149
+ //#region src/core/outlines.d.ts
6150
+ /**
6151
+ * An opaque handle returned by {@link addBookmark} that identifies
6152
+ * a bookmark in the outline tree. Used as a `parent` to create
6153
+ * nested bookmarks, or passed to {@link removeBookmark} to delete
6154
+ * an entry.
6155
+ */
6156
+ interface BookmarkRef {
6157
+ /** @internal The underlying outline item. */
6158
+ readonly _item: PdfOutlineItem;
6159
+ }
6160
+ /**
6161
+ * Represents a single node in the bookmark tree, as returned by
6162
+ * {@link getBookmarks}.
6163
+ */
6164
+ interface BookmarkNode {
6165
+ /** The displayed bookmark title. */
6166
+ readonly title: string;
6167
+ /** Zero-based page index this bookmark points to. */
6168
+ readonly pageIndex: number;
6169
+ /** Vertical position on the target page (if set). */
6170
+ readonly y?: number | undefined;
6171
+ /** Whether the title is bold. */
6172
+ readonly bold?: boolean | undefined;
6173
+ /** Whether the title is italic. */
6174
+ readonly italic?: boolean | undefined;
6175
+ /** Colour of the bookmark title (RGB, 0-1 range). */
6176
+ readonly color?: {
6177
+ readonly r: number;
6178
+ readonly g: number;
6179
+ readonly b: number;
6180
+ } | undefined;
6181
+ /** Child bookmarks. */
6182
+ readonly children: readonly BookmarkNode[];
6183
+ /** The handle for this bookmark node. */
6184
+ readonly ref: BookmarkRef;
6185
+ }
6186
+ /**
6187
+ * Options for {@link addBookmark}.
6188
+ */
6189
+ interface AddBookmarkOptions {
6190
+ /** The display title for the bookmark. */
6191
+ title: string;
6192
+ /** Zero-based page index to navigate to. */
6193
+ pageIndex: number;
6194
+ /** Parent bookmark for nesting. Omit for a top-level bookmark. */
6195
+ parent?: BookmarkRef | undefined;
6196
+ /** Vertical position on the page (top coordinate for FitH). */
6197
+ y?: number | undefined;
6198
+ /** Whether the title text is bold. */
6199
+ bold?: boolean | undefined;
6200
+ /** Whether the title text is italic. */
6201
+ italic?: boolean | undefined;
6202
+ /** Colour of the bookmark title (RGB, 0-1 range). */
6203
+ color?: {
6204
+ r: number;
6205
+ g: number;
6206
+ b: number;
6207
+ } | undefined;
6208
+ /**
6209
+ * Whether the bookmark's children are initially expanded.
6210
+ * Default: `true`.
6211
+ */
6212
+ isOpen?: boolean | undefined;
6213
+ }
6214
+ /**
6215
+ * Add a bookmark entry to the document's outline tree.
6216
+ *
6217
+ * @param doc The document to add the bookmark to.
6218
+ * @param options Bookmark configuration (title, page, nesting, style).
6219
+ * @returns A {@link BookmarkRef} identifying the new bookmark.
6220
+ */
6221
+ declare function addBookmark(doc: PdfDocument, options: AddBookmarkOptions): BookmarkRef;
6222
+ /**
6223
+ * Return the bookmark tree for the document.
6224
+ *
6225
+ * Returns an array of top-level {@link BookmarkNode} objects, each
6226
+ * with a `children` array for nested bookmarks.
6227
+ *
6228
+ * @param doc The document to read bookmarks from.
6229
+ * @returns The bookmark tree.
6230
+ */
6231
+ declare function getBookmarks(doc: PdfDocument): readonly BookmarkNode[];
6232
+ /**
6233
+ * Remove a specific bookmark from the document.
6234
+ *
6235
+ * If the bookmark has children, they are also removed.
6236
+ *
6237
+ * @param doc The document to modify.
6238
+ * @param ref The handle of the bookmark to remove.
6239
+ * @throws If the bookmark is not found in the tree.
6240
+ */
6241
+ declare function removeBookmark(doc: PdfDocument, ref: BookmarkRef): void;
6242
+ /**
6243
+ * Remove all bookmarks from the document.
6244
+ *
6245
+ * @param doc The document to clear bookmarks from.
6246
+ */
6247
+ declare function removeAllBookmarks(doc: PdfDocument): void;
6248
+ //#endregion
6249
+ //#region src/core/pageLabels.d.ts
6250
+ /**
6251
+ * Numbering style for page labels.
6252
+ *
6253
+ * | Value | PDF /S | Description | Example |
6254
+ * |------------|--------|------------------------------|----------------|
6255
+ * | `decimal` | `/D` | Arabic numerals | 1, 2, 3, … |
6256
+ * | `roman` | `/r` | Lowercase Roman numerals | i, ii, iii, … |
6257
+ * | `Roman` | `/R` | Uppercase Roman numerals | I, II, III, … |
6258
+ * | `alpha` | `/a` | Lowercase alphabetic | a, b, c, … |
6259
+ * | `Alpha` | `/A` | Uppercase alphabetic | A, B, C, … |
6260
+ */
6261
+ type PageLabelStyle = 'decimal' | 'roman' | 'Roman' | 'alpha' | 'Alpha';
6262
+ /**
6263
+ * Defines a contiguous range of pages that share a labelling scheme.
6264
+ *
6265
+ * Each range starts at `startPage` (zero-based page index) and extends
6266
+ * to the next range's `startPage` (or the end of the document).
6267
+ */
6268
+ interface PageLabelRange {
6269
+ /**
6270
+ * Zero-based index of the first page this label range applies to.
6271
+ */
6272
+ startPage: number;
6273
+ /**
6274
+ * The numbering style for this range.
6275
+ */
6276
+ style: PageLabelStyle;
6277
+ /**
6278
+ * An optional prefix string prepended to each page label.
6279
+ * For example, `"A-"` produces labels like "A-1", "A-2", etc.
6280
+ */
6281
+ prefix?: string | undefined;
6282
+ /**
6283
+ * The numeric value of the first page label in this range.
6284
+ * Defaults to `1`.
6285
+ *
6286
+ * For example, `{ startPage: 4, style: 'decimal', start: 5 }` means
6287
+ * page index 4 is labelled "5", page index 5 is labelled "6", etc.
6288
+ */
6289
+ start?: number | undefined;
6290
+ }
6291
+ /**
6292
+ * Set the page label ranges for the document.
6293
+ *
6294
+ * Each entry in the `labels` array defines a contiguous range of pages
6295
+ * that share a numbering style. Ranges must be sorted by `startPage`
6296
+ * in ascending order.
6297
+ *
6298
+ * @param doc The document to set page labels on.
6299
+ * @param labels An array of label range definitions.
6300
+ * @throws If `labels` is empty or ranges are not sorted.
6301
+ */
6302
+ declare function setPageLabels(doc: PdfDocument, labels: readonly PageLabelRange[]): void;
6303
+ /**
6304
+ * Get the current page label ranges for the document.
6305
+ *
6306
+ * Returns `undefined` if no page labels have been set.
6307
+ *
6308
+ * @param doc The document to read page labels from.
6309
+ * @returns The page label ranges, or `undefined`.
6310
+ */
6311
+ declare function getPageLabels(doc: PdfDocument): readonly PageLabelRange[] | undefined;
6312
+ /**
6313
+ * Remove all page labels from the document.
6314
+ *
6315
+ * @param doc The document to clear page labels from.
6316
+ */
6317
+ declare function removePageLabels(doc: PdfDocument): void;
6318
+ //#endregion
6319
+ //#region src/batch/batchProcessor.d.ts
6320
+ /** Callback invoked as batch items complete. */
6321
+ type BatchProgressCallback = (done: number, total: number) => void;
6322
+ /** Options for batch processing. */
6323
+ interface BatchOptions {
6324
+ /**
6325
+ * Maximum number of PDFs processed concurrently.
6326
+ * Defaults to 4 in Node (worker threads), or `files.length` elsewhere.
6327
+ */
6328
+ concurrency?: number | undefined;
6329
+ /** Progress callback invoked after each file completes. */
6330
+ onProgress?: BatchProgressCallback | undefined;
6331
+ }
6332
+ /** Result of a batch operation. */
6333
+ interface BatchResult {
6334
+ /** Output PDF bytes for each input file (same order). */
6335
+ outputs: Uint8Array[];
6336
+ /** Number of files that were processed successfully. */
6337
+ successCount: number;
6338
+ /** Indices of files that failed, mapped to their error. */
6339
+ errors: Map<number, Error>;
6340
+ }
6341
+ /**
6342
+ * Process multiple PDFs in parallel (or with bounded concurrency).
6343
+ *
6344
+ * Each input `Uint8Array` is loaded as a {@link PdfDocument}, the
6345
+ * caller-supplied `operation` is applied, and the resulting bytes
6346
+ * are collected.
6347
+ *
6348
+ * In Node.js, true parallelism is available via `worker_threads`
6349
+ * (though this implementation uses async concurrency for simplicity
6350
+ * and to avoid serialization overhead). In all runtimes the
6351
+ * concurrency limiter ensures memory pressure stays manageable.
6352
+ *
6353
+ * @param files Array of raw PDF bytes.
6354
+ * @param operation An async function that receives a loaded
6355
+ * {@link PdfDocument} and returns the processed
6356
+ * PDF as `Uint8Array`.
6357
+ * @param options Concurrency and progress options.
6358
+ * @returns A {@link BatchResult} with outputs, success
6359
+ * count, and any per-file errors.
6360
+ */
6361
+ declare function processBatch(files: Uint8Array[], operation: (doc: PdfDocument) => Promise<Uint8Array>, options?: BatchOptions): Promise<BatchResult>;
6362
+ /**
6363
+ * Merge multiple PDFs in parallel chunks, then merge the chunks.
6364
+ *
6365
+ * For large collections this is significantly faster than sequential
6366
+ * merging because parsing and page-copying can overlap.
6367
+ *
6368
+ * @param files Array of raw PDF bytes to merge (in order).
6369
+ * @param options Concurrency and progress options.
6370
+ * @returns The merged PDF as `Uint8Array`.
6371
+ */
6372
+ declare function batchMerge(files: Uint8Array[], options?: BatchOptions): Promise<Uint8Array>;
6373
+ /**
6374
+ * Flatten interactive form fields across many PDFs.
6375
+ *
6376
+ * Each PDF is loaded, its form is flattened (field values are burned
6377
+ * into page content), and the result is saved.
6378
+ *
6379
+ * @param files Array of raw PDF bytes.
6380
+ * @param options Concurrency and progress options.
6381
+ * @returns A {@link BatchResult} with flattened PDF outputs.
6382
+ */
6383
+ declare function batchFlatten(files: Uint8Array[], options?: BatchOptions): Promise<BatchResult>;
6384
+ //#endregion
6385
+ //#region src/wasm/inlineWasm.d.ts
6386
+ /**
6387
+ * @module wasm/inlineWasm
6388
+ *
6389
+ * Provides runtime access to inline (base64-encoded) WASM module bytes.
6390
+ *
6391
+ * This module is the runtime companion to the build-time code generation
6392
+ * script `scripts/generate-inline-wasm.ts`. It imports the generated
6393
+ * constants from `inlineWasm.generated.ts` and exposes a single function,
6394
+ * {@link getInlineWasmBytes}, that decodes a module's base64 string into
6395
+ * a `Uint8Array` on demand.
6396
+ *
6397
+ * Design:
6398
+ * - The heavy lifting (reading WASM files, base64 encoding) happens at
6399
+ * **build time** via the code generation script.
6400
+ * - At **runtime**, only a single base64 decode is needed per module,
6401
+ * and the result is cached.
6402
+ * - This approach avoids shipping base64 strings in the default bundle.
6403
+ * The generated file is only imported when inline WASM is needed
6404
+ * (e.g., as a fallback when no WASM path is configured).
6405
+ *
6406
+ * @packageDocumentation
6407
+ */
6408
+ /**
6409
+ * The set of all WASM module names supported by the library.
6410
+ *
6411
+ * These correspond to the crate directories under `src/wasm/`.
6412
+ */
6413
+ declare const WASM_MODULE_NAMES: readonly ["libdeflate", "png", "ttf", "shaping", "jbig2", "jpeg"];
6414
+ /** Union type of all valid WASM module names. */
6415
+ type WasmModuleName = (typeof WASM_MODULE_NAMES)[number];
6416
+ /**
6417
+ * Retrieve the decoded WASM bytes for a given module name.
6418
+ *
6419
+ * On first call for a module, the base64 string from the generated file
6420
+ * is decoded into a `Uint8Array`. Subsequent calls return the cached
6421
+ * result.
6422
+ *
6423
+ * @param name The WASM module name (e.g., `'libdeflate'`, `'png'`).
6424
+ * @returns The decoded WASM binary as a `Uint8Array`.
6425
+ * @throws If the module name is unknown or the generated file does
6426
+ * not contain data for the requested module.
6427
+ *
6428
+ * @example
6429
+ * ```ts
6430
+ * const wasmBytes = getInlineWasmBytes('libdeflate');
6431
+ * const module = await WebAssembly.compile(wasmBytes);
6432
+ * ```
6433
+ */
6434
+ declare function getInlineWasmBytes(name: string): Uint8Array;
6435
+ /**
6436
+ * Check whether a given module name is a valid WASM module name.
6437
+ *
6438
+ * @param name The name to check.
6439
+ * @returns `true` if the name is one of the known WASM modules.
6440
+ */
6441
+ declare function isValidModuleName(name: string): name is WasmModuleName;
6442
+ /**
6443
+ * Check whether inline WASM data is available for a given module.
6444
+ *
6445
+ * Returns `true` if the generated file contains base64 data for the
6446
+ * requested module. Returns `false` if the generated file does not
6447
+ * exist or does not include the module.
6448
+ *
6449
+ * @param name The WASM module name.
6450
+ * @returns `true` if inline bytes can be retrieved for this module.
6451
+ */
6452
+ declare function hasInlineWasmData(name: string): boolean;
5885
6453
  declare namespace index_d_exports {
5886
- export { AFRelationship, AccessibilityIssue, AnalysisReport, AnalyzeImagesOptions, Angle, AnnotationFlags, AnnotationOptions, AnnotationType, AppearanceProviderFor, AppendOptions, AssociatedFileOptions, AssociatedFileResult, BarcodeMatrix, BarcodeOptions, BarcodeReadResult, BatchOptimizeOptions, BlendMode, ButtonAppearanceOptions, ByteRangeResult, ByteWriter, CIDFontData, CIDSystemInfoData, CaretSymbol, CatalogOptions, CellContent, ChangeTracker, CheckboxAppearanceOptions, ChromaSubsampling, CmykColor, Code128Options, Code39Options, Color, ColorStop, CombedTextLayoutError, ComputeFontSizeOptions, ContentStreamOperator, CounterSignatureInfo, CropBox, DataMatrixOptions, DataMatrixResult, DeduplicationReport, Degrees, DiffEntry, DirectEmbedOptions, DirectEmbedResult, DocumentDiff, DocumentMetadata, 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, FieldAlreadyExistsError, FieldExistsAsNonTerminalError, FieldFlags, FieldLockInfo, FieldLockOptions, FieldType, FileAttachmentIcon, FontDescriptorData, FontEmbeddingResult, FontMetrics, FontNotEmbeddedError, FontRef, ForeignPageError, FreeTextAlignment, GradientFill, GrayscaleColor, IccProfile, IfdEntry, ImageAlignment, ImageAnalysis, ImageDpi, ImageFormat, ImageInfo, ImageOptimizeEntry, ImageOptimizeOptions, ImageRef, IncrementalChange, IncrementalObject, IncrementalSaveOptions, IncrementalSaveResult, InitWasmOptions, InvalidFieldNamePartError, ItfOptions, JpegDecodeResult, JpegMarkerInfo, JpegMetadata, JpegWasmModule, LayoutCombedOptions, LayoutMultilineOptions, LayoutMultilineResult, LayoutSinglelineOptions, LayoutSinglelineResult, LineCapStyle, LineEndingStyle, LineJoinStyle, LinearGradientOptions, LinearizationOptions, LinkHighlightMode, ListboxAppearanceOptions, LoadPdfOptions, LtvOptions, MarkedContentScope, MdpPermission, MissingOnValueCheckError, ModificationReport, ModificationViolation, ModificationViolationType, MultiPageTableResult, NestedTableContent, NoSuchFieldError, NormalizedStop, Operand, OptimizationReport, OptimizeResult, OutlineDestination, OutlineItemOptions, OutputIntentOptions, OverflowMode, OverflowResult, PDFOperator, PageContent, PageEntry, PageRange, PageSize, PageSizes, ParseSpeeds, ParsedXmpMetadata, PatternFill, Pdf417Matrix, Pdf417Options, PdfAIssue, PdfALevel, PdfAProfile, PdfAValidationResult, PdfAXmpOptions, PdfAnnotation, PdfArray, PdfBool, PdfButtonField, PdfCaretAnnotation, PdfCheckboxField, PdfCircleAnnotation, PdfDict, PdfDocument, PdfDropdownField, PdfEncryptionHandler, PdfField, PdfFileAttachmentAnnotation, PdfForm, PdfFreeTextAnnotation, PdfHighlightAnnotation, PdfInkAnnotation, PdfLayer, PdfLayerManager, PdfLineAnnotation, PdfLinkAnnotation, PdfListboxField, PdfName, PdfNull, PdfNumber, PdfObject, PdfObjectRegistry, PdfOutlineItem, PdfOutlineTree, PdfPage, PdfParseError, PdfPermissionFlags, PdfPolyLineAnnotation, PdfPolygonAnnotation, PdfPopupAnnotation, PdfRadioGroup, PdfRedactAnnotation, PdfRef, PdfSaveOptions, PdfSignatureField, PdfSignatureInfo, PdfSquareAnnotation, PdfSquigglyAnnotation, PdfStampAnnotation, PdfStream, PdfStreamWriter, PdfStrikeOutAnnotation, PdfString, PdfStructureElement, PdfStructureTree, PdfTextAnnotation, PdfTextField, PdfUnderlineAnnotation, PdfViewerPreferences, PdfWorker, PdfWorkerOptions, PdfWriter, PrepareAppearanceOptions, PresetName, PresetOptions, ProgressInfo, QrCodeMatrix, QrCodeOptions, RadialGradientFill, RadialGradientOptions, Radians, RadioAppearanceOptions, RawImageData, RecompressOptions, RedactionMark, RedactionOptions, RefResolver, RegistryEntry, RemovePageFromEmptyDocumentError, RgbColor, RichTextFieldReadError, RuntimeKind, SRGB_ICC_PROFILE, SetTitleOptions, SignOptions, SignatureAppearanceOptions, SignatureByteRange, SignatureChainEntry, SignatureChainResult, SignatureOptions, SignatureVerificationResult, SignerInfo, SoftMaskBuilder, SoftMaskRef, StandardFontName, StandardFonts, StandardStampName, StripOptions, StripResult, StrippedFeature, StructureElementOptions, StructureType, StyledBarcodeOptions, SubsetCmap, SubsetResult, SvgDrawCommand, SvgElement, SvgRenderOptions, TableCell, TableColumn, TablePreset, TableRenderResult, TableRow, TextAlignment, TextAnnotationIcon, TextAppearanceOptions, TextExtractionOptions, TextItem, TextRenderingMode, TextRun, TiffCmykEmbedResult, TiffDecodeOptions, TiffIfdEntry, TiffImage, TilingPatternOptions, TimestampResult, TrailerInfo, TransparencyFinding, TransparencyGroupOptions, TransparencyInfo, Type0FontData, UnexpectedFieldTypeError, BarcodeOptions as UpcOptions, ViewerPreferences, VisibleSignatureOptions, WasmLoaderConfig, WatermarkOptions, WebPImage, WidgetAnnotationHost, WidthEntry, XmpIssue, XmpValidationResult, addCounterSignature, addFieldLock, addWatermark, addWatermarkToPage, aesDecryptCBC, aesEncryptCBC, analyzeImages, analyzeJpegMarkers, annotationFromDict, appendIncrementalUpdate, applyFillColor, applyOverflow, applyPreset, applyRedactions, applyStrokeColor, applyTablePreset, asNumber, asPDFName, asPDFNumber, attachFile, base64Decode, base64Encode, beginArtifact, beginArtifactWithType, beginLayerContent, beginMarkedContent, beginMarkedContentSequence, beginMarkedContentWithProperties, beginText, borderedPreset, buildAfArray, buildAnnotationDict, buildCatalog, buildDocMdpReference, buildDocumentStructure, buildDssDictionary, buildEmbeddedFilesNameTree, buildFieldLockDict, buildGradientObjects, buildInfoDict, buildOutputIntent, buildPageTree, buildPatternObjects, buildPkcs7Signature, buildTimestampRequest, buildViewerPreferencesDict, buildXmpMetadata, calculateBarcodeDimensions, calculateEanCheckDigit, calculateUpcCheckDigit, canDirectEmbed, checkAccessibility, circlePath, clearWasmCache, clipEvenOdd, clip as clipOp, closeAndStroke, closeFillAndStroke, closeFillEvenOddAndStroke, closePath as closePathOp, cmyk, code128ToOperators, code39ToOperators, colorToComponents, componentsToColor, computeCode39CheckDigit, computeFileEncryptionKey, computeFontSize, computeImageDpi, computeObjectHash, computeSignatureHash, computeTargetDimensions, concatMatrix, concatMatrix as concatTransformationMatrix, configureWasmLoader, convertTiffCmykToRgb, convertToGrayscale, copyPages, countOccurrences, createAnnotation, createAssociatedFile, createMarkedContentScope, createPdf, createXmpStream, cropPage, curveToFinal, curveToInitial, curveTo as curveToOp, dataMatrixToOperators, decodeImageStream, decodeJpegWasm, decodePermissions, decodeStream, decodeTiff, decodeTiffAll, decodeTiffPage, decodeWebP, deduplicateImages, degrees, degreesToRadians, detectImageFormat, detectModifications, detectRuntime, detectTransparency, 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, estimateJpegQuality, estimateTextWidth, extractIccProfile, extractImages, extractJpegMetadata, extractMetrics, extractText, extractTextWithPositions, extractXmpMetadata, fillAndStroke as fillAndStrokeOp, fillEvenOdd, fillEvenOddAndStroke, fill as fillOp, findChangedObjects, findExistingSignatures, findSignatures, flattenTransparency, formatHexContext, formatPdfDate, generateButtonAppearance, generateCheckboxAppearance, generateCircleAppearance, generateDropdownAppearance, generateFreeTextAppearance, generateHighlightAppearance, generateInkAppearance, generateLineAppearance, generateListboxAppearance, generatePdfAXmp, generatePdfAXmpBytes, generateRadioAppearance, generateSignatureAppearance, generateSquareAppearance, generateSquigglyAppearance, generateSrgbIccProfile, generateStrikeOutAppearance, generateSymbolToUnicodeCmap, generateTextAppearance, generateUnderlineAppearance, generateWinAnsiToUnicodeCmap, generateZapfDingbatsToUnicodeCmap, getAttachments, getCertificationLevel, getCounterSignatures, getFieldLocks, getImageFormatName, getPageSize, getProfile, getRedactionMarks, getSignatures, getSupportedFormats, getSupportedLevels, getTiffPageCount, getToUnicodeCmap, grayscale, hasLtvData, initJpegWasm, initWasm, injectJpegMetadata, insertPage, instantiateWasmModuleStreaming, isAccessible, isCmykTiff, isGrayscaleImage, isJpegWasmReady, isLinearized, isOpenTypeCFF, isTiff, isTrueType, isValidLevel, isWasmDisabled, isWasmModuleCached, isWebP, isWebPLossless, itfToOperators, layoutCombedText, layoutMultilineText, layoutSinglelineText, lineTo as lineToOp, linearGradient, linearizePdf, loadPdf, loadWasmModule, loadWasmModuleStreaming, markForRedaction, md5, mergePdfs, minimalPreset, movePage, moveText as moveTextOp, moveTextSetLeading, moveTo as moveToOp, 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, restoreState as popGraphicsState, prepareForSigning, professionalPreset, provideWasmBytes, saveState as pushGraphicsState, qrCodeToOperators, radialGradient, radians, radiansToDegrees, rc4, readBarcode, readCode128, readCode39, readEan13, readEan8, recompressImage, recompressWebP, rectangle as rectangleOp, removePage, removePages, renderMultiPageTable, renderStyledBarcode, renderTable, requestTimestamp, resetWasmLoader, resizePage, restoreState, reversePages, rgb, rotateAllPages, rotate as rotateOp, rotatePage, rotationMatrix, saveDocumentIncremental, saveIncremental, saveIncrementalWithSignaturePreservation, saveState, scale as scaleOp, 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, 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, signPdf, skew as skewOp, splitPdf, stripProhibitedFeatures, stripedPreset, stroke as strokeOp, summarizeIssues, svgToPdfOperators, tilingPattern, translate as translateOp, truncateText, upcAToOperators, validateByteRangeIntegrity, validatePdfA, validateSignatureChain, validateXmpMetadata, valuesToModules, verifyOwnerPassword, verifySignature, verifySignatures, verifyUserPassword, webpToJpeg, webpToPng, wrapInMarkedContent, wrapText };
6454
+ export { AFRelationship, AccessibilityIssue, AddBookmarkOptions, AnalysisReport, AnalyzeImagesOptions, Angle, AnnotationFlags, AnnotationOptions, AnnotationType, AppearanceProviderFor, AppendOptions, AssociatedFileOptions, AssociatedFileResult, BarcodeMatrix, BarcodeOptions, BarcodeReadResult, BatchOptimizeOptions, BatchOptions, BatchProgressCallback, BatchResult, BlendMode, BookmarkNode, BookmarkRef, ButtonAppearanceOptions, ByteRangeResult, ByteWriter, CIDFontData, CIDSystemInfoData, CaretSymbol, CatalogOptions, CellContent, ChangeTracker, CheckboxAppearanceOptions, ChromaSubsampling, CmykColor, Code128Options, Code39Options, Color, ColorStop, CombedTextLayoutError, ComputeFontSizeOptions, ContentStreamOperator, CounterSignatureInfo, CropBox, DataMatrixOptions, DataMatrixResult, DeduplicationReport, Degrees, DiffEntry, DirectEmbedOptions, DirectEmbedResult, DocumentDiff, DocumentMetadata, 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, FieldAlreadyExistsError, FieldExistsAsNonTerminalError, FieldFlags, FieldLockInfo, FieldLockOptions, FieldType, FileAttachmentIcon, FlattenFormResult, FlattenOptions, FontDescriptorData, FontEmbeddingResult, FontMetrics, FontNotEmbeddedError, FontRef, ForeignPageError, FreeTextAlignment, GradientFill, GrayscaleColor, IccProfile, IfdEntry, ImageAlignment, ImageAnalysis, ImageDpi, ImageFormat, ImageInfo, ImageOptimizeEntry, ImageOptimizeOptions, ImageRef, IncrementalChange, IncrementalObject, IncrementalSaveOptions, IncrementalSaveResult, InitWasmOptions, InvalidFieldNamePartError, ItfOptions, JpegDecodeResult, JpegMarkerInfo, JpegMetadata, JpegWasmModule, LayoutCombedOptions, LayoutMultilineOptions, LayoutMultilineResult, LayoutSinglelineOptions, LayoutSinglelineResult, LineCapStyle, LineEndingStyle, LineJoinStyle, LinearGradientOptions, LinearizationInfo, LinearizationOptions, LinkHighlightMode, ListboxAppearanceOptions, LoadPdfOptions, LtvOptions, MarkedContentScope, MdpPermission, MissingOnValueCheckError, ModificationReport, ModificationViolation, ModificationViolationType, MultiPageTableResult, NestedTableContent, NoSuchFieldError, NormalizedStop, Operand, OptimizationReport, OptimizeResult, OutlineDestination, OutlineItemOptions, OutputIntentOptions, OverflowMode, OverflowResult, PDFOperator, PageContent, PageEntry, PageLabelRange, PageLabelStyle, PageRange, PageSize, PageSizes, ParseSpeeds, ParsedXmpMetadata, PatternFill, Pdf417Matrix, Pdf417Options, PdfAIssue, PdfALevel, PdfAProfile, PdfAValidationResult, PdfAXmpOptions, PdfAnnotation, PdfArray, PdfBool, PdfButtonField, PdfCaretAnnotation, PdfCheckboxField, PdfCircleAnnotation, PdfDict, PdfDocument, PdfDropdownField, PdfEncryptionHandler, PdfField, PdfFileAttachmentAnnotation, PdfForm, PdfFreeTextAnnotation, PdfHighlightAnnotation, PdfInkAnnotation, PdfLayer, PdfLayerManager, PdfLineAnnotation, PdfLinkAnnotation, PdfListboxField, PdfName, PdfNull, PdfNumber, PdfObject, PdfObjectRegistry, PdfOutlineItem, PdfOutlineTree, PdfPage, PdfParseError, PdfPermissionFlags, PdfPolyLineAnnotation, PdfPolygonAnnotation, PdfPopupAnnotation, PdfRadioGroup, PdfRedactAnnotation, PdfRef, PdfSaveOptions, PdfSignatureField, PdfSignatureInfo, PdfSquareAnnotation, PdfSquigglyAnnotation, PdfStampAnnotation, PdfStream, PdfStreamWriter, PdfStrikeOutAnnotation, PdfString, PdfStructureElement, PdfStructureTree, PdfTextAnnotation, PdfTextField, PdfUaEnforcementResult, PdfUaError, PdfUaLevel, PdfUaValidationResult, PdfUaWarning, PdfUnderlineAnnotation, PdfViewerPreferences, PdfWorker, PdfWorkerOptions, PdfWriter, PrepareAppearanceOptions, PresetName, PresetOptions, ProgressInfo, QrCodeMatrix, QrCodeOptions, RadialGradientFill, RadialGradientOptions, Radians, RadioAppearanceOptions, RawImageData, RecompressOptions, RedactionMark, RedactionOptions, RedactionResult, RefResolver, RegistryEntry, RemovePageFromEmptyDocumentError, RgbColor, RichTextFieldReadError, RuntimeKind, SRGB_ICC_PROFILE, SetTitleOptions, SignOptions, SignatureAppearanceOptions, SignatureByteRange, SignatureChainEntry, SignatureChainResult, SignatureOptions, SignatureVerificationResult, SignerInfo, SoftMaskBuilder, SoftMaskRef, StandardFontName, StandardFonts, StandardStampName, StripOptions, StripResult, StrippedFeature, StructureElementOptions, StructureType, StyledBarcodeOptions, SubsetCmap, SubsetResult, SvgDrawCommand, SvgElement, SvgRenderOptions, TableCell, TableColumn, TablePreset, TableRenderResult, TableRow, TextAlignment, TextAnnotationIcon, TextAppearanceOptions, TextExtractionOptions, TextItem, TextRenderingMode, TextRun, TiffCmykEmbedResult, TiffDecodeOptions, TiffIfdEntry, TiffImage, TilingPatternOptions, TimestampResult, TrailerInfo, TransparencyFinding, TransparencyGroupOptions, TransparencyInfo, Type0FontData, UnexpectedFieldTypeError, BarcodeOptions as UpcOptions, ViewerPreferences, VisibleSignatureOptions, WasmLoaderConfig, WasmModuleName, WatermarkOptions, WebPImage, WidgetAnnotationHost, WidthEntry, XmpIssue, XmpValidationResult, addBookmark, addCounterSignature, addFieldLock, addWatermark, addWatermarkToPage, aesDecryptCBC, aesEncryptCBC, analyzeImages, analyzeJpegMarkers, annotationFromDict, appendIncrementalUpdate, applyFillColor, applyOverflow, applyPreset, applyRedaction, applyRedactions, applyStrokeColor, applyTablePreset, asNumber, asPDFName, asPDFNumber, attachFile, base64Decode, base64Encode, batchFlatten, batchMerge, beginArtifact, beginArtifactWithType, beginLayerContent, beginMarkedContent, beginMarkedContentSequence, beginMarkedContentWithProperties, beginText, borderedPreset, buildAfArray, buildAnnotationDict, buildCatalog, buildDocMdpReference, buildDocumentStructure, buildDssDictionary, buildEmbeddedFilesNameTree, buildFieldLockDict, buildGradientObjects, buildInfoDict, buildOutputIntent, buildPageTree, buildPatternObjects, buildPkcs7Signature, buildTimestampRequest, buildViewerPreferencesDict, buildXmpMetadata, calculateBarcodeDimensions, calculateEanCheckDigit, calculateUpcCheckDigit, canDirectEmbed, checkAccessibility, circlePath, clearWasmCache, clipEvenOdd, clip as clipOp, closeAndStroke, closeFillAndStroke, closeFillEvenOddAndStroke, closePath as closePathOp, cmyk, code128ToOperators, code39ToOperators, colorToComponents, componentsToColor, computeCode39CheckDigit, computeFileEncryptionKey, computeFontSize, computeImageDpi, computeObjectHash, computeSignatureHash, computeTargetDimensions, concatMatrix, concatMatrix as concatTransformationMatrix, configureWasmLoader, convertTiffCmykToRgb, convertToGrayscale, copyPages, countOccurrences, createAnnotation, createAssociatedFile, createMarkedContentScope, createPdf, createXmpStream, cropPage, curveToFinal, curveToInitial, curveTo as curveToOp, dataMatrixToOperators, decodeImageStream, decodeJpegWasm, decodePermissions, decodeStream, decodeTiff, decodeTiffAll, decodeTiffPage, decodeWebP, deduplicateImages, degrees, degreesToRadians, delinearizePdf, detectImageFormat, detectModifications, detectRuntime, detectTransparency, 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, extractIccProfile, extractImages, extractJpegMetadata, extractMetrics, extractText, extractTextWithPositions, extractXmpMetadata, fillAndStroke as fillAndStrokeOp, fillEvenOdd, fillEvenOddAndStroke, fill as fillOp, findChangedObjects, findExistingSignatures, findSignatures, flattenField, flattenFields, flattenForm, flattenTransparency, formatHexContext, formatPdfDate, generateButtonAppearance, generateCheckboxAppearance, generateCircleAppearance, generateDropdownAppearance, generateFreeTextAppearance, generateHighlightAppearance, generateInkAppearance, generateLineAppearance, generateListboxAppearance, generatePdfAXmp, generatePdfAXmpBytes, generateRadioAppearance, generateSignatureAppearance, generateSquareAppearance, generateSquigglyAppearance, generateSrgbIccProfile, generateStrikeOutAppearance, generateSymbolToUnicodeCmap, generateTextAppearance, generateUnderlineAppearance, generateWinAnsiToUnicodeCmap, generateZapfDingbatsToUnicodeCmap, getAttachments, getBookmarks, getCertificationLevel, getCounterSignatures, getFieldLocks, getImageFormatName, getInlineWasmBytes, getLinearizationInfo, getPageLabels, getPageSize, getProfile, getRedactionMarks, getSignatures, getSupportedFormats, getSupportedLevels, getTiffPageCount, getToUnicodeCmap, grayscale, hasInlineWasmData, hasLtvData, initJpegWasm, initWasm, injectJpegMetadata, insertPage, instantiateWasmModuleStreaming, isAccessible, isCmykTiff, isGrayscaleImage, isJpegWasmReady, isLinearized, isOpenTypeCFF, isTiff, isTrueType, isValidLevel, isValidModuleName, isWasmDisabled, isWasmModuleCached, isWebP, isWebPLossless, itfToOperators, layoutCombedText, layoutMultilineText, layoutSinglelineText, lineTo as lineToOp, linearGradient, linearizePdf, loadPdf, loadWasmModule, loadWasmModuleStreaming, markForRedaction, md5, mergePdfs, minimalPreset, movePage, moveText as moveTextOp, moveTextSetLeading, moveTo as moveToOp, 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, restoreState as popGraphicsState, prepareForSigning, processBatch, professionalPreset, provideWasmBytes, saveState as pushGraphicsState, qrCodeToOperators, radialGradient, radians, radiansToDegrees, rc4, readBarcode, readCode128, readCode39, readEan13, readEan8, recompressImage, recompressWebP, rectangle as rectangleOp, removeAllBookmarks, removeBookmark, removePage, removePageLabels, removePages, renderMultiPageTable, renderStyledBarcode, renderTable, requestTimestamp, resetWasmLoader, resizePage, restoreState, reversePages, rgb, rotateAllPages, rotate as rotateOp, rotatePage, rotationMatrix, saveDocumentIncremental, saveIncremental, saveIncrementalWithSignaturePreservation, saveState, scale as scaleOp, 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, signPdf, skew as skewOp, splitPdf, stripProhibitedFeatures, stripedPreset, stroke as strokeOp, summarizeIssues, svgToPdfOperators, tilingPattern, translate as translateOp, truncateText, upcAToOperators, validateByteRangeIntegrity, validatePdfA, validatePdfUa, validateSignatureChain, validateXmpMetadata, valuesToModules, verifyOwnerPassword, verifySignature, verifySignatures, verifyUserPassword, webpToJpeg, webpToPng, wrapInMarkedContent, wrapText };
5887
6455
  }
5888
6456
  /**
5889
6457
  * Options for WASM module initialization.
@@ -5935,5 +6503,5 @@ interface InitWasmOptions {
5935
6503
  */
5936
6504
  declare function initWasm(options?: string | URL | InitWasmOptions): Promise<void>;
5937
6505
  //#endregion
5938
- export { upcAToOperators as $, beginArtifactWithType as $a, generateFreeTextAppearance as $i, PdfAXmpOptions as $n, stroke as $o, getCounterSignatures as $r, recompressWebP as $t, borderedPreset as A, PdfTextAnnotation as Aa, buildTimestampRequest as Ai, OptimizationReport as An, clipEvenOdd as Ao, TransparencyFinding as Ar, isWasmModuleCached as At, StyledBarcodeOptions as B, computeFileEncryptionKey as Ba, encodeOctetString as Bi, optimizeImage as Bn, fill as Bo, isLinearized as Br, decodeTiffPage as Bt, truncateText as C, PdfSquigglyAnnotation as Ca, TrailerInfo as Ci, parseIccDescription as Cn, showText as Co, generateWinAnsiToUnicodeCmap as Cr, RuntimeKind as Ct, TablePreset as D, PdfFreeTextAnnotation as Da, saveIncrementalWithSignaturePreservation as Di, deduplicateImages as Dn, showTextWithSpacing as Do, buildOutputIntent as Dr, detectRuntime as Dt, PresetOptions as E, FreeTextAlignment as Ea, parseExistingTrailer as Ei, DeduplicationReport as En, showTextNextLine as Eo, OutputIntentOptions as Er, configureWasmLoader as Et, readBarcode as F, aesDecryptCBC as Fa, buildPkcs7Signature as Fi, OptimizeResult as Fn, curveTo as Fo, PdfALevel as Fr, IfdEntry as Ft, encodePdf417 as G, summarizeIssues as Ga, encodeUtf8String as Gi, decodeJpegWasm as Gn, moveTo as Go, optimizeIncrementalSave as Gr, decodeWebP as Gt, renderStyledBarcode as H, verifyUserPassword as Ha, encodeSequence as Hi, ChromaSubsampling as Hn, fillEvenOdd as Ho, IncrementalChange as Hr, isTiff as Ht, readCode128 as I, aesEncryptCBC as Ia, encodeContextTag as Ii, RawImageData as In, curveToFinal as Io, PdfAValidationResult as Ir, TiffDecodeOptions as It, DataMatrixResult as J, parseXmpMetadata$1 as Ja, computeSignatureHash as Ji, isJpegWasmReady as Jn, setFlatness as Jo, buildDssDictionary as Jr, DirectEmbedOptions as Jt, pdf417ToOperators as K, buildXmpMetadata as Ka, ByteRangeResult as Ki, encodeJpegWasm as Kn, rectangle as Ko, DssData as Kr, isWebP as Kt, readCode39 as L, rc4 as La, encodeInteger as Li, RecompressOptions as Ln, curveToInitial as Lo, enforcePdfA as Lr, TiffImage as Lt, professionalPreset as M, sha256 as Ma, requestTimestamp as Mi, optimizeAllImages as Mn, closeFillAndStroke as Mo, detectTransparency as Mr, loadWasmModuleStreaming as Mt, stripedPreset as N, sha384 as Na, SignatureOptions as Ni, DownscaleOptions as Nn, closeFillEvenOddAndStroke as No, flattenTransparency as Nr, provideWasmBytes as Nt, applyPreset as O, LinkHighlightMode as Oa, validateByteRangeIntegrity as Oi, BatchOptimizeOptions as On, circlePath as Oo, SRGB_ICC_PROFILE as Or, instantiateWasmModuleStreaming as Ot, BarcodeReadResult as P, sha512 as Pa, SignerInfo as Pi, ImageOptimizeOptions as Pn, closePath as Po, PdfAIssue as Pr, resetWasmLoader as Pt, encodeUpcA as Q, beginArtifact as Qa, generateCircleAppearance as Qi, enforcePdfAFull as Qn, setMiterLimit as Qo, addCounterSignature as Qr, encodePngFromPixels as Qt, readEan13 as R, md5 as Ra, encodeLength as Ri, downscaleImage as Rn, ellipsePath as Ro, validatePdfA as Rr, decodeTiff as Rt, shrinkFontSize as S, PdfHighlightAnnotation as Sa, SignatureByteRange as Si, parseIccColorSpace as Sn, setWordSpacing as So, generateSymbolToUnicodeCmap as Sr, PdfWorkerOptions as St, PresetName as T, PdfUnderlineAnnotation as Ta, findExistingSignatures as Ti, isGrayscaleImage as Tn, showTextHex as To, getToUnicodeCmap as Tr, clearWasmCache as Tt, Pdf417Matrix as U, checkAccessibility as Ua, encodeSet as Ui, JpegDecodeResult as Un, fillEvenOddAndStroke as Uo, computeObjectHash as Ur, parseTiffIfd as Ut, calculateBarcodeDimensions as V, verifyOwnerPassword as Va, encodePrintableString as Vi, recompressImage as Vn, fillAndStroke as Vo, linearizePdf as Vr, getTiffPageCount as Vt, Pdf417Options as W, isAccessible as Wa, encodeUTCTime as Wi, JpegWasmModule as Wn, lineTo as Wo, findChangedObjects as Wr, WebPImage as Wt, encodeDataMatrix as X, PDFOperator as Xa, findSignatures as Xi, EnforcePdfAResult as Xn, setLineJoin as Xo, hasLtvData as Xr, canDirectEmbed as Xt, dataMatrixToOperators as Y, PdfStreamWriter as Ya, embedSignature as Yi, EnforcePdfAOptions as Yn, setLineCap as Yo, embedLtvData as Yr, DirectEmbedResult as Yt, calculateUpcCheckDigit as Z, MarkedContentScope as Za, prepareForSigning as Zi, EnforcementAction as Zn, setLineWidth as Zo, CounterSignatureInfo as Zr, embedTiffDirect as Zt, OverflowMode as _, PdfCircleAnnotation as _a, SignatureChainResult as _i, computeImageDpi as _n, setFontSize as _o, validateXmpMetadata as _r, BarcodeMatrix as _t, EncryptedPdfError as a, generateStrikeOutAppearance as aa, addFieldLock as ai, getSupportedFormats as an, endMarkedContent as ao, countOccurrences as ar, saveIncremental as as, ItfOptions as at, ellipsisText as b, PdfPolygonAnnotation as ba, IncrementalObject as bi, embedIccProfile as bn, setTextRenderingMode as bo, getSupportedLevels as br, base64Encode as bt, FieldExistsAsNonTerminalError as c, PdfFileAttachmentAnnotation as ca, ModificationReport as ci, convertTiffCmykToRgb as cn, drawImageXObject as co, AssociatedFileOptions as cr, Code39Options as ct, InvalidFieldNamePartError as d, PdfPopupAnnotation as da, detectModifications as di, JpegMetadata as dn, endText as do, createAssociatedFile as dr, encodeCode39 as dt, generateHighlightAppearance as ea, DiffEntry as ei, webpToJpeg as en, beginMarkedContent as eo, generatePdfAXmp as er, isOpenTypeCFF as es, calculateEanCheckDigit as et, MissingOnValueCheckError as f, PdfRedactAnnotation as fa, MdpPermission as fi, extractJpegMetadata as fn, moveText as fo, ParsedXmpMetadata as fr, Code128Options as ft, UnexpectedFieldTypeError as g, LineEndingStyle as ga, SignatureChainEntry as gi, ImageDpi as gn, setFont as go, parseXmpMetadata as gr, valuesToModules as gt, RichTextFieldReadError as h, StandardStampName as ha, setCertificationLevel as hi, analyzeJpegMarkers as hn, setCharacterSpacing as ho, extractXmpMetadata as hr, encodeCode128Values as ht, CombedTextLayoutError as i, generateSquigglyAppearance as ia, FieldLockOptions as ii, getImageFormatName as in, endArtifact as io, StrippedFeature as ir, saveDocumentIncremental as is, encodeEan8 as it, minimalPreset as j, TextAnnotationIcon as ja, parseTimestampResponse as ji, ProgressInfo as jn, closeAndStroke as jo, TransparencyInfo as jr, loadWasmModule as jt, applyTablePreset as k, PdfLinkAnnotation as ka, TimestampResult as ki, ImageOptimizeEntry as kn, clip as ko, generateSrgbIccProfile as kr, isWasmDisabled as kt, FontNotEmbeddedError as l, CaretSymbol as la, ModificationViolation as li, embedTiffCmyk as ln, drawXObject as lo, AssociatedFileResult as lr, code39ToOperators as lt, RemovePageFromEmptyDocumentError as m, PdfStampAnnotation as ma, getCertificationLevel as mi, JpegMarkerInfo as mn, nextLine as mo, XmpValidationResult as mr, encodeCode128 as mt, index_d_exports as n, generateLineAppearance as na, diffSignedContent as ni, ImageFormat as nn, beginMarkedContentWithProperties as no, StripOptions as nr, ChangeTracker as ns, ean8ToOperators as nt, ExceededMaxLengthError as o, generateUnderlineAppearance as oa, buildFieldLockDict as oi, TiffCmykEmbedResult as on, wrapInMarkedContent as oo, stripProhibitedFeatures as or, encodeItf as ot, NoSuchFieldError as p, PdfInkAnnotation as pa, buildDocMdpReference as pi, injectJpegMetadata as pn, moveTextSetLeading as po, XmpIssue as pr, code128ToOperators as pt, DataMatrixOptions as q, createXmpStream as qa, PrepareAppearanceOptions as qi, initJpegWasm as qn, setDashPattern as qo, LtvOptions as qr, isWebPLossless as qt, initWasm as r, generateSquareAppearance as ra, FieldLockInfo as ri, detectImageFormat as rn, createMarkedContentScope as ro, StripResult as rr, IncrementalSaveResult as rs, encodeEan13 as rt, FieldAlreadyExistsError as s, FileAttachmentIcon as sa, getFieldLocks as si, TiffIfdEntry as sn, drawImageWithMatrix as so, AFRelationship as sr, itfToOperators as st, InitWasmOptions as t, generateInkAppearance as ta, DocumentDiff as ti, webpToPng as tn, beginMarkedContentSequence as to, generatePdfAXmpBytes as tr, isTrueType as ts, ean13ToOperators as tt, ForeignPageError as u, PdfCaretAnnotation as ua, ModificationViolationType as ui, isCmykTiff as un, beginText as uo, buildAfArray as ur, computeCode39CheckDigit as ut, OverflowResult as v, PdfLineAnnotation as va, validateSignatureChain as vi, computeTargetDimensions as vn, setLeading as vo, PdfAProfile as vr, BarcodeOptions as vt, wrapText as w, PdfStrikeOutAnnotation as wa, appendIncrementalUpdate as wi, convertToGrayscale as wn, showTextArray as wo, generateZapfDingbatsToUnicodeCmap as wr, WasmLoaderConfig as wt, estimateTextWidth as x, PdfSquareAnnotation as xa, IncrementalSaveOptions as xi, extractIccProfile as xn, setTextRise as xo, isValidLevel as xr, PdfWorker as xt, applyOverflow as y, PdfPolyLineAnnotation as ya, AppendOptions as yi, IccProfile as yn, setTextMatrix as yo, getProfile as yr, base64Decode as yt, readEan8 as z, EncryptDictValues as za, encodeOID as zi, estimateJpegQuality as zn, endPath as zo, LinearizationOptions as zr, decodeTiffAll as zt };
5939
- //# sourceMappingURL=index-J1W3FdL8.d.cts.map
6506
+ export { PresetOptions as $, PdfSquareAnnotation as $a, IncrementalSaveOptions as $i, DeduplicationReport as $n, nextLine as $o, generateZapfDingbatsToUnicodeCmap as $r, configureWasmLoader as $t, flattenForm as A, generateCircleAppearance as Aa, addCounterSignature as Ai, detectImageFormat as An, summarizeIssues as Ao, generatePdfAXmpBytes as Ar, moveTo as As, encodeEan13 as At, NoSuchFieldError as B, PdfFileAttachmentAnnotation as Ba, ModificationReport as Bi, injectJpegMetadata as Bn, beginMarkedContentSequence as Bo, createAssociatedFile as Br, isTrueType as Bs, code128ToOperators as Bt, getBookmarks as C, encodeUtf8String as Ca, optimizeIncrementalSave as Ci, canDirectEmbed as Cn, PdfUaLevel as Co, applyRedaction as Cr, ellipsePath as Cs, encodeDataMatrix as Ct, FlattenOptions as D, embedSignature as Da, embedLtvData as Di, webpToJpeg as Dn, validatePdfUa as Do, enforcePdfAFull as Dr, fillEvenOdd as Ds, calculateEanCheckDigit as Dt, FlattenFormResult as E, computeSignatureHash as Ea, buildDssDictionary as Ei, recompressWebP as En, enforcePdfUa as Eo, EnforcementAction as Er, fillAndStroke as Es, upcAToOperators as Et, FieldExistsAsNonTerminalError as F, generateSquareAppearance as Fa, FieldLockInfo as Fi, convertTiffCmykToRgb as Fn, PDFOperator as Fo, stripProhibitedFeatures as Fr, setLineJoin as Fs, Code39Options as Ft, OverflowResult as G, PdfInkAnnotation as Ga, buildDocMdpReference as Gi, computeTargetDimensions as Gn, wrapInMarkedContent as Go, parseXmpMetadata as Gr, BarcodeOptions as Gt, RichTextFieldReadError as H, PdfCaretAnnotation as Ha, ModificationViolationType as Hi, analyzeJpegMarkers as Hn, createMarkedContentScope as Ho, XmpIssue as Hr, IncrementalSaveResult as Hs, encodeCode128Values as Ht, FontNotEmbeddedError as I, generateSquigglyAppearance as Ia, FieldLockOptions as Ii, embedTiffCmyk as In, MarkedContentScope as Io, AFRelationship as Ir, setLineWidth as Is, code39ToOperators as It, estimateTextWidth as J, LineEndingStyle as Ja, SignatureChainEntry as Ji, extractIccProfile as Jn, drawXObject as Jo, getProfile as Jr, PdfWorker as Jt, applyOverflow as K, PdfStampAnnotation as Ka, getCertificationLevel as Ki, IccProfile as Kn, drawImageWithMatrix as Ko, validateXmpMetadata as Kr, base64Decode as Kt, ForeignPageError as L, generateStrikeOutAppearance as La, addFieldLock as Li, isCmykTiff as Ln, beginArtifact as Lo, AssociatedFileOptions as Lr, setMiterLimit as Ls, computeCode39CheckDigit as Lt, EncryptedPdfError as M, generateHighlightAppearance as Ma, DiffEntry as Mi, getSupportedFormats as Mn, createXmpStream as Mo, StripResult as Mr, setDashPattern as Ms, ItfOptions as Mt, ExceededMaxLengthError as N, generateInkAppearance as Na, DocumentDiff as Ni, TiffCmykEmbedResult as Nn, parseXmpMetadata$1 as No, StrippedFeature as Nr, setFlatness as Ns, encodeItf as Nt, flattenField as O, findSignatures as Oa, hasLtvData as Oi, webpToPng as On, checkAccessibility as Oo, PdfAXmpOptions as Or, fillEvenOddAndStroke as Os, ean13ToOperators as Ot, FieldAlreadyExistsError as P, generateLineAppearance as Pa, diffSignedContent as Pi, TiffIfdEntry as Pn, PdfStreamWriter as Po, countOccurrences as Pr, setLineCap as Ps, itfToOperators as Pt, PresetName as Q, PdfPolygonAnnotation as Qa, IncrementalObject as Qi, isGrayscaleImage as Qn, moveTextSetLeading as Qo, generateWinAnsiToUnicodeCmap as Qr, clearWasmCache as Qt, InvalidFieldNamePartError as R, generateUnderlineAppearance as Ra, buildFieldLockDict as Ri, JpegMetadata as Rn, beginArtifactWithType as Ro, AssociatedFileResult as Rr, stroke as Rs, encodeCode39 as Rt, addBookmark as S, encodeUTCTime as Sa, findChangedObjects as Si, DirectEmbedResult as Sn, PdfUaError as So, RedactionResult as Sr, curveToInitial as Ss, dataMatrixToOperators as St, removeBookmark as T, PrepareAppearanceOptions as Ta, LtvOptions as Ti, encodePngFromPixels as Tn, PdfUaWarning as To, EnforcePdfAResult as Tr, fill as Ts, encodeUpcA as Tt, UnexpectedFieldTypeError as U, PdfPopupAnnotation as Ua, detectModifications as Ui, ImageDpi as Un, endArtifact as Uo, XmpValidationResult as Ur, saveDocumentIncremental as Us, valuesToModules as Ut, RemovePageFromEmptyDocumentError as V, CaretSymbol as Va, ModificationViolation as Vi, JpegMarkerInfo as Vn, beginMarkedContentWithProperties as Vo, ParsedXmpMetadata as Vr, ChangeTracker as Vs, encodeCode128 as Vt, OverflowMode as W, PdfRedactAnnotation as Wa, MdpPermission as Wi, computeImageDpi as Wn, endMarkedContent as Wo, extractXmpMetadata as Wr, saveIncremental as Ws, BarcodeMatrix as Wt, truncateText as X, PdfLineAnnotation as Xa, validateSignatureChain as Xi, parseIccDescription as Xn, endText as Xo, isValidLevel as Xr, RuntimeKind as Xt, shrinkFontSize as Y, PdfCircleAnnotation as Ya, SignatureChainResult as Yi, parseIccColorSpace as Yn, beginText as Yo, getSupportedLevels as Yr, PdfWorkerOptions as Yt, wrapText as Z, PdfPolyLineAnnotation as Za, AppendOptions as Zi, convertToGrayscale as Zn, moveText as Zo, generateSymbolToUnicodeCmap as Zr, WasmLoaderConfig as Zt, removePageLabels as _, encodeOID as _a, getLinearizationInfo as _i, WebPImage as _n, EncryptDictValues as _o, JpegWasmModule as _r, closeFillAndStroke as _s, Pdf417Options as _t, getInlineWasmBytes as a, saveIncrementalWithSignaturePreservation as aa, TransparencyFinding as ai, loadWasmModuleStreaming as an, PdfFreeTextAnnotation as ao, optimizeAllImages as ar, setTextRenderingMode as as, professionalPreset as at, BookmarkNode as b, encodeSequence as ba, IncrementalChange as bi, isWebPLossless as bn, verifyUserPassword as bo, initJpegWasm as br, curveTo as bs, DataMatrixOptions as bt, BatchOptions as c, buildTimestampRequest as ca, flattenTransparency as ci, IfdEntry as cn, PdfTextAnnotation as co, OptimizeResult as cr, showText as cs, readBarcode as ct, batchFlatten as d, SignatureOptions as da, PdfAValidationResult as di, decodeTiff as dn, sha384 as do, downscaleImage as dr, showTextNextLine as ds, readEan13 as dt, SignatureByteRange as ea, getToUnicodeCmap as ei, detectRuntime as en, PdfHighlightAnnotation as eo, deduplicateImages as er, setCharacterSpacing as es, TablePreset as et, batchMerge as f, SignerInfo as fa, enforcePdfA as fi, decodeTiffAll as fn, sha512 as fo, estimateJpegQuality as fr, showTextWithSpacing as fs, readEan8 as ft, getPageLabels as g, encodeLength as ga, delinearizePdf as gi, parseTiffIfd as gn, md5 as go, JpegDecodeResult as gr, closeAndStroke as gs, Pdf417Matrix as gt, PageLabelStyle as h, encodeInteger as ha, LinearizationOptions as hi, isTiff as hn, rc4 as ho, ChromaSubsampling as hr, clipEvenOdd as hs, renderStyledBarcode as ht, WasmModuleName as i, parseExistingTrailer as ia, generateSrgbIccProfile as ii, loadWasmModule as in, FreeTextAlignment as io, ProgressInfo as ir, setTextMatrix as is, minimalPreset as it, CombedTextLayoutError as j, generateFreeTextAppearance as ja, getCounterSignatures as ji, getImageFormatName as jn, buildXmpMetadata as jo, StripOptions as jr, rectangle as js, encodeEan8 as jt, flattenFields as k, prepareForSigning as ka, CounterSignatureInfo as ki, ImageFormat as kn, isAccessible as ko, generatePdfAXmp as kr, lineTo as ks, ean8ToOperators as kt, BatchProgressCallback as l, parseTimestampResponse as la, PdfAIssue as li, TiffDecodeOptions as ln, TextAnnotationIcon as lo, RawImageData as lr, showTextArray as ls, readCode128 as lt, PageLabelRange as m, encodeContextTag as ma, LinearizationInfo as mi, getTiffPageCount as mn, aesEncryptCBC as mo, recompressImage as mr, clip as ms, calculateBarcodeDimensions as mt, index_d_exports as n, appendIncrementalUpdate as na, buildOutputIntent as ni, isWasmDisabled as nn, PdfStrikeOutAnnotation as no, ImageOptimizeEntry as nr, setFontSize as ns, applyTablePreset as nt, hasInlineWasmData as o, validateByteRangeIntegrity as oa, TransparencyInfo as oi, provideWasmBytes as on, LinkHighlightMode as oo, DownscaleOptions as or, setTextRise as os, stripedPreset as ot, processBatch as p, buildPkcs7Signature as pa, validatePdfA as pi, decodeTiffPage as pn, aesDecryptCBC as po, optimizeImage as pr, circlePath as ps, StyledBarcodeOptions as pt, ellipsisText as q, StandardStampName as qa, setCertificationLevel as qi, embedIccProfile as qn, drawImageXObject as qo, PdfAProfile as qr, base64Encode as qt, initWasm as r, findExistingSignatures as ra, SRGB_ICC_PROFILE as ri, isWasmModuleCached as rn, PdfUnderlineAnnotation as ro, OptimizationReport as rr, setLeading as rs, borderedPreset as rt, isValidModuleName as s, TimestampResult as sa, detectTransparency as si, resetWasmLoader as sn, PdfLinkAnnotation as so, ImageOptimizeOptions as sr, setWordSpacing as ss, BarcodeReadResult as st, InitWasmOptions as t, TrailerInfo as ta, OutputIntentOptions as ti, instantiateWasmModuleStreaming as tn, PdfSquigglyAnnotation as to, BatchOptimizeOptions as tr, setFont as ts, applyPreset as tt, BatchResult as u, requestTimestamp as ua, PdfALevel as ui, TiffImage as un, sha256 as uo, RecompressOptions as ur, showTextHex as us, readCode39 as ut, setPageLabels as v, encodeOctetString as va, isLinearized as vi, decodeWebP as vn, computeFileEncryptionKey as vo, decodeJpegWasm as vr, closeFillEvenOddAndStroke as vs, encodePdf417 as vt, removeAllBookmarks as w, ByteRangeResult as wa, DssData as wi, embedTiffDirect as wn, PdfUaValidationResult as wo, EnforcePdfAOptions as wr, endPath as ws, calculateUpcCheckDigit as wt, BookmarkRef as x, encodeSet as xa, computeObjectHash as xi, DirectEmbedOptions as xn, PdfUaEnforcementResult as xo, isJpegWasmReady as xr, curveToFinal as xs, DataMatrixResult as xt, AddBookmarkOptions as y, encodePrintableString as ya, linearizePdf as yi, isWebP as yn, verifyOwnerPassword as yo, encodeJpegWasm as yr, closePath as ys, pdf417ToOperators as yt, MissingOnValueCheckError as z, FileAttachmentIcon as za, getFieldLocks as zi, extractJpegMetadata as zn, beginMarkedContent as zo, buildAfArray as zr, isOpenTypeCFF as zs, Code128Options as zt };
6507
+ //# sourceMappingURL=index-xfJP6Ycm.d.cts.map