Table of Contents

Enum PdfAnnotationFlags

Namespace
Syncfusion.Pdf.Interactive
Assembly
Syncfusion.Pdf.Portable.dll

Specifies the enumeration of the annotation flags.

[Flags]
public enum PdfAnnotationFlags

Fields

Default = 0

Default value.

Hidden = 2

Represents hidden annotation flag's key.

Invisible = 1

Represents invisible annotation flag's key.

Locked = 128

Represents locked annotation flag's key.

NoRotate = 16

Represents annotation flag's key with no rotation.

NoView = 32

Represents annotation flag's key with no view.

NoZoom = 8

Represents annotation flag's key with no zooming.

Print = 4

Represents print annotation flag's key.

ReadOnly = 64

Represents read only annotation flag's key.

ToggleNoView = 256

Annotation flag's key with no toggle view.

Examples

//Create a new PDF document.
PdfDocument document = new PdfDocument();
//Create a new page.
PdfPage page = document.Pages.Add();
//Create a new rectangle
RectangleF docLinkAnnotationRectangle = new RectangleF(10, 40, 30, 30);
//Create a new document link annotation.
PdfDocumentLinkAnnotation documentAnnotation = new PdfDocumentLinkAnnotation(docLinkAnnotationRectangle);
//Set the annotation flags to document annotation.
documentAnnotation.AnnotationFlags = PdfAnnotationFlags.NoRotate;
//Add this annotation to a new page.
page.Annotations.Add(documentAnnotation);
//Save the document to disk.
document.Save("Output.pdf");
//close the document
document.Close(true);
'Create a new PDF document.
Dim document As New PdfDocument()
'Create a new page.
Dim page As PdfPage = document.Pages.Add()
'Create a new rectangle
Dim docLinkAnnotationRectangle As New RectangleF(10, 40, 30, 30)
'Create a new document link annotation.
Dim documentAnnotation As New PdfDocumentLinkAnnotation(docLinkAnnotationRectangle)
'Set the annotation flags to document annotation.
documentAnnotation.AnnotationFlags = PdfAnnotationFlags.NoRotate
'Add this annotation to a new page.
page.Annotations.Add(documentAnnotation)
'Save the document to disk.
document.Save("Output.pdf")
'close the document
document.Close(True)