@embedpdf/models 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/pdf.d.ts CHANGED
@@ -2301,6 +2301,13 @@ export interface PdfEngine<T = Blob> {
2301
2301
  * @returns task contains the text
2302
2302
  */
2303
2303
  extractText: (doc: PdfDocumentObject, pageIndexes: number[]) => PdfTask<string>;
2304
+ /**
2305
+ * Redact text by run slices
2306
+ * @param doc - pdf document
2307
+ * @param perPage - per page run slices
2308
+ * @returns task contains the result
2309
+ */
2310
+ redactTextInRects: (doc: PdfDocumentObject, page: PdfPageObject, rects: Rect[], recurseForms: boolean, drawBlackBoxes: boolean) => PdfTask<boolean>;
2304
2311
  /**
2305
2312
  * Extract text on specified pdf pages
2306
2313
  * @param doc - pdf document
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embedpdf/models",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "private": false,
5
5
  "description": "Shared type definitions, data models, and utility helpers (geometry, tasks, logging, PDF primitives) that underpin every package in the EmbedPDF ecosystem.",
6
6
  "type": "module",