- Home
- Forum
- Xamarin.Forms
- How to make PdfViewer to view PDF only
How to make PdfViewer to view PDF only
Hi, I use the following guide and everything perfect as expected
But for now i just want my Pdf page to be view only, no toolbar or Annotation. It's just view only.
Can i do that ?
SIGN IN To post a reply.
7 Replies
AV
Ashokkumar Viswanathan
Syncfusion Team
March 27, 2020 09:14 AM UTC
Hi Kien,
Greetings from Syncfusion support.
We have support to enable or disable the built-in toolbar in our Pdfviewer control. Please use the below-mentioned API to disable the built-in toolbar.
|
pdfViewerControl.Toolbar.Enabled = false; |
Kindly refer to the below UG link for more information about, “pdfViewerControl.Toolbar.Enabled” API.
Please try the above solution in your end and let us know if you need any further assistance with this.
Regards,
Ashok Kumar Viswanathan.
KI
Kien.Phat
March 31, 2020 01:38 PM UTC
thank for your support, it works :)
PN
Preethi Nesakkan Gnanadurai
Syncfusion Team
April 1, 2020 10:28 AM UTC
HI Kien,
Most welcome.
Regards,
Preethi
ME
Mark Erdrich
October 20, 2020 07:40 PM UTC
I get the ability to turn on/off both of the toolbars, but will there ever be the ability to just turn off the bottom toolbar?
Our PDFs are read-only, but we still want the save/print/view feature functionality in the top toolbar, but we do not want the edit functionality in the bottom toolbar. We can live with or without the page numbers, but we can't let the users access the edit functionality.
Or am I stuck creating my own toolbar?
Thanks!
AV
Ashokkumar Viswanathan
Syncfusion Team
October 21, 2020 11:10 AM UTC
Hi Mark,
PdfViewer control allows you to remove the edit functionality in the bottom toolbar by hiding the toolbar items in the built-in toolbar.
Please refer the below code to remove the toolbar items in the bottom toolbar,
|
pdfViewerControl.Toolbar.SetToolbarItemVisibility("annotation", false);
pdfViewerControl.Toolbar.SetToolbarItemVisibility("page-entry", false);
pdfViewerControl.Toolbar.SetToolbarItemVisibility("page-count", false);
pdfViewerControl.Toolbar.SetToolbarItemVisibility("pagecount-separator", false); |
Please find the demo sample in the below link,
Please refer the below UG documentation for further updates,
Please let us know, whether provided solution resolved your issue,
Regards,
Ashok Kumar Viswanathan.
CC
Christian Campos
October 22, 2021 09:05 PM UTC
How can I move the Print and Save button to place it together to the rest of buttons? I hide some buttons but the print and save buttons are inside of "3 points" button and I cannot move them.
There is a "Save as" button or functionality?
AS
Anandraj Selvam
Syncfusion Team
October 26, 2021 11:32 AM UTC
Hi Christian Campos,
Currently, we do not have support to customize(move) the buttons in the built-in toolbar of SfPdfViewer control.
However, your requirement of adding the print and save button along with another button in the top toolbar can be achieved by creating custom toolbar, instead of using built-in toolbar.
Please refer the below link for custom toolbar sample,
Regards,
Anand Raj S.
SIGN IN To post a reply.
- 7 Replies
- 6 Participants
-
KI Kien.Phat
- Mar 26, 2020 02:32 PM UTC
- Oct 26, 2021 11:32 AM UTC