Posted by a ceTe Software moderator
Hello,
You can add notes to the PDF document using Note page element of our DynamicPDF Generator product. Please refer to the documentation on Note page element
here and below is the sample code for it. It is not possible to highlight the text using DynamicPDF Generator API.
// Create a PDF Document
Document document = new Document();
// Create a Page and add it to the document
Page page = new Page();
document.Pages.Add(page);
// Create a note
Note note = new Note("This is my help note.", 50, 50, 150, 50,NoteType.Help, true);
// Change the color property
note.Color = RgbColor.Red;
// Add the note to the page
page.Elements.Add(note);
page.Elements.Add(new Label("Click on the above icon to view " +"the note.", 50, 80, 150, 72, Font.HelveticaBold, 18));
// Save the PDF
document.Draw(@"C:\MyDocument.pdf");
Thanks,
ceTe Software Support Team.