Skip to content
Merged

4.0 #267

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
b3b01d6
chore(docs): applyRedaction()
tony-xlh Mar 9, 2026
a1ef91d
Create redaction.md
tony-xlh Mar 9, 2026
c5918c9
add redaction to annotation types list for all annotation class pages
tony-xlh Mar 9, 2026
4028831
Create redactionannotationoptions.md
tony-xlh Mar 9, 2026
6c68054
add redaction annotation to flags.md
tony-xlh Mar 9, 2026
179be05
mention redaction in createAnnotation()
tony-xlh Mar 9, 2026
6fe3acb
mention redaction in annotation index
tony-xlh Mar 9, 2026
b394963
update comment about repeatText
tony-xlh Mar 12, 2026
09d8fe1
add redaction style interface
tony-xlh Mar 12, 2026
9514928
update annotation interface index
tony-xlh Mar 12, 2026
1347b97
add redaction interfaces in side list
tony-xlh Mar 12, 2026
8651d0f
add descriptions to annotation elements and add redaction elements
tony-xlh Mar 12, 2026
f3c84aa
mention RedactionStyle in AnnotationDrawingStyleConfig
tony-xlh Mar 12, 2026
6ba4e73
add PrintPreparationInfo
tony-xlh Mar 12, 2026
4531d3e
add redactionApplyButton in ToolbarConfig
tony-xlh Mar 12, 2026
42ece3f
add redaction to ToolMode
tony-xlh Mar 12, 2026
be3365f
fix the description of RedactionMode element
tony-xlh Mar 12, 2026
a8670dd
add error messages
tony-xlh Mar 12, 2026
1e5270c
add v3.2.1 collection
tony-xlh Mar 12, 2026
142ebd0
add v3.2.1 in config.yml
tony-xlh Mar 12, 2026
705b223
update api/index.md
tony-xlh Mar 12, 2026
c7b9de4
remove permalinks in v3.2.1
tony-xlh Mar 12, 2026
0065cb3
Merge branch 'preview' into v4.0
tony-xlh Mar 16, 2026
2c0eb13
update convert mode
tony-xlh Mar 20, 2026
a9c3721
add redaction in annotation management
tony-xlh Mar 20, 2026
df63d17
fix redaction creation code
tony-xlh Mar 20, 2026
4353472
4.0 release note
tony-xlh Mar 20, 2026
c212a64
add link to redaction annotation's guide in release note
tony-xlh Mar 20, 2026
48f2739
Merge pull request #266 from dynamsoft-docs/v4.0
tony-xlh Mar 20, 2026
941ee40
fix code in RedactionAnnotationOptions
tony-xlh Mar 20, 2026
aebd347
update infoobject
tony-xlh Mar 23, 2026
62d10d4
Update infoobject.md
tony-xlh Mar 23, 2026
c2bea56
update release notes
tony-xlh Mar 23, 2026
1e74549
update release notes about 3rd party libraries
tony-xlh Apr 10, 2026
39db425
update v3.2.1
tony-xlh Apr 10, 2026
ef6049f
include sidelist-apis-v3.2.1.html
tony-xlh Apr 10, 2026
ed32bc3
add redaction to noMove = true list
tony-xlh Apr 16, 2026
c3ed779
list error -80328 for methods
tony-xlh Apr 16, 2026
559c35f
add description for redaction toolmode
tony-xlh Apr 16, 2026
550989e
fix link to redaction style in annotationdrawingstyleconfig
tony-xlh Apr 16, 2026
e24dd6d
add redaction-related tooltip
tony-xlh Apr 16, 2026
fea70d2
add redaction-related display text
tony-xlh Apr 16, 2026
8bebbd5
add -80326 to exception for annotation's updateOptions
tony-xlh Apr 16, 2026
66536bb
specify text-type for Redaction in noMove flag
tony-xlh Apr 16, 2026
aa4b156
add missing redaction elements in DisplayTextConfig
tony-xlh Apr 17, 2026
cdc3c1b
fix redaction link in index
tony-xlh Apr 20, 2026
72ac260
update release date
tony-xlh Apr 20, 2026
459207b
update introduction about redaction
tony-xlh Apr 20, 2026
442d173
fix wrong position of redaction in introduction
tony-xlh Apr 20, 2026
21b3595
add newly updated v3.2.1 files
tony-xlh Apr 21, 2026
646a4b4
use reordered version of sidelist-apis-v3.2.1.html
tony-xlh Apr 21, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ collections:
v2.1:
output: true
permalink: /:path-:collection:output_ext
v3.2.1:
output: true
permalink: /:path-:collection:output_ext

