Text Selection

Text selection is controlled via the PSPDFTextSelectionView which is part of every PSPDFPageView via the selectionView property.

The PSPDFViewControllerDelegate has delegates that both allow to selectively block text selection shouldSelectText:withGlyphs:atRect:onPageView: and to be notified whenever a text has been selected didSelectText:withGlyphs:atRect:onPageView:

Text selection can also be disabled via the textSelectionEnabled switch in the configuration object.

Text can be programmatically selected via setting selectedGlyphs or selectedImage for image selection. Nil out these properties to clear any current selection.