CaretAnnotation

Overview

CaretAnnotation is a class in Aspose.PDF FOSS for TypeScript. Inherits from: Annotation.

A /Caret annotation (PDF 32000-1 §12.5.6.11): a text-insertion mark, drawn as a wedge at the point where text should be added, optionally with a paragraph sign.

This class declares 2 methods for CaretAnnotation 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: Author, Color, Contents, Flags, Hidden, Layer, and 7 more.

Properties

NameTypeAccessDescription
Symbol'none' | 'paragraph'Read/WriteGets the symbol.
Authorstring | undefinedRead/WriteGets the author.
SubtypestringReadGets the subtype.
Rect[number, number, number, number] | undefinedRead/WriteGets the rect.
Color[number, number, number] | undefinedRead/WriteGets the color.
Contentsstring | undefinedRead/WriteGets the contents.
Namestring | undefinedRead/WriteGets the name.
LayerLayer | undefinedRead/WriteGets the layer.
ModDateDate | string | undefinedRead/WriteGets the mod date.
FlagsnumberRead/WriteGets the flags.
PrintbooleanRead/WriteGets the print.
HiddenbooleanRead/WriteGets the hidden.
Opacitynumber | undefinedRead/WriteGets the opacity.

Methods

SignatureDescription
constructor(doc: Document, Dict: PdfDict)Calls constructor(doc, Dict) on this CaretAnnotation instance.
Flatten()booleanBake 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.