Some test text!

keyboard_arrow_down

Get started

Download PDFTron SDK
play_arrow

Quick start - view a document

Xamarin.AndroidXamarin.iOSIntegrate with NuGetIntegrate manuallyRun samplesAdd license keyUpdate to latest version
keyboard_arrow_down

Xamarin.Forms

keyboard_arrow_down

Fundamentals

keyboard_arrow_down

FAQ

System requirementsPDFTron full vs. standardReduce size of APK
keyboard_arrow_down

Document Viewer

keyboard_arrow_down

Document Viewer components

Overview
play_arrow

PDFViewCtrl

play_arrow

Reflow

Xamarin.AndroidXamarin.iOSQuick menuCustomize quick menu
play_arrow

Annotation toolbar

Xamarin.AndroidXamarin.iOS
play_arrow

Annotation style editor

play_arrow

Page slider

Xamarin.AndroidXamarin.iOS
play_arrow

List container

play_arrow

Annotation list

Xamarin.AndroidXamarin.iOS
play_arrow

Document outline

Xamarin.AndroidXamarin.iOS
play_arrow

User bookmark list

Xamarin.AndroidXamarin.iOS
play_arrow

Thumbnail browser

Xamarin.AndroidXamarin.iOSAdd pages dialogCrop pages dialogRotate pages dialogView mode dialog
keyboard_arrow_down

Annotation and collaboration

OverviewToolManager setupRead only mode
play_arrow

Disable annotation creation and editing

Xamarin.AndroidXamarin.iOS
play_arrow

Default annotation properties

Xamarin.AndroidXamarin.iOS
play_arrow

Change tool mode

play_arrow

Events

Xamarin.AndroidXamarin.iOS
play_arrow

Override annotation handling

Show and hide existing annotationsRealtime collaboration
keyboard_arrow_down

Advanced customization

play_arrow

Add a custom view to a page

Create a custom toolPage coloring modePage fit modePage layout modeScrolling direction
keyboard_arrow_down

Conversion

keyboard_arrow_down

Parsing and extraction

keyboard_arrow_down

Digital signatures

keyboard_arrow_down

Search

keyboard_arrow_down

Advanced topics

PrintUnderstand coordinatesGenerate page thumbnails
keyboard_arrow_down

Troubleshooting

Reduce memory consumption
keyboard_arrow_down

Reference

LocalizationIcon cheat sheet
keyboard_arrow_down

PDF Processing API

What is PDFNet?Opening a documentSerializing (saving) a documentWorking with pagesWorking with Page ContentWorking with BookmarksWorking with Interactive Forms (AcroForms)PDF SecurityLow-level PDF APIError handling

Disable annotation creation and editing

In this document
chevron_rightDisable annotation tools
chevron_rightDisable functionality
This tutorial only applies to Xamarin.iOS.

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.

linkDisable annotation tools

Annotation creation and editing can be disabled on the ToolManager based on the annotation type with the SetPermissionsForExtendedAnnotType method:

When disabling creation or editing of annotations, the PTExtendedAnnotType enum is used. This 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.

linkDisable functionality

Functionality that is not directly tied to annotations is called an "interaction tool". The current interaction tools include text selection, form filling, link following, and ink erasing. The tool types are available in the PTInteractionToolType enum.

Interaction tools can be disabled on the ToolManager based on the tool type:

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).