Example of Programmatic Operations in ASP.NET Core 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
|
X1 Position
|
Y1 Position
|
X2 Position
|
Y2 Position
|
Shape Opacity
|
Fill Color
|
Stroke Thickness
|
Stroke Color
|
Font Size
|
Font 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 addAnnotation 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 depends on 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 annotations in the PDF viewer:
More information on the PDF Viewer instantiation can be found in this documentation section.