Interaction Mode

The ejPdfViewer control provides interaction modes for easy interaction with the PDF documents in the control. Selection mode and Panning mode are the two interaction modes.

Selection Mode

In this mode, the text selection can be performed in the PDF document loaded in the ejPdfViewer control. The panning and scrolling of the pages by touch cannot be performed in this mode.

Interaction mode select

Enable or disable the Text selection

The text selection in the PDF viewer control can be enabled or disabled using the enableTextSelection property.

  • javascript
  • $(function () {
        $("#viewer").ejPdfViewer({ serviceUrl: "https://js.syncfusion.com/ejServices/api/PdfViewer", enableTextSelection: true});
    });

    Panning Mode

    In this mode, the panning and scrolling of the pages by touch can be performed in the PDF document loaded in the ejPdfViewer control, but the text selection cannot be performed.

    Interaction mode pan

    Changing the interaction mode

    The interaction mode of the PDF viewer control can be set using the interactionMode property.

  • javascript
  • $(function () {
        $("#viewer").ejPdfViewer({ serviceUrl: "https://js.syncfusion.com/ejServices/api/PdfViewer", interactionMode: 1});
    });