PdfNoteAnnotation.Author Property
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 NoteAnnotationImports System
Imports ceTe.DynamicPDF
Imports ceTe.DynamicPDF.Merger
Module MyModule
Sub 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);
}
}