You can choose disable annotation creation and editing permissions
The long-press QuickMenu and AnnotationToolbar show a default set of annotation creation tools. Editing of existing annotations is enabled for all annotation types by default. Other actions that are not tied to annotation creation or editing, such as text selection, form filling, link following, and multimedia playing are enabled by default.
To hide annotation creation tool(s) from the quick menu and annotation toolbar, you can set it in a centralized place with eitherToolManagerBuilder
or ToolManager
depending on the fit.
See annotation and tool mode mapping here: annotation and its creation tool.
The following example hides text highlight and arrow annotation creation tool from the quick menu and annotation toolbar:
To use in ToolManagerBuilder
:
To use in ToolManager
:
To disable annotation editing for certain annotation type(s), you can set it in a centralized place with either ToolManagerBuilder
or ToolManager
depending on the fit.
The following example disables editing of ellipse and rectangle annotations:
To use in ToolManagerBuilder
:
To use in ToolManager
:
Functionality that is not directly tied to annotation creation or editing such as text selection, form filling, link following etc. can also be disabled. Each functionality is in the form of a Tool
. Once a Tool
is disabled, ToolManager
will never switch to it. Instead, it will switch to the Pan
tool. Pan
tool cannot be disabled.
The following example disables form filling and link following:
To use in ToolManagerBuilder
:
To use in ToolManager
:
See annotation and tool mode mapping here: annotation and its creation tool.
The long-press popup menu and AnnotationToolbar
show a default set of annotation creation tools. Editing of existing annotations is enabled for all annotation types by default. Other actions that are not tied to annotation creation, like text selection, form filling, and link following, are enabled by default.
Annotation creation and editing can be disabled on the PTToolManager
using the PTAnnotationOptions
property for a particular annotation type, such as TextAnnotationOptions
It is also possible to disable annotation creation and editing based on the PTExtendedAnnotType
enum by accessing the PTAnnotationOptions
for that type using the AnnotationOptionsForAnnotType
method.
The PTExtendedAnnotType
enum extends the basic PTAnnotType
to further distinguish annotations based on their properties (line and arrow, polygon and cloudy, etc.). The extendedAnnotType
property can be used to get the type of a Annot
.
Functionality that is not directly tied to annotations,like text selection, form filling, link following, and ink erasing, can be disabled on the PTToolManager
via convenience properties, for example LinkFollowingEnabled
:
The code above disables link following for link annotations and text links detected by the PDFViewCtrl
(the SetUrlExtraction
method must be called on the PDFViewCtrl to enable text link detection).
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales