Some test text!

Discord Logo

Chat with us

PDFTron is now Apryse, learn more here.

iOS / Guides / Apple Pencil


PDFTron is now Apryse, learn more here.

Apple Pencil


Apryse's iOS SDK has full support for the Apple Pencil. This guide describes the various settings and how to change them.

Annotating without an annotation tool selected

When the user does not have an annotation tool selected (ie the active tool is the pan tool), the pencil can either draw an ink annotation (default behavior), or act as a finger touch. This behavior can be changed using the applePencilDrawsInk.

Annotating with only the pencil

When the user has an Apple Pencil paired with the device, it is possible to restrict annotation creation to only pencil touches. This allows the user to conveniently scroll with a single finger. It is also useful in preventing a user's palm from inadvertently creating an annotation.

The PTToolsSettingsManager's pencilInteractionMode controls how touches are interpreted when an Apple Pencil is paired:

PTPencilInteractionModeFingerAndPencilFinger touches will annotate (default on iOS 13)
PTPencilInteractionModePencilOnlyFinger touches will not annotate. Single finger can be used to scroll.
PTPencilInteractionModeSystemFollows the system setting (default on iOS 14+)

Get the answers you need: Support