cete.dynamicpdf.merger.pdfnoteannotation
PdfNoteAnnotation
- Namespace: ceTe.DynamicPDF.Merger
- Assemblies: DynamicPDF.CoreSuite.dll
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:
- Any active DynamicPDF Subscription (Essentials, Professional, Professional Plus or Ultimate).
- A DynamicPDF Core Suite for .NET v12.X Essentials license.
- It can also be used for free with a public link back to www.dynamicpdf.com and with the DynamicPDF Essentials message displaying on the bottom of each page.
Properties
Author
Gets or sets the author of the note.
public string Author { get; set; }
Public Property Author As String
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
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
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Hidden
Gets the hide status of the annotation. (Inherited from PdfAnnotation)
public bool Hidden { get; }
Public Property Hidden As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Invisible
Gets the visiblity status of the annotation. (Inherited from PdfAnnotation)
public bool Invisible { get; }
Public Property Invisible As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Locked
Gets the lock status of the annotation. (Inherited from PdfAnnotation)
public bool Locked { get; }
Public Property Locked As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
LockedContents
Gets the lock status of the contents. (Inherited from PdfAnnotation)
public bool LockedContents { get; }
Public Property LockedContents As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ModifiedDate
Gets the modifiedDate of the annotation. (Inherited from PdfAnnotation)
public string ModifiedDate { get; }
Public Property ModifiedDate As String
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
NoRotate
Gets the zoom status of the annotation. (Inherited from PdfAnnotation)
public bool NoRotate { get; }
Public Property NoRotate As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
NoView
Gets the view status of the annotation. (Inherited from PdfAnnotation)
public bool NoView { get; }
Public Property NoView As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
NoZoom
Gets the zoom status of the annotation. (Inherited from PdfAnnotation)
public bool NoZoom { get; }
Public Property NoZoom As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Open
Gets the boolean for open or close state of note.
public bool Open { get; }
Public Property Open As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Printable
Gets the print status of the annotation. (Inherited from PdfAnnotation)
public bool Printable { get; }
Public Property Printable As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ReadOnly
Gets the ReadOnly status of the annotation. (Inherited from PdfAnnotation)
public bool ReadOnly { get; }
Public Property ReadOnly As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
ToggleNoView
Gets the toggle view status of the annotation. (Inherited from PdfAnnotation)
public bool ToggleNoView { get; }
Public Property ToggleNoView As Boolean
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
Type
Specifies a note type.
public NoteType Type { get; }
Public Property Type As NoteType
Property Value
Licensing Info
This property is a full DynamicPDF Core Suite feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
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
- obj: Object
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:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
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:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
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:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.
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:
- An active DynamicPDF Ultimate Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Core Suite selected.
- A DynamicPDF Core Suite for .NET v12.X Developer License.