How to Start Tutorials Troubleshooting Main Operations Convert PDF Read PDF Edit PDF PDF Report Generator Work with PDF Modules PDF Document PDF Pages Text Image Graph & Path Annotation, Markup & Drawing Redaction Security Digital Signature Forms Watermark Bookmark Link File Attachment File Metadata Printing Work with Other SDKs Barcode read Barcode create OCR Twain

C# PDF Annotation Library
How to open, add, draw, remove annotations to existing pdf file using c# .net. Free download with example code


Excellent C# Solutions to Draw, Add and Edit Various Annotations on PDF File in C# Class Using .NET DLLs





PDF annotation APIs allow comments, markup, drawings to be added, edited, removed to PDF pages in C# class. The PDFAnnotHandler.AddAnnotation() method and IPDFTextboxAnnot class allow the following annotations and markups to be added programmatically to the PDF pages.

  • Sticky note
  • Highlight text
  • Text comment
  • Text box
  • Text callout
  • Text other markups
  • Stamp
  • Path & shape

How to add, remove annotations to/from PDF file using C#

  1. Download XDoc.PDF annotation C# library
  2. Install C# library to add, remove annotations on PDF document
  3. Step by Step Tutorialss


























  • A best and highly-rated PDF document processing SDK library for PDF annotating in ASP.NET web application and C#.NET WinForms
  • A powerful PDF annotator control enables C# developers to annotate PDF document in various annotation types in Visual Studio .NET
  • C# source code for adding or removing annotation from PDF file in .NET framework
  • Support to add flatten comments to PDF document online in ASPX webpage
  • Support .NET WinForms, ASP.NET MVC in IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke), SharePoint
  • Support to take notes on adobe PDF file without adobe reader installed
  • Support to add text, text box, text field and crop marks to PDF document
  • Able to edit and change PDF annotation properties such as font size or color
  • Abilities to draw markups on PDF document or stamp on PDF file
  • Users are able to delete annotation from PDF document in C#.NET class


The combination of RasterEdge's PDF document processing control and its annotating library enables C# developers and end-users to integrate robust PDF document annotation capabilities to any type of a 32-bit or 64-bit .NET application for .NET Framework 2.0 and above.





List of annotations on PDF page in C#


Like Acrobat Pro, XDoc.PDF supports multiple text markup annotations, such as sticky note, highlight text, text comment, text box, text callout.





1. Sticky note

The most common type of comment is the sticky note. A sticky note has a note icon that appears on the page and a pop-up note for your text message. You can add a sticky note anywhere on the PDF page.


  1. Add a new sticky note on PDF page
  2. Remove an existing sticky note
  3. More about Sticky note on PDF using C#




2. Highlight text

What you can do with highlight text markup on PDF pages using C#


  1. Add a new Highlight text annotation on PDF page
  2. Read an existing Highlight text annotation properties
  3. Remove an existing Highlight text markup
  4. More about Highlight text on PDF using C#




3. Text comment

With PDF annotation C# library, you can easily add Text Comment annotation to type text anywhere on the PDF page. The Text Comment annotation is similar to the Text Box annotation.


  1. Add a new Text comment annotation on PDF page
  2. Read an existing Text comment annotation properties
  3. Remove an existing Text comment markup
  4. More about Text comment annotation on PDF using C#




4. Text box

Provide users with examples for adding text box to PDF and edit font size and color in text box field in C#.NET program.


  1. Add a new Text box annotation on PDF page
  2. Read an existing Text box annotation properties
  3. Remove an existing Text box markup
  4. More about Text box on PDF using C#




5. Text callout

You can create, apply Note to replace, Insert text at cursor on PDF page to create a callout text box in C# class Callout text boxes are especially useful when you want to single out, but not obscure, a particular area of a PDF document.


  1. Add a new Text callout annotation (Note to replace, or Insert text at cursor) on PDF page
  2. Read, remove an existing Text callout annotation
  3. More about Text callout annotation on PDF using C#




6. Other text markups: Underline, Strikethrough

What you can do with Underline, Strikethrough markup on PDF pages using C#


  1. Add a Underline, Strikethrough annotation on PDF page
  2. Read an existing annotation properties
  3. Remove an existing Underline, Strikethrough comment
  4. More about other text markups on PDF using C#




7. Stamp

With PDF C# library, you can easily apply a stamp to a PDF page in C# class, in the same way you apply a rubber stamp on a paper document.


  1. Create your own stamp with C# API
  2. Create, add a stamp from list of predefined templates
  3. Create, add your own stamps with dynamic fields, including name, date, time stamp information
  4. Remove an existing stamp from PDF page
  5. More about Stamp annotation on PDF using C#




8. Drawing markups

Enable users to draw various shapes, such as free form, line, arrow, oval, rectangle, on PDF pages in C# class.


  1. Support free form, line, arrow, oval, rectangle, polygon, connected lines.
  2. Add, read, remove drawings on PDF pages
  3. More about drawing and shapes markup on PDF page using C#