Skip to main content
Version: Version 5

Class: EllipseAnnotation

Experimental

An ellipse drawing annotation

Extends

Constructors

Constructor

new EllipseAnnotation(options): EllipseAnnotation

Experimental

Creates a new EllipseAnnotation instance.

Parameters

options

EllipseAnnotationOptions

Options used to initialize annotation.

Returns

EllipseAnnotation

Overrides

ShapeAnnotation.constructor

Properties

stroke

stroke: Stroke

Experimental

Inherited from

ShapeAnnotation.stroke

Accessors

author

Get Signature

get author(): string

Experimental

The author.

Returns

string

Set Signature

set author(author): void

Experimental

Parameters
author

string

Returns

void

Inherited from

ShapeAnnotation.author


blendMode

Get Signature

get blendMode(): BlendMode

Experimental

blend mode

Returns

BlendMode

Set Signature

set blendMode(blendMode): void

Experimental

Parameters
blendMode

BlendMode

Returns

void

Inherited from

ShapeAnnotation.blendMode


borderEffect

Get Signature

get borderEffect(): BorderEffect

Experimental

Gets the border effect of the ellipse annotation.

Returns

BorderEffect

Set Signature

set borderEffect(value): void

Experimental

Sets the border effect of the ellipse annotation.

Parameters
value

BorderEffect

Returns

void


borderIntensity

Get Signature

get borderIntensity(): number

Experimental

Gets the border intensity of the ellipse annotation.

Returns

number

Set Signature

set borderIntensity(value): void

Experimental

Sets the border intensity of the ellipse annotation.

Parameters
value

number

Returns

void


boundingBox

Get Signature

get boundingBox(): Rectangle<PdfPoint>

Experimental

Represents the bounding box of the annotation, which defines its position and size on the page. The bounding box is specified as a Rectangle of PdfPoint coordinates.

Returns

Rectangle<PdfPoint>

Set Signature

set boundingBox(rectangle): void

Experimental

Parameters
rectangle

Rectangle<PdfPoint>

Returns

void

Inherited from

ShapeAnnotation.boundingBox


content

Get Signature

get content(): string

Experimental

Text that shall be displayed for the annotation or, if this type of annotation does not display text, an alternative description of the annotation’s contents in human-readable form.

Returns

string

Set Signature

set content(content): void

Experimental

Parameters
content

string

Returns

void

Inherited from

ShapeAnnotation.content


creationDate

Get Signature

get creationDate(): Date

Experimental

The date and time when the annotation was created.

This property retrieves the creation date from the annotation and converts it to a JavaScript Date object.

Returns

Date

The creation date as a JavaScript Date object, or null if no creation date is available in the annotation.

Inherited from

ShapeAnnotation.creationDate


dateModified

Get Signature

get dateModified(): Date

Experimental

The date and time when the annotation was most recently modified.

Returns

Date

Set Signature

set dateModified(date): void

Experimental

Parameters
date

Date

Returns

void

Inherited from

ShapeAnnotation.dateModified


fillColor

Get Signature

get fillColor(): RgbColor

Experimental

Gets the fill color of the ellipse annotation.

Returns

RgbColor

Set Signature

set fillColor(value): void

Experimental

Sets the fill color of the ellipse annotation.

Parameters
value

RgbColor

Returns

void


hasChanges

Get Signature

get hasChanges(): boolean

Experimental

Indicates if the annotation has been changed since the document was opened

Returns

boolean

Inherited from

ShapeAnnotation.hasChanges


hidden

Get Signature

get hidden(): boolean

Experimental

If set to true, the annotation will not be displayed or printed, and it will not allow interaction with the user.

Returns

boolean

Set Signature

set hidden(hidden): void

Experimental

Parameters
hidden

boolean

Returns

void

Inherited from

ShapeAnnotation.hidden


id

Get Signature

get id(): void

Experimental

A unique identifier for the annotation.

Returns

void

Inherited from

ShapeAnnotation.id


interactive

Get Signature

get interactive(): boolean

Experimental

Specifies whether the annotation allows user interaction.

Returns

boolean

Set Signature

set interactive(interactive): void

Experimental

Parameters
interactive

boolean

Returns

void

Inherited from

ShapeAnnotation.interactive


isAdded

Get Signature

get isAdded(): boolean

Experimental

Indicates whether the annotation was added to a page

Returns

boolean

Inherited from

ShapeAnnotation.isAdded


isMaintainingAspectRatio

Get Signature

get isMaintainingAspectRatio(): boolean

Experimental

Pdf.Annotations.Annotation.isMaintainingAspectRatio

Returns

boolean

Inherited from

ShapeAnnotation.isMaintainingAspectRatio


isMarkupAnnotation

Get Signature

get isMarkupAnnotation(): boolean

Experimental

Pdf.Annotations.Annotation.isMarkupAnnotation

Returns

boolean

Inherited from

