@ironsoftware/ironpdf 2026.4.1 → 2026.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/package.json +3 -3
  2. package/src/index.d.ts +3 -0
  3. package/src/index.d.ts.map +1 -1
  4. package/src/index.js +3 -0
  5. package/src/index.js.map +1 -1
  6. package/src/index.ts +3 -0
  7. package/src/internal/IronPdfEngine.ProtoFiles/chrome_render.proto +6 -0
  8. package/src/internal/IronPdfEngine.ProtoFiles/iron_pdf_service.proto +7 -1
  9. package/src/internal/IronPdfEngine.ProtoFiles/pdfium_compress.proto +1 -0
  10. package/src/internal/IronPdfEngine.ProtoFiles/pdfium_form.proto +32 -0
  11. package/src/internal/IronPdfEngine.ProtoFiles/qpdf.proto +51 -0
  12. package/src/internal/access.d.ts.map +1 -1
  13. package/src/internal/access.js +3 -0
  14. package/src/internal/access.js.map +1 -1
  15. package/src/internal/access.ts +4 -0
  16. package/src/internal/generated_proto/iron_pdf_service.d.ts +628 -305
  17. package/src/internal/generated_proto/iron_pdf_service.d.ts.map +1 -1
  18. package/src/internal/generated_proto/iron_pdf_service.ts +628 -305
  19. package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.d.ts +15 -0
  20. package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.d.ts.map +1 -1
  21. package/src/internal/generated_proto/ironpdfengineproto/ChromePdfRenderOptionsP.ts +15 -0
  22. package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts +52 -0
  23. package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.d.ts.map +1 -1
  24. package/src/internal/generated_proto/ironpdfengineproto/IronPdfService.ts +64 -0
  25. package/src/internal/generated_proto/ironpdfengineproto/PdfiumCompressImagesRequestP.d.ts +2 -0
  26. package/src/internal/generated_proto/ironpdfengineproto/PdfiumCompressImagesRequestP.d.ts.map +1 -1
  27. package/src/internal/generated_proto/ironpdfengineproto/PdfiumCompressImagesRequestP.ts +2 -0
  28. package/src/internal/generated_proto/ironpdfengineproto/PdfiumDisableFormFontFallbackRequestP.d.ts +8 -0
  29. package/src/internal/generated_proto/ironpdfengineproto/PdfiumDisableFormFontFallbackRequestP.d.ts.map +1 -0
  30. package/src/internal/generated_proto/ironpdfengineproto/PdfiumDisableFormFontFallbackRequestP.js +4 -0
  31. package/src/internal/generated_proto/ironpdfengineproto/PdfiumDisableFormFontFallbackRequestP.js.map +1 -0
  32. package/src/internal/generated_proto/ironpdfengineproto/PdfiumDisableFormFontFallbackRequestP.ts +11 -0
  33. package/src/internal/generated_proto/ironpdfengineproto/PdfiumDisableFormFontFallbackResultP.d.ts +12 -0
  34. package/src/internal/generated_proto/ironpdfengineproto/PdfiumDisableFormFontFallbackResultP.d.ts.map +1 -0
  35. package/src/internal/generated_proto/ironpdfengineproto/PdfiumDisableFormFontFallbackResultP.js +4 -0
  36. package/src/internal/generated_proto/ironpdfengineproto/PdfiumDisableFormFontFallbackResultP.js.map +1 -0
  37. package/src/internal/generated_proto/ironpdfengineproto/PdfiumDisableFormFontFallbackResultP.ts +15 -0
  38. package/src/internal/generated_proto/ironpdfengineproto/PdfiumSetFormFontRequestStreamP.d.ts +25 -0
  39. package/src/internal/generated_proto/ironpdfengineproto/PdfiumSetFormFontRequestStreamP.d.ts.map +1 -0
  40. package/src/internal/generated_proto/ironpdfengineproto/PdfiumSetFormFontRequestStreamP.js +4 -0
  41. package/src/internal/generated_proto/ironpdfengineproto/PdfiumSetFormFontRequestStreamP.js.map +1 -0
  42. package/src/internal/generated_proto/ironpdfengineproto/PdfiumSetFormFontRequestStreamP.ts +28 -0
  43. package/src/internal/generated_proto/ironpdfengineproto/PdfiumSetFormFontResultP.d.ts +12 -0
  44. package/src/internal/generated_proto/ironpdfengineproto/PdfiumSetFormFontResultP.d.ts.map +1 -0
  45. package/src/internal/generated_proto/ironpdfengineproto/PdfiumSetFormFontResultP.js +4 -0
  46. package/src/internal/generated_proto/ironpdfengineproto/PdfiumSetFormFontResultP.js.map +1 -0
  47. package/src/internal/generated_proto/ironpdfengineproto/PdfiumSetFormFontResultP.ts +15 -0
  48. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressAndSaveAsAdvancedFromBytesRequestStreamP.d.ts +23 -0
  49. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressAndSaveAsAdvancedFromBytesRequestStreamP.d.ts.map +1 -0
  50. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressAndSaveAsAdvancedFromBytesRequestStreamP.js +4 -0
  51. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressAndSaveAsAdvancedFromBytesRequestStreamP.js.map +1 -0
  52. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressAndSaveAsAdvancedFromBytesRequestStreamP.ts +26 -0
  53. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressAndSaveAsAdvancedRequestP.d.ts +15 -0
  54. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressAndSaveAsAdvancedRequestP.d.ts.map +1 -0
  55. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressAndSaveAsAdvancedRequestP.js +4 -0
  56. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressAndSaveAsAdvancedRequestP.js.map +1 -0
  57. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressAndSaveAsAdvancedRequestP.ts +18 -0
  58. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressionFlagsP.d.ts +30 -0
  59. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressionFlagsP.d.ts.map +1 -0
  60. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressionFlagsP.js +4 -0
  61. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressionFlagsP.js.map +1 -0
  62. package/src/internal/generated_proto/ironpdfengineproto/QPdfCompressionFlagsP.ts +33 -0
  63. package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestIdP.d.ts +10 -0
  64. package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestIdP.d.ts.map +1 -0
  65. package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestIdP.js +4 -0
  66. package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestIdP.js.map +1 -0
  67. package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestIdP.ts +13 -0
  68. package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestStreamP.d.ts +18 -0
  69. package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestStreamP.d.ts.map +1 -0
  70. package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestStreamP.js +4 -0
  71. package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestStreamP.js.map +1 -0
  72. package/src/internal/generated_proto/ironpdfengineproto/QPdfLinearizeInMemoryRequestStreamP.ts +21 -0
  73. package/src/internal/grpc_layer/chrome/converter.d.ts +10 -0
  74. package/src/internal/grpc_layer/chrome/converter.d.ts.map +1 -1
  75. package/src/internal/grpc_layer/chrome/converter.js +61 -2
  76. package/src/internal/grpc_layer/chrome/converter.js.map +1 -1
  77. package/src/internal/grpc_layer/chrome/converter.ts +67 -0
  78. package/src/internal/grpc_layer/pdfium/annotations.d.ts +30 -0
  79. package/src/internal/grpc_layer/pdfium/annotations.d.ts.map +1 -0
  80. package/src/internal/grpc_layer/pdfium/annotations.js +161 -0
  81. package/src/internal/grpc_layer/pdfium/annotations.js.map +1 -0
  82. package/src/internal/grpc_layer/pdfium/annotations.ts +190 -0
  83. package/src/internal/grpc_layer/pdfium/bookmarks.d.ts +7 -0
  84. package/src/internal/grpc_layer/pdfium/bookmarks.d.ts.map +1 -0
  85. package/src/internal/grpc_layer/pdfium/bookmarks.js +53 -0
  86. package/src/internal/grpc_layer/pdfium/bookmarks.js.map +1 -0
  87. package/src/internal/grpc_layer/pdfium/bookmarks.ts +50 -0
  88. package/src/internal/grpc_layer/pdfium/compress.d.ts +28 -0
  89. package/src/internal/grpc_layer/pdfium/compress.d.ts.map +1 -1
  90. package/src/internal/grpc_layer/pdfium/compress.js +154 -3
  91. package/src/internal/grpc_layer/pdfium/compress.js.map +1 -1
  92. package/src/internal/grpc_layer/pdfium/compress.ts +191 -1
  93. package/src/internal/grpc_layer/pdfium/form.d.ts +15 -0
  94. package/src/internal/grpc_layer/pdfium/form.d.ts.map +1 -0
  95. package/src/internal/grpc_layer/pdfium/form.js +99 -0
  96. package/src/internal/grpc_layer/pdfium/form.js.map +1 -0
  97. package/src/internal/grpc_layer/pdfium/form.ts +119 -0
  98. package/src/internal/grpc_layer/pdfium/formFontValidator.d.ts +26 -0
  99. package/src/internal/grpc_layer/pdfium/formFontValidator.d.ts.map +1 -0
  100. package/src/internal/grpc_layer/pdfium/formFontValidator.js +81 -0
  101. package/src/internal/grpc_layer/pdfium/formFontValidator.js.map +1 -0
  102. package/src/internal/grpc_layer/pdfium/formFontValidator.ts +86 -0
  103. package/src/internal/grpc_layer/pdfium/linearize.d.ts +48 -0
  104. package/src/internal/grpc_layer/pdfium/linearize.d.ts.map +1 -0
  105. package/src/internal/grpc_layer/pdfium/linearize.js +309 -0
  106. package/src/internal/grpc_layer/pdfium/linearize.js.map +1 -0
  107. package/src/internal/grpc_layer/pdfium/linearize.ts +338 -0
  108. package/src/internal/zod/renderSchema.d.ts.map +1 -1
  109. package/src/internal/zod/renderSchema.js +6 -1
  110. package/src/internal/zod/renderSchema.js.map +1 -1
  111. package/src/internal/zod/renderSchema.ts +6 -1
  112. package/src/public/annotation.d.ts +166 -0
  113. package/src/public/annotation.d.ts.map +1 -0
  114. package/src/public/annotation.js +61 -0
  115. package/src/public/annotation.js.map +1 -0
  116. package/src/public/annotation.ts +166 -0
  117. package/src/public/bookmark.d.ts +25 -0
  118. package/src/public/bookmark.d.ts.map +1 -0
  119. package/src/public/bookmark.js +3 -0
  120. package/src/public/bookmark.js.map +1 -0
  121. package/src/public/bookmark.ts +28 -0
  122. package/src/public/compression.d.ts +92 -0
  123. package/src/public/compression.d.ts.map +1 -0
  124. package/src/public/compression.js +26 -0
  125. package/src/public/compression.js.map +1 -0
  126. package/src/public/compression.ts +107 -0
  127. package/src/public/ironpdfglobalconfig.d.ts +12 -0
  128. package/src/public/ironpdfglobalconfig.d.ts.map +1 -1
  129. package/src/public/ironpdfglobalconfig.js +7 -0
  130. package/src/public/ironpdfglobalconfig.js.map +1 -1
  131. package/src/public/ironpdfglobalconfig.ts +19 -0
  132. package/src/public/pdfDocument.d.ts +234 -1
  133. package/src/public/pdfDocument.d.ts.map +1 -1
  134. package/src/public/pdfDocument.js +489 -17
  135. package/src/public/pdfDocument.js.map +1 -1
  136. package/src/public/pdfDocument.ts +518 -19
  137. package/src/public/render.d.ts +104 -0
  138. package/src/public/render.d.ts.map +1 -1
  139. package/src/public/render.js +35 -1
  140. package/src/public/render.js.map +1 -1
  141. package/src/public/render.ts +101 -0
