Set PDF Viewer to Pan when viewer is initialised

Hi,

When the viewer is initialised and the document is loaded, I want it set it to PAN rather than TEXT SELECTION TOOL.

Can this be done?

Regards,


Steve


2 Replies

ST steve September 11, 2025 11:27 AM UTC

found it


  InteractionMode="InteractionMode.Pan"


VS Venkada Subramanian Durai Syncfusion Team September 11, 2025 03:07 PM UTC

Hi steve,

Thank you for the update. Yes, you can use the InteractionMode API to set the PAN interaction mode in the PDF Viewer. Additionally, you can completely disable text selection by setting EnableTextSelection to false.
 

Please feel free to reach out if you need any assistance or have additional requirements.

InteractionMode  API:
 

<SfPdfViewer2 Height="100%" Width="100%" InteractionMode="InteractionMode.Pan">

  

</SfPdfViewer2>


EnableTextSelection  API:
 

<SfPdfViewer2 Height="100%" Width="100%" EnableTextSelection="false">

  

</SfPdfViewer2>



Regards,
Venkada Subramanian D


Loader.
Up arrow icon