Enum PdfAnnotationFlags
Specifies the enumeration of the annotation flags.
Namespace: Syncfusion.Pdf.Interactive
Assembly: Syncfusion.Pdf.Base.dll
Syntax
[Flags]
public enum PdfAnnotationFlags
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
Name | Description |
---|---|
Default | Default value. |
Hidden | Represents hidden annotation flag's key. |
Invisible | Represents invisible annotation flag's key. |
Locked | Represents locked annotation flag's key. |
NoRotate | Represents annotation flag's key with no rotation. |
NoView | Represents annotation flag's key with no view. |
NoZoom | Represents annotation flag's key with no zooming. |
Represents print annotation flag's key. |
|
ReadOnly | Represents read only annotation flag's key. |
ToggleNoView | Annotation flag's key with no toggle view. |