defaults:
- scope:
Expand Down
1 change: 1 addition & 0 deletions _data/full_tree.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ tree_file_list:
- sidelist-apis-v1.0.0.html
- sidelist-apis-v1.1.html
- sidelist-apis-v2.1.html
- sidelist-apis-v3.2.1.html

3 changes: 2 additions & 1 deletion _data/product_version.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
useGroupedVersion: true

version_info_list:
- value: latest version (3.2.1)
- value: latest version (4.0)
- value: 3.2.1
- value: 2.1
- value: 1.1

Expand Down
178 changes: 178 additions & 0 deletions _includes/sidelist-apis-v3.2.1.html

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions _includes/sidelist-apis.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<li><a href="{{ site.api }}class/annotation/index.html" class="otherLinkColour">Annotation</a>
<ul>
<li><a href="{{ site.api }}class/annotation/rectangle.html" class="otherLinkColour">Rectangle</a></li>
<li><a href="{{ site.api }}class/annotation/redaction.html" class="otherLinkColour">Redaction</a></li>
<li><a href="{{ site.api }}class/annotation/ellipse.html" class="otherLinkColour">Ellipse</a></li>
<li><a href="{{ site.api }}class/annotation/polygon.html" class="otherLinkColour">Polygon</a></li>
<li><a href="{{ site.api }}class/annotation/polyline.html" class="otherLinkColour">Polyline</a></li>
Expand Down Expand Up @@ -75,6 +76,7 @@
<li><a href="{{ site.api }}interface/annotationinterface/index.html" class="otherLinkColour">Annotation Interfaces</a>
<ul>
<li><a href="{{ site.api }}interface/annotationinterface/rectannotationoptions.html" class="otherLinkColour">RectAnnotationOptions</a></li>
<li><a href="{{ site.api }}interface/annotationinterface/redactionannotationoptions.html" class="otherLinkColour">RedactionAnnotationOptions</a></li>
<li><a href="{{ site.api }}interface/annotationinterface/ellipseannotationoptions.html" class="otherLinkColour">EllipseAnnotationOptions</a></li>
<li><a href="{{ site.api }}interface/annotationinterface/polygonannotationoptions.html" class="otherLinkColour">PolygonAnnotationOptions</a></li>
<li><a href="{{ site.api }}interface/annotationinterface/polylineannotationoptions.html" class="otherLinkColour">PolylineAnnotationOptions</a></li>
Expand All @@ -90,6 +92,7 @@
<li><a href="{{ site.api }}interface/annotationinterface/point.html" class="otherLinkColour">Point</a></li>
<li><a href="{{ site.api }}interface/annotationinterface/textcontent.html" class="otherLinkColour">TextContent</a></li>
<li><a href="{{ site.api }}interface/annotationinterface/rectanglestyle.html" class="otherLinkColour">RectangleStyle</a></li>
<li><a href="{{ site.api }}interface/annotationinterface/redactionstyle.html" class="otherLinkColour">RedactionStyle</a></li>
<li><a href="{{ site.api }}interface/annotationinterface/ellipsestyle.html" class="otherLinkColour">EllipseStyle</a></li>
<li><a href="{{ site.api }}interface/annotationinterface/polygonstyle.html" class="otherLinkColour">PolygonStyle</a></li>
<li><a href="{{ site.api }}interface/annotationinterface/polylinestyle.html" class="otherLinkColour">PolylineStyle</a></li>
Expand Down
209 changes: 209 additions & 0 deletions _v3.2.1/api/class/annotation/ellipse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,209 @@
---
layout: default-layout
needAutoGenerateSidebar: true
needGenerateH3Content: true
noTitleIndex: true
title: Dynamsoft Document Viewer API Reference - Ellipse Class
keywords: Documentation, Dynamsoft Document Viewer, API Reference, Ellipse Class
breadcrumbText: Ellipse Class
description: Dynamsoft Document Viewer Documentation API Reference Ellipse Class Page

---

# Ellipse Class


## API Index

