Skip to main content

PdfNoteAnnotation

Version: 12.0

cete.dynamicpdf.merger.pdfnoteannotation

PdfNoteAnnotation​

Represents a Note Annotation from an imported PDF document.

public class PdfNoteAnnotation : PdfAnnotation
Public Class PdfNoteAnnotation
Inherits PdfAnnotation

Inheritance: Object → PdfAnnotation → PdfNoteAnnotation

Licensing Info​

This class is a DynamicPDF Core Suite Essentials feature. One of the following is required for non-evaluation usage:

Properties​

Author​

Gets or sets the author of the note.

public string Author { get; set; }
Public Property Author As String

Property Value​

String

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Examples​

This example add Author to existing NoteAnnotation

Imports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Merger

Module MyModuleSub AddAuthorToNote(sourcePdfPath As String, outputPath As String)
'Create MergeDocument object using the source PDF
Dim pdfDocument As PdfDocument = New PdfDocument(sourcePdfPath)
Dim mergeDocument As MergeDocument = New MergeDocument(pdfDocument)

'Get PdfPage object
Dim pdfPage As PdfPage = pdfDocument.Pages(0)

'Get the Note annotations
Dim pdfNoteAnnotations = pdfPage.GetNoteAnnotations()
'Set the Author to an existing note annotation
pdfNoteAnnotations(0).Author = "ceTe software"

'Save the pdf
mergeDocument.Draw(outputPath)
End Sub
End Module
using System;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Merger;

public class Example
{public static void AddAuthorToNote(string sourcePdfPath, string outputPath)
{
// Create MergeDocument object using the source PDF
PdfDocument pdfDocument = new PdfDocument(sourcePdfPath);
MergeDocument mergeDocument = new MergeDocument(pdfDocument);

// Get PdfPage object
PdfPage pdfPage = pdfDocument.Pages[0];

// Get the Note annotations
PdfNoteAnnotation[] pdfNoteAnnotations = pdfPage.GetNoteAnnotations();

// Set the Author to an existing note annotation
pdfNoteAnnotations[0].Author = "ceTe software";

// Save the pdf
mergeDocument.Draw(outputPath);
}
}

Contents​

Gets the contents of the annotation. (Inherited from PdfAnnotation)

public string Contents { get; }
Public Property Contents As String

Property Value​

String

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Hidden​

Gets the hide status of the annotation. (Inherited from PdfAnnotation)

public bool Hidden { get; }
Public Property Hidden As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Invisible​

Gets the visiblity status of the annotation. (Inherited from PdfAnnotation)

public bool Invisible { get; }
Public Property Invisible As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Locked​

Gets the lock status of the annotation. (Inherited from PdfAnnotation)

public bool Locked { get; }
Public Property Locked As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

LockedContents​

Gets the lock status of the contents. (Inherited from PdfAnnotation)

public bool LockedContents { get; }
Public Property LockedContents As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ModifiedDate​

Gets the modifiedDate of the annotation. (Inherited from PdfAnnotation)

public string ModifiedDate { get; }
Public Property ModifiedDate As String

Property Value​

String

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

NoRotate​

Gets the zoom status of the annotation. (Inherited from PdfAnnotation)

public bool NoRotate { get; }
Public Property NoRotate As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

NoView​

Gets the view status of the annotation. (Inherited from PdfAnnotation)

public bool NoView { get; }
Public Property NoView As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

NoZoom​

Gets the zoom status of the annotation. (Inherited from PdfAnnotation)

public bool NoZoom { get; }
Public Property NoZoom As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Open​

Gets the boolean for open or close state of note.

public bool Open { get; }
Public Property Open As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Printable​

Gets the print status of the annotation. (Inherited from PdfAnnotation)

public bool Printable { get; }
Public Property Printable As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ReadOnly​

Gets the ReadOnly status of the annotation. (Inherited from PdfAnnotation)

public bool ReadOnly { get; }
Public Property ReadOnly As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ToggleNoView​

Gets the toggle view status of the annotation. (Inherited from PdfAnnotation)

public bool ToggleNoView { get; }
Public Property ToggleNoView As Boolean

Property Value​

Boolean

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Type​

Specifies a note type.

public NoteType Type { get; }
Public Property Type As NoteType

Property Value​

NoteType

Licensing Info​

This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

Methods​

Equals(Object)​

Determines whether the specified Object is equal to the current Object . (Inherited from Object)

public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean

Parameters​

The Object to compare with the current Object .

Returns​

true if the specified Object is equal to the current Object ; otherwise, false.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetHashCode()​

Serves as a hash function for a particular type. (Inherited from Object)

public int GetHashCode()
Function GetHashCode() As Integer

Returns​

A hash code for the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

GetType()​

Gets the Type of the current instance. (Inherited from Object)

public Type GetType()
Function GetType() As Type

Returns​

The Type instance that represents the exact runtime type of the current instance.

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

ToString()​

Returns a String that represents the current Object . (Inherited from Object)

public string ToString()
Function ToString() As String

Returns​

A String that represents the current Object .

Licensing Info​

This method is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:

See Also​

ceTe.DynamicPDF.Merger