Some test text!

menu
Apple Pencilkeyboard_arrow_down

Apple Pencil

linkOverview

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

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

linkAnnotating 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:

ModeDescription
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

close

Free Trial

Get unlimited trial usage of PDFTron SDK to bring accurate, reliable, and fast document processing capabilities to any application or workflow.

Select a platform to get started with your free trial.

Unlimited usage. No email address required.

Join our upcoming webinar to learn about how to collaborate on videos frame by frame directly in your browser

Save your seat
close