---
layout: default-layout
needAutoGenerateSidebar: true
needGenerateH3Content: true
noTitleIndex: true
title: Dynamsoft Document Viewer API Reference - Interface Flags
keywords: Documentation, Dynamsoft Document Viewer, API Reference, Interface Flags
breadcrumbText: Interface Flags
description: Dynamsoft Document Viewer Documentation API Reference Interface Flags Page
permalink: /api/interface/annotationinterface/flags.html
---

# Flags

## Syntax

```typescript
interface Flags {
    print?: boolean;
    noMove?: boolean;
    noView?: boolean;
    noResize?: boolean;
    noRotate?: boolean;
    readOnly?: boolean;
}
```

## Attributes

### print

<!--To print the annotation when printing the page, default value: `true`.-->
Indicates whether the annotation is printable. Default value: `true`. Only printable annotations will be included when the page is printed.

### noMove

Prevents users from moving annotations.

Default value: `false`

Note: 

For the following annotations, it is not effective and the default value is `true`.

* [`Highlight`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/highlight.md)
* [`Strikeout`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/strikeout.md)
* [`Underline`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/underline.md)
* [`Redaction`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/redaction.md) (text-type)

### noView

Not to display the annotation or allow a user to interact with the annotation.

Default value: `false`

### noResize

Prevents users from resizing annotations.

Default value: `false`.

Note: 

For [`TextTypeWriter`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/texttypewriter.md), it is not effective and the default value is `true`.

### noRotate

Prevents users from rotating annotations.

Default value: `false`

Note: 

For the following annotations, it is not effective and the default value is `true`.

* [`TextTypeWriter`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/texttypewriter.md)
* [`Polyline`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/polyline.md)
* [`Polygon`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/polygon.md)
* [`Line`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/line.md)
* [`Highlight`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/highlight.md)
* [`Strikeout`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/strikeout.md)
* [`Underline`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/underline.md)
* [`Redaction`](https://www.dynamsoft.com/document-viewer/docs/api/class/annotation/redaction.md)


### readOnly

Not to allow a user to interact with the annotation, default value: `false`.

## Related

- [`RectAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/rectannotationoptions.md)
- [`EllipseAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/ellipseannotationoptions.md)
- [`PolygonAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/polygonannotationoptions.md)
- [`PolylineAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/polylineannotationoptions.md)
- [`LineAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/lineannotationoptions.md)
- [`InkAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/inkannotationoptions.md)
- [`TextBoxAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/textboxannotationoptions.md)
- [`TextTypewriterAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/texttypewriterannotationoptions.md)
- [`StampAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/stampannotationoptions.md)
- [`HighlightAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/highlightannotationoptions.md)
- [`UnderlineAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/underlineannotationoptions.md)
- [`StrikeoutAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/strikeoutannotationoptions.md)
- [`RedactionAnnotationOptions`](https://www.dynamsoft.com/document-viewer/docs/api/interface/annotationinterface/redactionannotationoptions.md)