@@ -2,7 +2,10 @@
2
2
  /// <reference types="node" />
3
3
  /// <reference types="node" />
4
4
  import { Buffer } from "buffer";
5
- import { BarcodeStampOptions, BarcodeType, ChangeTrackingModes, ChromePdfRenderOptions, DigitalSignature, VerifiedSignature, HtmlAffix, HtmlFilePath, HtmlStampOptions, HtmlString, HttpLoginCredentials, ImageBuffer, ImageFilePath, ImageStampOptions, ImageToPdfOptions, ImageType, PageInfo, PageRotation, PdfInput, PdfPageSelection, PdfPaperSize, PdfPassword, PdfPermission, SaveOptions, TextAffix, TextStampOptions } from "./types";
5
+ import { BarcodeStampOptions, BarcodeType, ChangeTrackingModes, ChromePdfRenderOptions, DigitalSignature, VerifiedSignature, HtmlAffix, HtmlFilePath, HtmlStampOptions, HtmlString, HttpLoginCredentials, ImageBuffer, ImageFilePath, ImageStampOptions, ImageToPdfOptions, ImageType, LinearizationMode, PageInfo, PageRotation, PdfInput, PdfPageSelection, PdfPaperSize, PdfPassword, PdfPermission, RenderedElementLocation, SaveOptions, TextAffix, TextStampOptions } from "./types";
6
+ import { AdvancedCompressionOptions } from "./compression";
7
+ import { LinkAnnotation } from "./annotation";
8
+ import { Bookmark } from "./bookmark";
6
9
  import { Readable } from "stream";
