RedactOptions
RedactOptions
概述
RedactOptions 是 Aspose.PDF FOSS 中用于 TypeScript 的接口。
用于 {@link redactPage} / page.Redact / doc.Redact 的选项。
属性:color, keepAnnotations, region, scrubMetadata。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
region | : Rect | 读取 | 限制 search 到此页面空间矩形 (redactText 仅 — redactPage 采用显式矩形且从不看到此). |
color | : [number, number, number] | 读取 | 将 redaction marker box 的填充颜色设为 0..1 范围内的 [r, g, b](默认黑色)。 |
scrubMetadata | : boolean | 读取 | 当为 true 时,还应清除文档元数据(/Info + XMP)。 |
keepAnnotations | : boolean | 读取 | 保留与已编辑区域重叠的批注,而不是将其移除。 |