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.
X Position
|
Y Position
|
Width
|
Height
|
Shape Opacity
|
Fill Color
|
Stroke Thickness
|
Stroke Color
|
Print Annotation | |
Lock Annotation |
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 .