7
10
  import { PdfAVersions, PdfUAVersions } from "../internal/grpc_layer/pdfium/pdfa";
8
11
  import { NaturalLanguages } from "./naturalLanguages";
@@ -190,6 +193,193 @@ export declare class PdfDocument {
190
193
  * @param imageQuality Optional JPEG quality (1-100) for image compression. If omitted, default compression is applied.
191
194
  */
192
195
  compressAndSaveAs(filePath: string, imageQuality?: number): Promise<void>;
196
+ /**
197
+ * Apply the advanced compression pipeline and save the result to a file.
198
+ *
199
+ * Combines pdfium-side image DPI downsampling with qpdf-side structural
200
+ * optimization in a single call.
201
+ *
202
+ * @param filePath the file path to save the compressed PDF
203
+ * @param options advanced compression options; pass an empty object `{}` to
204
+ * reproduce the legacy compressAndSaveAs behaviour with no
205
+ * image downsampling
206
+ * @param password the PDF password (empty string if none)
207
+ */
208
+ compressAndSaveAsAdvanced(filePath: string, options: AdvancedCompressionOptions, password?: string): Promise<void>;
209
+ /**
210
+ * Apply the advanced compression pipeline to byte[] input and save the
211
+ * compressed result to a file. Returns the compressed bytes as well.
212
+ */
213
+ static compressAndSaveAsAdvancedFromBytes(pdfBytes: Buffer, filePath: string, options: AdvancedCompressionOptions, password?: string): Promise<Buffer>;
214
+ /**
215
+ * Set the document-wide form font for subsequent form-field fills. When
216
+ * set, the engine skips its automatic Tahoma/Arial fallback embed for
217
+ * non-ASCII form values and registers the supplied font in the AcroForm
218
+ * /DR /Font dictionary so default-appearance strings resolve correctly
219
+ * at render time.
220
+ *
221
+ * File-size impact:
222
+ * - Name-only mode (`fontData` omitted or empty): zero bytes added; the
223
+ * font must already be in the document.
224
+ * - Bytes mode and the font is already embedded with usable glyph data:
225
+ * zero bytes added.
226
+ * - Bytes mode and the font is missing or has no glyph data: the full
227
+ * font is embedded.
228
+ * - Bytes mode with `forceEmbed = true`: a fresh font copy is added
229
+ * alongside any existing copy; the document grows on every call.
230
+ *
231
+ * @param fontName PDF font name to register (e.g. "Poppins-Regular").
232
+ * Allowed characters: letters, digits, `_`, `-`, `.`, `+`.
233
+ * @param fontData Raw TrueType/OpenType bytes; pass `undefined` or an
234
+ * empty Buffer for name-only mode.
235
+ * @param forceEmbed When true, embed `fontData` even if a font with the
236
+ * same name and usable glyph data is already present.
237
+ */
238
+ setFormFont(fontName: string, fontData?: Buffer, forceEmbed?: boolean): Promise<void>;
239
+ /**
240
+ * Load a TrueType/OpenType font from disk and apply it as the
241
+ * document-wide form font. The PDF font name is derived from the file
242
+ * name (without extension) when `fontName` is omitted.
243
+ *
244
+ * @param fontFilePath Path to a TTF/OTF/TTC font file
245
+ * @param fontName Optional PDF font name. When omitted the file name
246
+ * (without extension) is used.
247
+ * @param forceEmbed When true, embed even if the font is already present.
248
+ */
249
+ setFormFontFromFile(fontFilePath: string, fontName?: string, forceEmbed?: boolean): Promise<void>;
250
+ /**
251
+ * Suppress the automatic Tahoma/Arial fallback embed for non-ASCII form
252
+ * values without registering any replacement font. Use when zero
253
+ * file-size growth is required and the template's existing font
254
+ * references are sufficient for the values being filled.
255
+ *
256
+ * Rendering of non-ASCII characters then depends entirely on the
257
+ * viewer's font substitution.
258
+ */
259
+ disableFormFontFallback(): Promise<void>;
260
+ /**
261
+ * Linearize the current PDF document and return the result as a {@link Buffer} (byte array).
262
+ * Produces a web-optimized PDF that can be viewed incrementally in a browser.
263
+ *
264
+ * @param mode Linearization strategy. Defaults to {@link LinearizationMode.Automatic}.
265
+ * @returns A Promise resolving to a Buffer containing the linearized PDF bytes.
266
+ */
267
+ linearizePdfToBytes(mode?: LinearizationMode): Promise<Buffer>;
268
+ /**
269
+ * Linearize the current PDF document and return the result as a {@link Readable} stream.
270
+ * Useful for piping directly to file streams or HTTP responses without buffering the
271
+ * entire PDF in memory.
272
+ *
273
+ * <b>Note:</b> Stream output is only supported with {@link LinearizationMode.InMemory}
274
+ * (or {@link LinearizationMode.Automatic} when memory mode is selected). For
275
+ * {@link LinearizationMode.FileBased} use {@link linearizePdfToBytes} or
276
+ * {@link saveAsLinearized}.
277
+ *
278
+ * @returns A Promise resolving to a Readable stream of the linearized PDF bytes.
279
+ */
280
+ linearizePdfToStream(): Promise<Readable>;
281
+ /**
282
+ * Linearize the current PDF document and save the result to the given output file path.
283
+ *
284
+ * @param outputFilePath The file path to save the linearized PDF.
285
+ * @param mode Linearization strategy. Defaults to {@link LinearizationMode.Automatic}.
286
+ */
287
+ saveAsLinearized(outputFilePath: string, mode?: LinearizationMode): Promise<void>;
288
+ /**
289
+ * Check whether the PDF file at the given path is linearized ("Fast Web View").
290
+ *
291
+ * @param pdfFilePath Path to a PDF file on disk.
292
+ * @param password Optional password for encrypted PDFs.
293
+ * @returns A Promise resolving to true if the file is linearized, false otherwise.
294
+ */
295
+ static isLinearized(pdfFilePath: string, password?: string): Promise<boolean>;
296
+ /**
297
+ * Linearize the given PDF bytes and return the linearized bytes.
298
+ * Static helper for linearizing PDFs without creating a PdfDocument instance.
299
+ *
300
+ * @param pdfBytes Buffer containing the PDF data.
301
+ * @param password Optional password to decrypt the PDF if encrypted.
302
+ * @param mode Linearization strategy. Defaults to {@link LinearizationMode.Automatic}.
303
+ */
304
+ static linearizePdfBytesToBytes(pdfBytes: Buffer, password?: string, mode?: LinearizationMode): Promise<Buffer>;
305
+ /**
306
+ * Linearize the given PDF bytes and save the result to the given output file path.
307
+ * Static helper for linearizing PDFs without creating a PdfDocument instance.
308
+ *
309
+ * @param pdfBytes Buffer containing the PDF data.
310
+ * @param outputFilePath The file path to save the linearized PDF.
311
+ * @param password Optional password to decrypt the PDF if encrypted.
312
+ * @param mode Linearization strategy. Defaults to {@link LinearizationMode.Automatic}.
313
+ */
314
+ static saveAsLinearizedFromBytes(pdfBytes: Buffer, outputFilePath: string, password?: string, mode?: LinearizationMode): Promise<void>;
315
+ /**
316
+ * Retrieves the rendered page locations of HTML elements that were tracked during rendering.
317
+ *
318
+ * To use this feature, set {@link ChromePdfRenderOptions.elementQuerySelectors} with CSS
319
+ * selectors before rendering. After rendering, call this method to retrieve the page index
320
+ * and coordinates of each matched element.
321
+ *
322
+ * Results are cached on first call and reused on subsequent calls. If you modify the
323
+ * document's annotations after rendering, call {@link resetElementLocationCache} to force
324
+ * the cache to be rebuilt on next access.
325
+ *
326
+ * Mirrors {@code IronPdf.PdfDocument.GetElementLocations()} on the C# side.
327
+ *
328
+ * @returns A list of {@link RenderedElementLocation} objects, one per matched element,
329
+ * sorted in document order. Returns an empty list if no element query selectors were
330
+ * configured or no elements matched.
331
+ */
332
+ getElementLocations(): Promise<RenderedElementLocation[]>;
333
+ /**
334
+ * Clears the cached result of {@link getElementLocations}, forcing a fresh scan of the
335
+ * document's annotations on the next call. Call this if you've modified the document's
336
+ * annotations or structure after rendering.
337
+ */
338
+ resetElementLocationCache(): void;
339
+ /**
340
+ * Retrieves all outline bookmarks (table-of-contents entries) in this PDF document.
341
+ *
342
+ * <p>Bookmarks are returned as a flat list with parent linkage via
343
+ * {@link Bookmark.parentItemId}. Roots have an empty {@code parentItemId}.
344
+ * Use {@link Bookmark.hierarchy} for depth information.</p>
345
+ *
346
+ * <p>Auto-bookmarks generated from HTML headings (via
347
+ * {@link ChromePdfRenderOptions.autoBookmarksFromHeadings}) are included.</p>
348
+ *
349
+ * <p>Mirrors {@code IronPdf.PdfDocument.Bookmarks} on the C# side.</p>
350
+ *
351
+ * @returns A list of {@link Bookmark} objects, sorted in document order.
352
+ * Returns an empty list if the document has no bookmarks.
353
+ */
354
+ getBookmarks(): Promise<Bookmark[]>;
355
+ /**
356
+ * Adds a clickable internal hyperlink annotation that navigates to another page within
357
+ * the same PDF document. Useful for building custom tables of contents, cross-references,
358
+ * and in-document navigation.
359
+ *
360
+ * The target page and display options are configured via the {@link LinkAnnotation}
361
+ * fields ({@code destinationPageIndex}, {@code destinationType}, etc.).
362
+ *
363
+ * Mirrors {@code IronPdf.Annotations.LinkAnnotation} on the C# side.
364
+ *
365
+ * @example
366
+ * ```ts
367
+ * await pdf.addLinkAnnotation({
368
+ * pageIndex: 0,
369
+ * destinationPageIndex: 3,
370
+ * x: 72, y: 700,
371
+ * width: 300, height: 18,
372
+ * contents: "Chapter 1",
373
+ * });
374
+ * ```
375
+ */
376
+ addLinkAnnotation(link: LinkAnnotation): Promise<void>;
377
+ /**
378
+ * Retrieves the number of annotations contained on the specified page.
379
+ *
380
+ * @param pageIndex Zero-based page index. The first page has a page index of 0.
381
+ */
382
+ getAnnotationCount(pageIndex: number): Promise<number>;
193
383
  /**
194
384
  * Gets information of all pages in the PdfDocument
195
385
  */
@@ -310,6 +500,16 @@ export declare class PdfDocument {
310
500
  * @param customICC (Optional) Custom color profile file path
311
501
  */
312
502
  convertToPdfA(pdfaVersion?: PdfAVersions, customICC?: string | undefined): Promise<void>;
503
+ /**
504
+ * Render HTML to PDF and convert to PDF/UA format with screen reader support.
505
+ * Produces a proper semantic structure tree (Sect → H1, P, etc.) for accessibility.
506
+ * @param html The HTML string to render
507
+ * @param naturalLanguages Document language for screen readers (default: English)
508
+ * @param options Optional render options
509
+ */
510
+ static fromHtmlAsPdfUA(html: string, naturalLanguages?: NaturalLanguages, options?: {
511
+ renderOptions?: ChromePdfRenderOptions | undefined;
512
+ } | undefined): Promise<PdfDocument>;
313
513
  /**
314
514
  * Convert the current document into the specified PDF/UA standard format
315
515
  */
@@ -606,6 +806,39 @@ export declare class PdfDocument {
606
806
  * @param imageQuality Optional JPEG quality (1-100) for image compression. If omitted, default compression is applied.
607
807
  */
608
808
  private internal_compressAndSaveAs;
809
+ private internal_compressAndSaveAsAdvanced;
810
+ /**
811
+ * Linearize the current PDF document and return the result as a Buffer.
812
+ */
813
+ private internal_linearizePdfToBytes;
814
+ /**
815
+ * Linearize the current PDF document and return the result as a Readable stream.
816
+ * Always uses the in-memory streaming RPC.
817
+ */
818
+ private internal_linearizePdfToStream;
819
+ /**
820
+ * Linearize the current PDF document and save the result to the given output file path.
821
+ */
822
+ private internal_saveAsLinearized;
823
+ /**
824
+ * Prefix used by the engine-side element query JavaScript extension when injecting anchor
825
+ * markers. Must match {@code IronPdf.TableOfContents.ElementQueryJavascriptExtension.ELEMENT_QUERY_PREFIX}
826
+ * on the C# side.
827
+ */
828
+ private static readonly ELEMENT_QUERY_PREFIX;
829
+ /**
830
+ * Cache for {@link getElementLocations}. Built lazily on first call.
831
+ *
832
+ * The underlying element-query anchor annotations are written during rendering and are
833
+ * not expected to be mutated afterwards, so a simple populate-once cache is appropriate.
834
+ * Callers who modify the document's annotations after rendering should call
835
+ * {@link resetElementLocationCache} to force a rebuild.
836
+ */
837
+ private cachedElementLocations;
838
+ private internal_getElementLocations;
839
+ private internal_addLinkAnnotation;
840
+ private internal_getAnnotationCount;
841
+ private internal_getBookmarks;
609
842
  /**
610
843
  * Gets information of all pages in the PdfDocument
611
844
  */
@@ -1 +1 @@
1
- {"version":3,"file":"pdfDocument.d.ts","sourceRoot":"","sources":["pdfDocument.ts"],"names":[],"mappings":";;;AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAC9B,OAAO,EACN,mBAAmB,EACnB,WAAW,EAAE,mBAAmB,EAChC,sBAAsB,EACtB,gBAAgB,EAChB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,gBAAgB,EAChB,YAAY,EACZ,WAAW,EAAE,aAAa,EAC1B,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,MAAM,SAAS,CAAC;AA0CjB,OAAO,EAAC,QAAQ,EAAC,MAAM,QAAQ,CAAC;AAYhC,OAAO,EAAC,YAAY,EAAE,aAAa,EAAkB,MAAM,oCAAoC,CAAC;AAYhG,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD;;;;GAIG;AAC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