Class PdfAnnotationFlags
Specifies the enumeration of the annotation flags.
Inheritance
System.Object
PdfAnnotationFlags
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
public sealed class PdfAnnotationFlags : Enum
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)
Fields
Default
Default value.
Declaration
public const PdfAnnotationFlags Default
Field Value
Type |
---|
PdfAnnotationFlags |
Hidden
Represents hidden annotation flag's key.
Declaration
public const PdfAnnotationFlags Hidden
Field Value
Type |
---|
PdfAnnotationFlags |
Invisible
Represents invisible annotation flag's key.
Declaration
public const PdfAnnotationFlags Invisible
Field Value
Type |
---|
PdfAnnotationFlags |
Locked
Represents locked annotation flag's key.
Declaration
public const PdfAnnotationFlags Locked
Field Value
Type |
---|
PdfAnnotationFlags |
NoRotate
Represents annotation flag's key with no rotation.
Declaration
public const PdfAnnotationFlags NoRotate
Field Value
Type |
---|
PdfAnnotationFlags |
NoView
Represents annotation flag's key with no view.
Declaration
public const PdfAnnotationFlags NoView
Field Value
Type |
---|
PdfAnnotationFlags |
NoZoom
Represents annotation flag's key with no zooming.
Declaration
public const PdfAnnotationFlags NoZoom
Field Value
Type |
---|
PdfAnnotationFlags |
Represents print annotation flag's key.
Declaration
public const PdfAnnotationFlags Print
Field Value
Type |
---|
PdfAnnotationFlags |
ReadOnly
Represents read only annotation flag's key.
Declaration
public const PdfAnnotationFlags ReadOnly
Field Value
Type |
---|
PdfAnnotationFlags |
ToggleNoView
Annotation flag's key with no toggle view.
Declaration
public const PdfAnnotationFlags ToggleNoView
Field Value
Type |
---|
PdfAnnotationFlags |