RedactAnnotation
Overview
RedactAnnotation is a class in Aspose.PDF FOSS for TypeScript.
Inherits from: Annotation.
A /Redact annotation (PDF 32000-1 §12.5.6.23): a mark over a region, plus the overlay to paint when it is applied.
This class declares 2 methods for RedactAnnotation objects in TypeScript programs.
Available methods include: Flatten, constructor.
All public members are accessible to any TypeScript application after installing the Aspose.PDF FOSS for TypeScript package.
Properties: Alignment, Author, Color, Contents, Flags, FontSize, and 14 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
QuadPoints | number[] | Read/Write | Gets the quad points. |
InteriorColor | [number, number, number] | undefined | Read/Write | Gets the interior color. |
Alignment | 'left' | 'center' | 'right' | Read/Write | Gets the alignment. |
OverlayText | string | undefined | Read/Write | Gets the overlay text. |
Repeat | boolean | Read/Write | Gets the repeat. |
FontSize | number | Read/Write | Gets the font size. |
TextColor | [number, number, number] | Read/Write | Gets the text color. |
Author | string | undefined | Read/Write | Gets the author. |
Overlay | PdfStream | undefined | Read | Gets the overlay. |
Subtype | string | Read | Gets the subtype. |
Rect | [number, number, number, number] | undefined | Read/Write | Gets the rect. |
Color | [number, number, number] | undefined | Read/Write | Gets the color. |
Contents | string | undefined | Read/Write | Gets the contents. |
Name | string | undefined | Read/Write | Gets the name. |
Layer | Layer | undefined | Read/Write | Gets the layer. |
ModDate | Date | string | undefined | Read/Write | Gets the mod date. |
Flags | number | Read/Write | Gets the flags. |
Print | boolean | Read/Write | Gets the print. |
Hidden | boolean | Read/Write | Gets the hidden. |
Opacity | number | undefined | Read/Write | Gets the opacity. |
Methods
| Signature | Description |
|---|---|
constructor(doc: Document, Dict: PdfDict) | Calls constructor(doc, Dict) on this RedactAnnotation instance. |
Flatten() → boolean | Bake just this annotation into static page content: draw its /AP /N appearance into the page’s /Contents at its /Rect and drop it from /Annots. |