MarkupAnnotation

Overview

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

A text-markup annotation (/Highlight, /Underline, /StrikeOut, /Squiggly) positioned by /QuadPoints (8 numbers per marked quad).

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

Properties

NameTypeAccessDescription
MarkupTypeMarkupTypeReadGets the markup type.
QuadPointsnumber[]Read/WriteGets the quad points.
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 MarkupAnnotation 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.