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
Properties
Author
Gets or sets the author of the note.
public string Author { get; set; }
Public Property Author As String
Property Value
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
Hidden
Gets the hide status of the annotation. (Inherited from PdfAnnotation)
public bool Hidden { get; }
Public Property Hidden As Boolean
Property Value
Invisible
Gets the visiblity status of the annotation. (Inherited from PdfAnnotation)
public bool Invisible { get; }
Public Property Invisible As Boolean
Property Value
Locked
Gets the lock status of the annotation. (Inherited from PdfAnnotation)
public bool Locked { get; }
Public Property Locked As Boolean
Property Value
LockedContents
Gets the lock status of the contents. (Inherited from PdfAnnotation)
public bool LockedContents { get; }
Public Property LockedContents As Boolean
Property Value
ModifiedDate
Gets the modifiedDate of the annotation. (Inherited from PdfAnnotation)
public string ModifiedDate { get; }
Public Property ModifiedDate As String
Property Value
Name
Gets the name of the annotation. (Inherited from PdfAnnotation)
public string Name { get; }
Public Property Name As String
Property Value
NoRotate
Gets the zoom status of the annotation. (Inherited from PdfAnnotation)
public bool NoRotate { get; }
Public Property NoRotate As Boolean
Property Value
NoView
Gets the view status of the annotation. (Inherited from PdfAnnotation)
public bool NoView { get; }
Public Property NoView As Boolean
Property Value
NoZoom
Gets the zoom status of the annotation. (Inherited from PdfAnnotation)
public bool NoZoom { get; }
Public Property NoZoom As Boolean
Property Value
Open
Gets the boolean for open or close state of note.
public bool Open { get; }
Public Property Open As Boolean
Property Value
Printable
Gets the print status of the annotation. (Inherited from PdfAnnotation)
public bool Printable { get; }
Public Property Printable As Boolean
Property Value
ReadOnly
Gets the ReadOnly status of the annotation. (Inherited from PdfAnnotation)
public bool ReadOnly { get; }
Public Property ReadOnly As Boolean
Property Value
ToggleNoView
Gets the toggle view status of the annotation. (Inherited from PdfAnnotation)
public bool ToggleNoView { get; }
Public Property ToggleNoView As Boolean
Property Value
Type
Specifies a note type.
public NoteType Type { get; }
Public Property Type As NoteType
Property Value
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.
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 .
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.
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 .