C#: Online Guide
How To: Word SDK
Annotate Word
  |  
Home ›› XDoc.Word ›› C# Word: Annotate Word

C# Word - Annotate Word Page in C#.NET


Online Guide to Add Annotation to Word Page in C# Project




Overview



RasterEdge XDoc.Word Library provides some methods for developers to annotate on Word pages. vb.net print pdf to specific printer, pdf viewer in mvc 4, vb.net itextsharp convert pdf to image, add header and footer in pdf using itextsharp c#, read pdf file using itextsharp vb.net, code 128b c#. In order to add various annotations, you need to add reference RasterEdge.Imaging.Annotation to your project.


Related .net document control helps:
asp.net edit pdf image control: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net pdf viewer control: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net mvc text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net document viewer control: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net pdf editor control: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net edit pdf image control: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#


Types of comment supported as follows:


Rectangle


Ellipse


Line


Freehand


Freehand Lines


Text


Rectangular Hot Spot


Freehand Hot Spot


Embedded Image


Referenced Image


polygon


Lines


Rubber Stamp


Callout


Arrow


Signature




C# DLLs: Word Annotation



asp.net c# pdf viewer control, pdf preview in asp net c# example, mvc view to pdf itextsharp, asp.net add text to pdf field, asp.net core pdf editor, asp.net tiff viewer, asp.net show image from url.



Add references:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.Word;


  using RasterEdge.Imaging.Annotation;


  using RasterEdge.Imaging.Annotation.Basic;




Add Annotation to Word Page Using C#



This is a sample code for adding rubber stamp annotation to word page using C#.




DOCXDocument docx = new DOCXDocument(@"C:\1.docx");
BasePage page = docx.GetPage(0);
Font font = new Font("Arial", 15F);
AnnotationBrush brush = new AnnotationBrush();
AnnotationHandler annotation = AnnotationGenerator.CreateRubberStampAnnotation(10, 10, 100, 100, "Good", font, brush);
page.AddAnnotation(annotation);
docx.Save(@"C:\1anno.docx");