Hello,
I'm trying to customize the toolbar by defining the toolbaritems:
<SfPdfViewerServer @ref="sfPdfViewerServer" ID="pdfviewer" DocumentPath="@pdfContent" Width="100%" Height="1000px" EnableAnnotationToolbar="false" EnableNavigationToolbar="false" ToolbarSettings="@ToolbarSettings">
</SfPdfViewerServer>
public PdfViewerToolbarSettings ToolbarSettings = new PdfViewerToolbarSettings()
{
ToolbarItems = new List<Syncfusion.Blazor.PdfViewer.ToolbarItem>()
{
Syncfusion.Blazor.PdfViewer.ToolbarItem.PageNavigationTool,
Syncfusion.Blazor.PdfViewer.ToolbarItem.MagnificationTool,
Syncfusion.Blazor.PdfViewer.ToolbarItem.PrintOption,
Syncfusion.Blazor.PdfViewer.ToolbarItem.DownloadOption
}
};
Works fine on a PC Edge browser. However, on iPhone and Android devices it always displays the same toolbar with none of my customizations:
That's disappointing to hear. Is there some way to disable the mobile toolbar? I've tried setting EnableToolbar to false but it doesn't change the mobile toolbar. At the least I would like to remove the Open File button.
|
Query |
Details |
|
Is there some way to disable the mobile toolbar? I've tried setting EnableToolbar to false but it doesn't change the mobile toolbar. |
Currently, we are facing issue the reported issue “Unable to disable mobile toolbar while setting EnableToolbar to false” in PdfviewerServer. However, we will analyze further on this and update you with more details on August 16, 2021.
|
|
That's disappointing to hear. At the least I would like to remove the Open File button. |
Sorry for the inconvenience. As we mentioned earlier, there is no support to customize the toolbar in mobile mode. We do not have any immediate plans to implement this feature. It will be included in any of our upcoming releases.
You can track the status using below feedback link,
|
|
Blazor Client |
|
|
Blazor Sever |
|
|
Service side package |
ASP.NET Core :
https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.Windows/ https://www.nuget.org/packages/Syncfusion.EJ2.PdfViewer.AspNet.Core.Linux/
ASP.NET MVC:
|
Hi,
with toolbar setting with only 3 items,
ToolbarItem.DownloadOption, ToolbarItem.PageNavigationTool, ToolbarItem.PrintOption,
it still show the "file open " button on android device. Please help and show how to make it working.
Thanks
We have provided a sample to customize by removing the upload file option and were able to run the model on the mobile device without the file upload option.
Kindly find the image for reference and the sample below.
Image:
Sample: https://www.syncfusion.com/downloads/support/directtrac/general/ze/LO4ADD~1897980762.zip
Kindly try this and let us know if you have any concerns.