Syncfusion AI Assistant

How can I help you?

Annotations in mobile view

12 Feb 20263 minutes to read

This topic explains how to work with annotations in the mobile view of the Blazor SfPdfViewer. It covers opening the annotation toolbar, adding annotation types, adjusting properties, deleting annotations, and using the comments panel.

Open the annotation toolbar

Open the annotation toolbar by tapping the Edit Annotation option in the mobile primary toolbar. The annotation toolbar appears at the bottom of the viewer.

Mobile Annotation Toolbar in Blazor SfPdfViewer

Add a sticky note annotation

Tap the Sticky Note Annotation icon, then tap anywhere in the viewer to place the note.

Choose Sticky Note Annotation in Blazor SfPdfViewer

The comments panel opens to enter the comment associated with the sticky note.

Sticky note annotation added in Blazor SfPdfViewer

Add a text markup annotation

Long-press to select text in the PDF, then tap a Text Markup Annotation option in the toolbar (for example, highlight, underline, strikethrough, or squiggly).

Select text for text markup in Blazor SfPdfViewer

The toolbar then shows properties for the chosen annotation (such as color and opacity).

Text markup applied to selected text in Blazor SfPdfViewer

Add a shape annotation

Tap the Shape Annotation icon in the toolbar to view available shapes.

Open the shape annotations menu in Blazor SfPdfViewer

Choose a shape, then tap and drag in the viewer to draw it.

Select a shape type in Blazor SfPdfViewer

After placement, the toolbar switches to the properties toolbar for the added annotation; adjust options such as fill color, stroke color, thickness, and opacity.

Draw a selected shape annotation in Blazor SfPdfViewer

Add a measurement annotation

Tap the Measure Annotation icon in the toolbar to view supported measurement types.

Open the measure annotations menu in Blazor SfPdfViewer

Select a measurement type, then tap and drag in the viewer to add it.

Select a measurement type in Blazor SfPdfViewer

After placement, the properties toolbar appears with options relevant to the measurement annotation (for example, stroke color, thickness, and opacity).

Draw a selected measurement annotation in Blazor SfPdfViewer

Add a free text annotation

Tap the Free Text Annotation icon in the toolbar. The properties toolbar appears with options for text formatting (such as font size, color, and opacity).

Open Free Text Annotation in Blazor SfPdfViewer

Tap anywhere in the viewer to insert the free text annotation.

Add free text in the viewer in Blazor SfPdfViewer

Add a stamp annotation

Tap the Stamp Annotation icon, then choose a stamp from the available list.

Open the list of stamp annotations in Blazor SfPdfViewer

Tap anywhere in the viewer to place the stamp. The properties toolbar then appears for additional adjustments where applicable.

Place the selected stamp in Blazor SfPdfViewer

Add a signature

Tap the Handwritten Signature icon to open the signature dialog.

Open the signature dialog in Blazor SfPdfViewer

Draw the signature in the dialog’s canvas, then tap Create to add it to the viewer.

Draw a signature in the dialog in Blazor SfPdfViewer

Tap anywhere in the viewer to place the signature. The properties toolbar then appears for further adjustments.

Add the signature to the viewer in Blazor SfPdfViewer

Add an ink annotation

Tap the Ink Annotation icon, then draw directly in the viewer.

Start ink annotation in Blazor SfPdfViewer

When finished, tap the Ink Annotation icon again to exit drawing mode. The properties toolbar then appears with options for ink color, thickness, and opacity.

Complete an ink annotation in Blazor SfPdfViewer

Change annotation properties before adding

Annotation properties can be configured before placement. For example, tap a shape to show its properties toolbar, adjust the settings, then tap and drag to place the annotation. The annotation is added with the modified properties.

Change properties before adding an annotation in Blazor SfPdfViewer

Change annotation properties after adding

After placement, select the annotation to display its properties toolbar. Adjust required properties; the changes are applied immediately to the selected annotation.

Change properties after adding an annotation in Blazor SfPdfViewer

Delete an annotation

Select the annotation to delete. In the properties toolbar, tap the Delete icon. The annotation is removed from the PDF, and any associated comment is also deleted.

Delete the selected annotation in Blazor SfPdfViewer

Open and close the comments panel

Open the comments panel from the More options menu at the right end of the mobile primary toolbar.

Open the comments panel from More options in Blazor SfPdfViewer

To close the comments panel, tap the Close icon within the panel.

Comments panel displayed in Blazor SfPdfViewer

See Also