Skip to content

# PDFAnnotationAppearance

Namespace: O2S.Components.PDF4NET.Annotations

Defines how an annotation is presented visually on the page.

    public class PDFAnnotationAppearance : O2S.Components.PDF4NET.Graphics.PDFFormXObject

Inheritance Object → PDFContentStreamContainer → PDFFormXObject → PDFAnnotationAppearance

## Constructors

### PDFAnnotationAppearance(Double, Double)

Initializes a new PDFAnnotationAppearance object.

    public PDFAnnotationAppearance(double width, double height)

Parameters

`width` Double
The width of the annotation appearance.

`height` Double
The height of the annotation appearance.

## Properties

### Canvas

Gets the form XObject graphics.

    public PDFCanvas Canvas { get; }

Property Value

PDFCanvas
The form XObject graphics surface.

### CosDictionary

Gets the COS dictionary asssociated with this object.

    public PDFCosDictionary CosDictionary { get; }

Property Value

PDFCosDictionary
The internal COS dictionary.

Remarks

Incorrect manipulation of the information in the COS dictionary can lead to invalid PDF files.

### Height

Gets the form XObject height.

    public double Height { get; }

Property Value

Double
The form XObject height in points.

### Matrix

Gets or sets the form XObject matrix.

    public PDFMatrix Matrix { get; set; }

Property Value

PDFMatrix
The matrix applied to form XObject content before it is rendered.

### Measure

Gets or sets the image measure.

    public PDFMeasure Measure { get; set; }

Property Value

PDFMeasure
A PDFMeasure descendant object that specifies the scale and units which shall apply to the image.

### PointData

Gets or sets the point data.

    public PDFPointData PointData { get; set; }

Property Value

PDFPointData
A PDFPointData object that specifies the extended geospatial data that shall apply to the image.

### StructureElement

Gets or sets the structure element that represents this form XObject.

    public PDFStructureElement StructureElement { get; set; }

Property Value

PDFStructureElement
A PDFStructureElement object representing this form XObject.

### TransparencyGroup

Gets or sets the transparency group associated with this object.

    public PDFGroupXObject TransparencyGroup { get; set; }

Property Value

PDFGroupXObject
The transparency group associated with this object.

### Width

Gets the form XObject width.

    public double Width { get; }

Property Value

Double
The form XObject width in points.