Disable All UI Interaction

There are several ways to modify PDF documents — for instance, by adding annotations or filling forms. The PDF format has standard restrictions (see the secured documents guide), but in addition to those built-in restrictions, PSPDFKit gives you control over how to restrict certain modifications of PDF documents.

UI

Disabling All UI Interaction

If you want to disable all UI interactions, including scrolling, the thumbnail bar, and all toolbar items, you can call PdfActivity#setUserInterfaceEnabled(false).

Disabling Scrolling

If you want to disable scrolling and zooming while keeping everything else (including the thumbnail bar and all toolbar items) enabled, you can call PdfActivity#setDocumentInteractionEnabled(false). Keep in mind that the user will still be able to change the current page using the thumbnail bar.