You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/PDF/PDF-Viewer/blazor/toolbar/mobile-toolbar.md
+100-5Lines changed: 100 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,16 +18,55 @@ The SfPdfViewer includes a built-in, responsive primary toolbar that provides qu
18
18
The primary toolbar includes the following options:
19
19
20
20
* Open PDF File
21
-
* Text search
22
-
* Comments panel
23
-
* Download
24
21
* Undo and Redo
25
22
* Annotation tools
26
23
* Form designer tools
27
24
* Redaction tools
28
-
* Bookmark panel
25
+
* Text search
26
+
27
+
Reorder the [MobileToolbarItems](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerToolbarSettings.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerToolbarSettings_MobileToolbarItems) list to control the display order. The toolbar renders items in the order they appear in the collection.
28
+
29
+
Use the following code snippet to add the redaction toolbar to the PDF Viewer.
public List<ToolbarItem>? ToolbarItems { get; set; }
43
+
public List<MobileToolbarItem>? MobileToolbarItems { get; set; }
44
+
protected override void OnInitialized()
45
+
{
46
+
MobileToolbarItems = new List<MobileToolbarItem>()
47
+
{
48
+
MobileToolbarItem.Open,
49
+
MobileToolbarItem.UndoRedo,
50
+
MobileToolbarItem.EditAnnotation,
51
+
MobileToolbarItem.Redaction,
52
+
MobileToolbarItem.FormDesigner,
53
+
MobileToolbarItem.Search
54
+
};
55
+
}
56
+
}
57
+
58
+
```
29
59
30
-

60
+

61
+
62
+
### More options menu
63
+
64
+
Open the overflow (three-dots) menu to access additional actions such as:
65
+
66
+
- Download: Download the currently opened PDF document.
67
+
- Bookmark: View and navigate bookmarks within the document.
68
+
69
+

31
70
32
71
## Annotation toolbar in mobile mode
33
72
@@ -66,3 +105,59 @@ The redaction toolbar provides tools to mark and permanently remove sensitive co
66
105
* Close
67
106
68
107

108
+
109
+
## Enable desktop mode on mobile
110
+
111
+
Enable the desktop toolbar on mobile devices with the [EnableDesktopMode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerBase.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerBase_EnableDesktopMode) API. This replaces the mobile toolbar with the desktop layout and provides access to additional actions and controls.
[View sample in GitHub](https://github.com/SyncfusionExamples/blazor-pdf-viewer-examples/tree/master/Toolbar)
123
+
124
+
## Modern navigation panel in mobile view
125
+
126
+
On mobile devices, the navigation toolbar collapses into a toggle menu to save space. Any custom items added appear at the beginning of this menu.
127
+
128
+

129
+
130
+
Enable the modern navigation panel by setting [EnableNavigationPanel](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerBase.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerBase_EnableNavigationPanel) to true.
[View sample in GitHub](https://github.com/SyncfusionExamples/blazor-pdf-viewer-examples/tree/master/Toolbar)
141
+
142
+
## Enable scrolling in desktop mode with touch gestures
143
+
144
+
For smooth scrolling of PDF documents on mobile while in desktop mode, disable text selection (set [EnableTextSelection](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerBase.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerBase_EnableTextSelection) to false) to allow touch panning.
[View sample in GitHub](https://github.com/SyncfusionExamples/blazor-pdf-viewer-examples/tree/master/Toolbar)
155
+
156
+
## Print option availability
157
+
158
+
The Print option is not available in mobile mode by default. To use printing on mobile, enable the desktop toolbar with the [EnableDesktopMode](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.SfPdfViewer.PdfViewerBase.html#Syncfusion_Blazor_SfPdfViewer_PdfViewerBase_EnableDesktopMode) API. Availability and behavior may vary by mobile browser.
159
+
160
+
## See also
161
+
162
+
-[Annotations in mobile view](../annotation/annotations-in-mobile-view)
163
+
-[Form designer in mobile view](../form-designer/form-designer-in-mobile-view)
0 commit comments