| API Name | Description |
| --------------------------------------- | ------------------------------------------------------------------------------------------- |
| [`uid`](#uid) | Return the uid of the annotation. |
| [`pageUid`](#pageuid) | Return the uid of the page where the annotation is located. |
| [`source`](#source) | Return the source of the annotation. |
| [`type`](#type) | Return the type of the annotation |
| [`creationDate`](#creationdate) | Return the creation date of the annotation. |
| [`flattened`](#flattened) | Flattens the annotation onto the image layer, or inspect if the annotation is flattened. |
| [`modificationDate`](#modificationdate) | Return the modification date of the annotation. |
| [`getOptions()`](#getoptions) | Get the annotation options. |
| [`updateOptions()`](#updateoptions) | Update the annotation options. |

## uid

Return the uid of the annotation.

**Syntax**

```typescript
readonly uid: string;
```

{% comment %}
**Remark**

- It will return `''`, if the annotation is deleted.
{% endcomment %}

## pageUid

Return the uid of the page where the annotation is located.

**Syntax**

```typescript
readonly pageUid: string;
```

**Remark**

- It will return `''`, if the annotation is deleted.

{% comment %}
## aabb

Return Axis-aligned bounding box of the annotation.

**Syntax**

```typescript
readonly aabb: Rect;
```

**Remark**

![AABB-Ellipse](/assets/imgs/aabbellipse.png)

{% endcomment %}

## source

Return the source of the annotation. Possible values:

* user: the annotation is created by the user's action
* file: the annotation is created from a PDF file
* api: the annotation is created with code

**Remark**

It will return `''`, if the annotation is deleted.

## type

Return the type of the annotation: `ellipse`.

All annotation types:

```ts
"rectangle" | "ellipse" | "line" | "polygon" | "polyline" | "ink" | "textBox" | "textTypewriter" | "stamp" | "highlight" | "underline" | "strikeout" | "incomplete" | "unknown"
```

## creationDate

Return the creation date of the annotation.

**Syntax**

```typescript
readonly creationDate: string;
```

**Remark**

- The string would be `D:YYYYMMDDHHmmSSOHH'mm'`, like `D:20230101085959-08'00'`.

{% comment %}
- It will return `''`, if the annotation is deleted.
{% endcomment %}

## flattened

Flattens the annotation onto the image layer, or inspect if the annotation is flattened.

**Syntax**

```typescript
flattened: boolean; //Default value is `false`.
```

**Remark**

Flattened annotations move below all unflattened annotations on the page, and are stacked amongst themselves accordingly.

Flattened annotations become part of the page layer upon file export and cease to be annotations.

## modificationDate

Return the modification date of the annotation.

**Syntax**

```typescript
readonly modificationDate: string;
```

**Remark**

- The string would be `D:YYYYMMDDHHmmSSOHH'mm'`, like `D:20230101085959-08'00'`.
- It will return `''`, if the annotation is deleted.
- If the annotation is created but not be modified after adding, it equals to [`creationDate`](#creationdate).

## getOptions()

Get the annotation options.

**Syntax**

```typescript
getOptions(): EllipseAnnotationOptions;
```

**Return value**

The object of ellipse annotation options. Please refer to [`EllipseAnnotationOptions`]({{ site.api }}interface/annotationinterface/ellipseannotationoptions.html).

**Code Snippet**

```typescript
// Given that editViewer is an existing instance of EditViewer and a document is currently open.
const pageUid = editViewer.indexToUid(0);
const ellipse = Dynamsoft.DDV.annotationManager.createAnnotation(pageUid, "ellipse"); // Create a default Ellipse annotation instance.
const ellipseOptions = ellipse.getOptions();
```

## updateOptions()

Update the annotation options.

**Syntax**

```typescript
updateOptions(ellipseAnnotationOptions: EllipseAnnotationOptions): boolean;
```

**Parameters**

`ellipseAnnotationOptions`: The new ellipse annotation options. Please refer to [`EllipseAnnotationOptions`]({{ site.api }}interface/annotationinterface/ellipseannotationoptions.html).

**Return value**

`true`: Successfully.

`false`: Failed.

**Code Snippet**

```typescript
// Given that editViewer is an existing instance of EditViewer and a document is currently open.
const pageUid = editViewer.indexToUid(0);
const ellipse = Dynamsoft.DDV.annotationManager.createAnnotation(pageUid, "ellipse"); // Create a default Ellipse annotation instance.
const ellipseOptions = {
background: "red",
};
ellipse.updateOptions(ellipseOptions); // Update the background of the ellipse to red.
```

**Warning**

Error Code | Error Message | API Return Value
--------|-----------------------------------------------------|----------------------
-80100 | *XXX(API)*: *XXX(ParameterName)* is invalid. | `false`
-80102 | *XXX(API)*: *XXX(ParameterName)* is missing. | `false`
Loading
Loading