• Material 3
  • Fluent
  • Fluent 2
  • Bootstrap 5
  • Tailwind CSS
  • High Contrast
  • Fluent 2 High Contrast
Preferences
Mode Selection
Touch
Mouse
Theme Selection
Theme Mode
Localization
*Translated by Google Translator.
Currency

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.

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 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.

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