About Syncfusion Annotation in Blazor PDF Viewer Component
14 Aug 20261 minute to read
Annotations in the SfPdfViewer are interactive elements that allow users to add notes, highlights, or text boxes directly to a PDF document. They add context and feedback to PDFs, simplifying collaboration during document reviews.
The Blazor SfPdfViewer provides a complete set of annotation tools for reviewing, measuring, and marking up PDFs.
Supported annotations
- Text markup: Highlight, Underline, Squiggly, Strikethrough
- Shapes: Line, Arrow, Rectangle, Circle, Polygon
- Free text: Free Text
- Drawing: Ink
- Stamps: Standard and custom stamps
- Notes: Sticky Notes
- Redaction: Redaction
- Measurement: Distance, Perimeter, Area, Radius, Volume
Annotation manipulation capabilities
- Create annotations: Use the toolbar, context menu, or APIs to add highlights, notes, shapes, and more directly onto the PDF document.
- Edit annotations: Modify existing annotations by moving, resizing, or updating text and style properties like color, opacity, and thickness.
-
Delete annotations: Remove unwanted annotations using the context menu or the
DeleteAnnotationAsyncAPI. - Customize annotations: Adjust appearance and behavior—such as fonts, fill colors, and opacity—through the UI or configuration options.
- Undo and redo annotations: Revert or reapply annotation actions (add, edit, delete) using toolbar buttons or corresponding APIs.
-
Import and export annotations: Save and load annotations in JSON (
.json) or XFDF (.xfdf) formats to persist markups across sessions or share them with others. -
Set permissions: Enable or disable the
AnnotationPermissionenum value (default:AnnotationPermission.All) to control which annotation actions users can perform. - Add and manage comments: Insert, edit, and delete comments or sticky notes attached to annotations for clearer feedback and collaboration. The Comments pane must be enabled in the toolbar settings.
See also
- Text Markup Annotation
- Shape Annotation
- Free Text Annotation
- Ink Annotation
- Stamp Annotation
- Comments
- Redaction
- Measurement Annotation
- Export and Import Annotation
- Delete Annotation
- Customize annotations
- Annotations undo and redo
- Import and export annotations
- Annotation permissions
- Comments
- Toolbar customization
- Events reference