Hi, I am using a PDFViewer control in one of my Xamarin.Android app.
I have a scenario, where in some condition, I want to disable editing and annotating PDF files.
I have used the following code to disable the toolbar, so that they can add the annotations
if (IsJobFinished)
{
viewer.Toolbar.Enabled = false;
viewer.IsTextSelectionEnabled = false;
}
else
{
viewer.Toolbar.Enabled = true;
viewer.IsTextSelectionEnabled = true;
}
This is correctly hiding the toolbar so the user is not able to add any annotation if the "IsJobFinished" flag is true. But the user still be able select any existing annotation like inking, text , shapes etc. and resize them or move them to another location on the PDF
Could you please help me out with this? I don't want any operations to be performed on the PDF once "IsJobFinished" flag is true, the user can only view the PDF document in that case.