Example of Programmatic Operations in ASP.NET MVC PDF Viewer Control

This sample demonstrates the creation of various types of annotations in the PDF viewer, including text markup, shapes, measurements, free text, stamps, handwritten signatures, ink, and sticky notes. Additionally, we can customize existing annotations or add new annotations programmatically in the PDF viewer using the provided options.

DEMO
SOURCE
Properties
Annotation Type
Page Number
Settings:
X Position
Y Position
Width
Height
Shape Opacity
Fill Color
Stroke Thickness
Stroke Color
Print Annotation
Lock Annotation
Add Comments
Author
Content
Status
Reply

The PDF Viewer component allows the process of programmatically adding or modifying annotations within a PDF document. With the ability to programmatically add any type of annotation using the AnnotationAdd API and edit existing annotations using the editAnnotation API, users can seamlessly enhance their PDF viewing experience.


The creation of an annotation when clicking the 'Add annotation' button is depending upon the selected properties from the Property panel. To update an existing annotation, users can select the desired annotation, modify its properties, and then click the 'Update' button.


We can programmatically add or update the following types of the annotation in the pdf viewer

More information on the PDF Viewer instantiation can be found in this documentation section .

Transform your ASP.NET MVC web apps today with Syncfusion® ASP.NET MVC components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE
opens in a new tab