ShapeAnnotation.isMarkupAnnotation


isModified

Get Signature

get isModified(): boolean

Experimental

Indicates if the annotation has changes that have not yet been saved to the document

Returns

boolean

Inherited from

ShapeAnnotation.isModified


isMoveable

Get Signature

get isMoveable(): boolean

Experimental

Pdf.Annotations.Annotation.isMoveable

Returns

boolean

Inherited from

ShapeAnnotation.isMoveable


isResizable

Get Signature

get isResizable(): boolean

Experimental

Pdf.Annotations.Annotation.isResizable

Returns

boolean

Inherited from

ShapeAnnotation.isResizable


isRotatable

Get Signature

get isRotatable(): boolean

Experimental

Pdf.Annotations.Annotation.isRotatable

Returns

boolean

Inherited from

ShapeAnnotation.isRotatable


isSelectable

Get Signature

get isSelectable(): boolean

Experimental

Pdf.Annotations.Annotation.isSelectable

Returns

boolean

Inherited from

ShapeAnnotation.isSelectable


isWidgetAnnotation

Get Signature

get isWidgetAnnotation(): boolean

Experimental

Pdf.Annotations.Annotation.isWidgetAnnotation

Returns

boolean

Inherited from

ShapeAnnotation.isWidgetAnnotation


lineColor

Get Signature

get lineColor(): RgbColor

Experimental

Gets the line color of the ellipse annotation.

Returns

RgbColor

Set Signature

set lineColor(value): void

Experimental

Sets the line color of the ellipse annotation.

Parameters
value

RgbColor

Returns

void


lineWidth

Get Signature

get lineWidth(): number

Experimental

Gets the line width of the ellipse annotation.

Returns

number

Set Signature

set lineWidth(value): void

Experimental

Sets the line width of the ellipse annotation.

Parameters
value

number

Returns

void


locked

Get Signature

get locked(): AnnotationLockedState

Experimental

Represents the locked state of the annotation.

Returns

AnnotationLockedState

Set Signature

set locked(locked): void

Experimental

Parameters
locked

AnnotationLockedState

Returns

void

Inherited from

ShapeAnnotation.locked


modificationDate

Get Signature

get modificationDate(): Date

Experimental

The date and time when the annotation was last modified.

This property will retrieve the modification date from the annotation and convert it to a JavaScript Date object.

Returns

Date

The modification date as a JavaScript Date object, or null if no modification date is available in the annotation.

Inherited from

ShapeAnnotation.modificationDate


opacity

Get Signature

get opacity(): number

Experimental

Gets the annotation opacity.

Returns

number

Set Signature

set opacity(o): void

Experimental

Sets the annotation opacity.

Parameters
o

number

Returns

void

Inherited from

ShapeAnnotation.opacity


page

Get Signature

get page(): Page

Experimental

Page in which the annotation is embedded.

Returns

Page

Set Signature

set page(page): void

Experimental

Set the page in which the annotation is embedded.

Parameters
page

Page

The page to set as the annotation’s page.

Returns

void

Inherited from

ShapeAnnotation.page


pageNumber

Get Signature

get pageNumber(): number

Experimental

Number of the page in which the annotation is embedded.

Returns

number

Inherited from

ShapeAnnotation.pageNumber


privateData

Get Signature

get privateData(): object

Experimental

Custom data to be stored with the annotation

Returns

object

Set Signature

set privateData(privateData): void

Experimental

Parameters
privateData

object

Returns

void

Inherited from

ShapeAnnotation.privateData


renderProperties

Get Signature

get renderProperties(): AnnotationRenderProperties

Experimental

Object which encapsulates the rendering properties of a PDF annotation, providing a set of flags that control its visibility, interactivity, and other rendering behaviors.

Returns

AnnotationRenderProperties

Set Signature

set renderProperties(v): void

Experimental

Parameters
v

AnnotationRenderProperties

Returns

void

Inherited from

ShapeAnnotation.renderProperties


source

Get Signature

get source(): void

Experimental

Tag that identifies the source the annotation is coming from, if the source is an input PDF or an input FDF. Newly created annotations always return null.

Returns

void

Inherited from

ShapeAnnotation.source


subject

Get Signature

get subject(): string

Experimental

The subject.

Returns

string

Set Signature

set subject(subject): void

Experimental

Parameters
subject

string

Returns

void

Inherited from

ShapeAnnotation.subject


type

Get Signature

get type(): AnnotationType

Experimental

Pdf.Annotations.Annotation.type

Returns

AnnotationType

Overrides

ShapeAnnotation.type

Methods

dispose()

dispose(): void

Experimental

Disposes of the object, releasing any resources it holds.

The dispose method is responsible for performing cleanup operations and releasing any resources acquired by the object. Once an object is disposed, it should not be used, and attempts to do so may result in undefined behavior.

Returns

void

Inherited from

ShapeAnnotation.dispose