PDFViewCtrl read only

ToolManager class handles all user interactions in PDFViewCtrl and can be used to make PDFViewCtrl read only as follows.

Disabling PDF editing

To disable PDF editing, such as adding annotations, call ToolManager.setReadOnly(boolean).

toolManager.setReadOnly(true);

where toolManager is the instance of ToolManager.

Disabling all user interaction on PDFViewCtrl

To disable all user interaction on PDFViewCtrl, including selecting text, copy text, etc. set the ToolManager of PDFViewCtrl to null by calling PDFViewCtrl.setToolManager(ToolManager):

pdfViewCtrl.setToolManager(null);

where pdfViewCtrl is the instance of PDFViewCtrl.

Disabling specified tools in ToolManager

To disable specified tools in ToolManager, see: disabling tools in ToolManager.