Search results

PdfViewerComponent

`Represents the react PdfViewer Component.

<PdfViewerComponent />

Properties

Get or set the dropdown field settings.

accessibilityTags

AccessibilityTags

Gets the Accessibility Tags object of the pdf viewer.

ajaxRequestSettings

AjaxRequestSettingsModel

Defines the ajax Request settings of the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        ajaxRequestSettings={{
          ajaxHeaders: [
            {
              headerName: "Authorization",
              headerValue: "Bearerabcdefghijklmnopqrstuvwxyz"
            }
          ],
          withCredentials: false
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

annotation

Annotation

Gets the annotation object of the pdf viewer.

annotationCollection

any[]

Get the Loaded document annotation Collections in the PdfViewer control.

<body>
    <button onclick="annot()">Annotation collection</button>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>
</body>

<script>
    function annot(){
        var viewer = document.getElementById('container').ej2_instances[0];	
        // Logs the annotation collection.
        console.log(viewer.annotationCollection);
    }
 </script>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
      id="container" 
      documentPath="PDF_Succinctly.pdf"
      serviceUrl="https://localhost:44309/pdfviewer" 
      style={{ 'height': '680px' }} 
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

annotationSelectorSettings

AnnotationSelectorSettingsModel

Defines the settings of annotation selector.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the annotation selector settings.
        annotationSelectorSettings={{
          selectionBorderColor: 'blue', 
          resizerBorderColor: 'red', 
          resizerFillColor: '#4070ff', 
          resizerSize: 8, 
          selectionBorderThickness: 1, 
          resizerShape: 'Square', 
          selectorLineDashArray: [5, 6], 
          resizerLocation: AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges, 
          resizerCursorType: CursorType.grab 
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

annotationSettings

AnnotationSettingsModel

Defines the settings of the annotations.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the annotation settings.
        annotationSettings = {{
          author: 'XYZ', 
          minHeight: 10, 
          minWidth: 10, 
          maxWidth: 100, 
          maxHeight: 100, 
          isLock: false, 
          skipPrint: false, 
          skipDownload: false, 
          allowedInteractions: ['Resize'] 
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

areaSettings

AreaSettingsModel

Defines the settings of area annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the area annotation settings.
        areaSettings={{ 
          opacity: 1, 
          fillColor: '#ffffff00', 
          strokeColor: '#ff0000', 
          author: 'XYZ', 
          thickness: 1, 
          minHeight: 10, 
          minWidth: 10, 
          maxWidth: 100, 
          maxHeight: 100, 
          isLock: false, 
          annotationSelectorSettings: { 
            selectionBorderColor: 'blue', 
            resizerBorderColor: 'black', 
            resizerFillColor: '#4070ff', 
            resizerSize: 8, 
            selectionBorderThickness: 1, 
            resizerShape: 'Circle', 
            selectorLineDashArray: [5, 6], 
            resizerLocation: AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges, 
            resizerCursorType: CursorType.grab 
          }, 
          allowedInteractions: ['Resize'], 
          isPrint: true 
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

arrowSettings

ArrowSettingsModel

Defines the settings of arrow annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the arrow annotation settings.
        arrowSettings={{ 
          opacity: 1, 
          fillColor: '#9c2592', 
          strokeColor: '#ff0000', 
          author: 'XYZ', 
          thickness: 1, 
          borderDashArray: 1, 
          lineHeadStartStyle: 'Closed', 
          lineHeadEndStyle: 'Closed', 
          annotationSelectorSettings: {
            selectionBorderColor: 'blue', 
            resizerBorderColor: 'black', 
            resizerFillColor: '#FF4081', 
            resizerSize: 8, 
            selectionBorderThickness: 1, 
            resizerShape: 'Square', 
            selectorLineDashArray: [5, 6], 
            resizerLocation: 
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges, 
            resizerCursorType: CursorType.grab 
          }, 
          minHeight: 10, 
          minWidth: 10, 
          maxWidth: 100, 
          maxHeight: 100, 
          isLock: false, 
          allowedInteractions: ['Resize'], 
          isPrint: true 
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

bookmark

BookmarkView

Gets the bookmark view object of the pdf viewer.

checkBoxFieldSettings

CheckBoxFieldSettingsModel

Get or set the check box field settings.

circleSettings

CircleSettingsModel

Defines the settings of circle annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the circle annotation settings.
        circleSettings = {{ 
          opacity: 1, 
          fillColor: '#9c2592', 
          strokeColor: '#ff0000', 
          author: 'XYZ', 
          thickness: 1, 
          annotationSelectorSettings: { 
            selectionBorderColor: 'blue',
            resizerBorderColor: 'black', 
            resizerFillColor: '#FF4081', 
            resizerSize: 8, 
            selectionBorderThickness: 1, 
            resizerShape: 'Square', 
            selectorLineDashArray: [5, 6], 
            resizerLocation: 
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges, 
            resizerCursorType: CursorType.grab 
          }, 
          minHeight: 10, 
          minWidth: 10, 
          maxWidth: 100, 
          maxHeight: 100, 
          isLock: false, 
          allowedInteractions: ['Resize'], 
          isPrint: true 
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

contextMenuOption

ContextMenuAction

Specifies the state of the ContextMenu in the PDF document.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the settings of the context menu option.
        contextMenuOption = "None"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to RightClick

contextMenuSettings

ContextMenuSettingsModel

Defines the context menu settings.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, ContextMenuItem } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the context menu settings.
        contextMenuSettings = {{ 
          contextMenuAction: 'RightClick', 
          contextMenuItems: [
            ContextMenuItem.Comment, 
            ContextMenuItem.Copy, 
            ContextMenuItem.Cut, 
            ContextMenuItem.Delete, 
            ContextMenuItem.Highlight, 
            ContextMenuItem.Paste, 
            ContextMenuItem.Properties, 
            ContextMenuItem.ScaleRatio, 
            ContextMenuItem.Strikethrough, 
            ContextMenuItem.Underline
          ] 
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

currentPageNumber

number

Returns the current page number of the document displayed in the PdfViewer control.

<body>
    <button onclick="currentPage()">Current Page Number</button>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>
</body>

<script>
    function currentPage(){
        var viewer = document.getElementById('container').ej2_instances[0];	
        // Logs the current page number.
        console.log("Current page number is - " + viewer.currentPageNumber);
    }
 </script>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
      
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to 0

customStamp

CustomStampModel[]

Defines the stamp items of the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Add your custom stamp image source as base64 image.
        customStamp = {[
            { 
              customStampName: 'Sample', 
              customStampImageSource: "data:image/png;base64, Syncfusionpdfviewer"
            }
        ]}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

customStampSettings

CustomStampSettingsModel

Defines the settings of customStamp annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the custom stamp settings.
        customStampSettings = {{ 
            opacity: 1, 
            author: 'XYZ', 
            width: 100, 
            height: 100, 
            left: 200, 
            top: 200, 
            minHeight: 10, 
            minWidth: 10, 
            maxWidth: 100, 
            maxHeight: 100, 
            isLock: false, 
            enableCustomStamp: true, 
            allowedInteractions: ['None'],
            isPrint: true 
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

dateTimeFormat

string

Customize desired date and time format

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the date time format.
        dateTimeFormat = "yyyy-MM-dd HH:mm:ss"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

designerMode

boolean

Enable or disable the interaction of form fields in the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        designerMode = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

disableContextMenuItems

ContextMenuItem[]

Disables the menu items in the context menu.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, ContextMenuItem } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Show or hide the context menu items.
        disableContextMenuItems = {[
          ContextMenuItem.Copy,
          ContextMenuItem.Paste
        ]}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to []

distanceSettings

DistanceSettingsModel

Defines the settings of distance annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the distance annotation settings.
        distanceSettings = {{ 
          opacity: 1, 
          fillColor: '#ffffff00', 
          strokeColor: '#ff0000', 
          author: 'Guest', 
          thickness: 1, 
          borderDashArray: 1, 
          lineHeadStartStyle: 'Closed', 
          lineHeadEndStyle: 'Closed', 
          annotationSelectorSettings: { 
            selectionBorderColor: 'blue', 
            resizerBorderColor: 'black', 
            resizerFillColor: '#FF4081', 
            resizerSize: 8, 
            selectionBorderThickness: 1, 
            resizerShape: 'Square', 
            selectorLineDashArray: [5, 6], 
            resizerLocation: AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges, 
            resizerCursorType: CursorType.grab 
          }, 
          minHeight: 10, 
          minWidth: 10, 
          maxWidth: 100, 
          maxHeight: 100, 
          isLock: false, 
          leaderLength: 40, 
          resizeCursorType: CursorType.move, 
          allowedInteractions: ['Resize'], 
          isPrint: true 
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

documentPath

string

Sets the PDF document path for initial loading.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

downloadFileName

string

Gets or sets the download file name in the PdfViewer control.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        downloadFileName = 'Document_Downloaded'
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

enableAccessibilityTags

boolean

Determines whether accessibility tags are enabled or disabled. Accessibility tags can help make web content more accessible to users with disabilities.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, AccessibilityTags, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable download.
        enableAccessibilityTags = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner, AccessibilityTags]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableAnnotation

boolean

Enable or disable the annotation in the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable the Add or Edit Annotations tool in the toolbar.
        enableAnnotation = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableAnnotationToolbar

boolean

Opens the annotation toolbar when the PDF document is loaded in the PDF Viewer control initially.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Show or hide the annotation toolbar.
        enableAnnotationToolbar = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableAutoComplete

boolean

Enable or disables the auto complete option in form documents.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        enableAutoComplete = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableBookmark

boolean

Enables or disables the bookmark view in the PDF viewer

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Show or hide the bookmark tool.
        enableBookmark = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableBookmarkStyles

boolean

Enables or disables the bookmark styles in the PDF viewer

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable bookmark styles.
        enableBookmarkStyles = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

enableCommentPanel

boolean

Enable or disables the Comment Panel of PdfViewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable comment panel.
        enableCommentPanel = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableDesktopMode

boolean

Gets or sets a boolean value to show or hide desktop toolbar in mobile devices.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable desktop mode.
        enableDesktopMode = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

enableDownload

boolean

Enable or disables the download option of PdfViewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable download.
        enableDownload = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableFormDesigner

boolean

Show or hide the form designer tool in the main toolbar of the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable form designer.
        enableFormDesigner = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableFormDesignerToolbar

boolean

Opens the form designer toolbar when the PDF document is loaded in the PDF Viewer control initially.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable form designer.
        enableFormDesigner = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableFormFields

boolean

Enable or disable the form fields in the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable form fields.
        enableFormFields = "false";
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableFormFieldsValidation

boolean

Enable or disable the form fields validation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable form fields.
        enableFormFieldsValidation = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

enableFreeText

boolean

Enable or disable the free text annotation in the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable free text.
        enableFreeText = "false";
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableHandwrittenSignature

boolean

Enables or disables the handwritten signature in PDF document.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable hand written signature.
        enableHandwrittenSignature = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

Enables or disables the hyperlinks in PDF document.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable hyper link.
        enableHyperlink = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableImportAnnotationMeasurement

boolean

Enable or disable the customization of measure values in PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable import annotation measurement.
        enableImportAnnotationMeasurement = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableInkAnnotation

boolean

If it is set as false, then the ink annotation support in the PDF Viewer will be disabled. By default it is true.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable ink annotation.
        enableInkAnnotation = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableMagnification

boolean

Enable or disable the Magnification module of PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable magnification.
        enableMagnification = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableMeasureAnnotation

boolean

Enable or disable the calibrate annotation in the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable measure annotation.
        enableMeasureAnnotation = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableMultiLineOverlap

boolean

Enable or disable the multi line text markup annotations in overlapping collections.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable multi line text markup annotations in overlapping collections.
        enableMultiLineOverlap = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

enableMultiPageAnnotation

boolean

Enables or disables the multi-page text markup annotation selection in UI.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable multi-page text markup annotation selection.
        enableMultiPageAnnotation = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

enableNavigation

boolean

Enable or disable the Navigation module of PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable navigation.
        enableNavigation = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableNavigationToolbar

boolean

Enable or disables the Navigation toolbar of PdfViewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable navigation tool bar.
        enableNavigationToolbar = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enablePersistence

boolean

Enable or disable persisting component’s state between page reloads.

Defaults to false

enablePinchZoom

boolean

Enable or disable the pinch zoom option in the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable pinch zoom.
        enablePinchZoom = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enablePrint

boolean

Enable or disables the print option of PdfViewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable print.
        enablePrint = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enablePrintRotation

boolean

If it is set as FALSE, will suppress the page rotation of Landscape document on print action. By default it is TRUE.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        enablePrintRotation = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableRtl

boolean

Enable or disable rendering component in right to left direction.

Defaults to false

enableShapeAnnotation

boolean

Enable or disable the shape annotation in the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable sahpe annotation.
        enableShapeAnnotation = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableShapeLabel

boolean

Enable or disable the Label for shapeAnnotations of PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable shape label for shape annotations.
        enableShapeLabel = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

enableStampAnnotations

boolean

Enables and disable the stamp annotations when the PDF viewer control is loaded initially.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable stamp annotations.
        enableStampAnnotations = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableStickyNotesAnnotation

boolean

Enables and disable the stickyNotes annotations when the PDF viewer control is loaded initially.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable sticky notes annotation.
        enableStickyNotesAnnotation = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableTextMarkupAnnotation

boolean

Enable or disable the text markup annotation in the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable text markup annotation.
        enableTextMarkupAnnotation = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableTextMarkupResizer

boolean

Enable or disable the text markup resizer to modify the bounds in UI.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable text mark up resizer.
        enableTextMarkupResizer = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

enableTextSearch

boolean

Enable or disable the text search in the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable text search.
        enableTextSearch = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableTextSelection

boolean

Enable or disable the text selection in the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable text selection.
        enableTextSelection = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableThumbnail

boolean

Enables or disables the thumbnail view in the PDF viewer

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable thumb nail.
        enableThumbnail = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableToolbar

boolean

Enable or disables the toolbar of PdfViewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable tool bar.
        enableToolbar = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

enableZoomOptimization

boolean

Enable or disable the zoom optimization mode in PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable zoom optimization.
        enableZoomOptimization = "false"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

exportAnnotationFileName

string

Gets or sets the export annotations JSON file name in the PdfViewer control.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the export annotation file name.
        exportAnnotationFileName = 'Annotation export file_1'
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

fileName

string

Gets or sets the document name loaded in the PdfViewer control.

<body>
    <button onclick="file()">File Name</button>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>
</body>

<script>
    function file(){
        var viewer = document.getElementById('container').ej2_instances[0];	
        // Logs the loaded PDF file name.
        console.log("File name - " + viewer.fileName);
    }
 </script>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
      id="container" 
      documentPath="PDF_Succinctly.pdf"
      serviceUrl="https://localhost:44309/pdfviewer" 
      style={{ 'height': '680px' }} 
      
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

formDesigner

FormDesigner

Gets the FormDesigner object of the pdf viewer.

formFieldCollections

FormFieldModel[]

Gets the form fields present in the loaded PDF document. It used to get the form fields id, name, type and it’s values.

<body>
    <button onclick="form()">Form Field Collections</button>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>
</body>

<script>
    function form(){
        var viewer = document.getElementById('container').ej2_instances[0];	
        // Logs the form field collections.
        console.log(viewer.formFieldCollections);
    }
 </script>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
      id="container" 
      documentPath="PDF_Succinctly.pdf"
      serviceUrl="https://localhost:44309/pdfviewer" 
      style={{ 'height': '680px' }} 
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

freeTextSettings

FreeTextSettingsModel

Defines the settings of free text annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation, FontStyle } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Changes the free text annotation settings.
        freeTextSettings = {{
          opacity: 1,
          fillColor: "#ffffff00",
          borderColor: "#4070ff",
          author: "XYZ",
          borderWidth: 1,
          width: 151,
          fontSize: 16,
          height: 24.6,
          fontColor: "#000",
          fontFamily: "Helvetica",
          defaultText: "Type Here",
          textAlignment: "Right",
          fontStyle: FontStyle.Italic,
          allowTextOnly: false,
          annotationSelectorSettings: {
            selectionBorderColor: "blue",
            resizerBorderColor: "black",
            resizerFillColor: "#FF4081",
            resizerSize: 8,
            selectionBorderThickness: 1,
            resizerShape: "Circle",
            selectorLineDashArray: [],
            resizerLocation:
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
            resizerCursorType: null
          },
          minHeight: 10,
          minWidth: 10,
          maxWidth: 100,
          maxHeight: 100,
          isLock: false,
          allowedInteractions: ["None"],
          isPrint: true,
          isReadonly: false,
          enableAutoFit: false
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

handWrittenSignatureSettings

HandWrittenSignatureSettingsModel

Defines the settings of handWrittenSignature.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Changes the hand written signature settings.
        handWrittenSignatureSettings = {{
          signatureItem: ["Signature", "Initial"],
          saveSignatureLimit: 1,
          saveInitialLimit: 1,
          opacity: 1,
          strokeColor: "#000000",
          width: 150,
          height: 100,
          thickness: 1,
          annotationSelectorSettings: {
            selectionBorderColor: "blue",
            resizerBorderColor: "black",
            resizerFillColor: "#FF4081",
            resizerSize: 8,
            selectionBorderThickness: 1,
            resizerShape: "Circle",
            selectorLineDashArray: [5, 6],
            resizerLocation:
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
            resizerCursorType: CursorType.grab
          },
          allowedInteractions: ["Resize"],
          signatureDialogSettings: {
            displayMode: DisplayMode.Draw | DisplayMode.Text | DisplayMode.Upload,
            hideSaveSignature: false
          },
          initialDialogSettings: {
            displayMode: DisplayMode.Draw | DisplayMode.Text | DisplayMode.Upload,
            hideSaveSignature: false
          }
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

height

string | number

Defines the scrollable height of the PdfViewer control.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the height of the PDF viewer.
        height = {500}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to ‘auto’

hideSaveSignature

boolean

Gets or sets a boolean value to show or hide the save signature check box option in the signature dialog. FALSE by default

Defaults to false

highlightSettings

HighlightSettingsModel

Defines the settings of highlight annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Changes the highlight annotation settings.
        highlightSettings = {{
          opacity: 1,
          color: "#DAFF56",
          author: "XYZ",
          annotationSelectorSettings: {
            selectionBorderColor: "blue",
            resizerBorderColor: "black",
            resizerFillColor: "#FF4081",
            resizerSize: 8,
            selectionBorderThickness: 1,
            resizerShape: "Square",
            selectorLineDashArray: [5, 6],
            resizerLocation:
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges
          },
          isLock: false,
          enableMultiPageAnnotation: false,
          enableTextMarkupResizer: false,
          allowedInteractions: ["Resize"],
          isPrint: true
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

hyperlinkOpenState

LinkTarget

Specifies the open state of the hyperlink in the PDF document.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        hyperlinkOpenState = 'NewTab'
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to CurrentTab

initialDialogSettings

SignatureDialogSettingsModel

Get or set the signature dialog settings for initial field.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, DisplayMode } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Changes the initial dialog settings.
        initialDialogSettings = {{ 
          displayMode: DisplayMode.Draw | DisplayMode.Text | DisplayMode.Upload,
          hideSaveSignature: true
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

initialFieldSettings

InitialFieldSettingsModel

Get or set the initial field settings.

initialRenderPages

number

Initially renders the first N pages of the PDF document when the document is loaded.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, AccessibilityTags, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Specifies the maximum number of pages that should be rendered on the document loading.
        initialRenderPages = 4
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner, AccessibilityTags]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to 2

inkAnnotationSettings

InkAnnotationSettingsModel

Defines the ink annotation settings for PDF Viewer.It used to customize the strokeColor, thickness, opacity of the ink annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Changes the ink annotation settings.
        inkAnnotationSettings = {{
          author: "XYZ",
          opacity: 1,
          strokeColor: "#ff0000",
          thickness: 1,
          annotationSelectorSettings: {
            selectionBorderColor: "blue",
            resizerBorderColor: "black",
            resizerFillColor: "#FF4081",
            resizerSize: 8,
            selectionBorderThickness: 1,
            resizerShape: "Circle",
            selectorLineDashArray: [5, 6],
            resizerLocation:
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
            resizerCursorType: CursorType.grab
          },
          isLock: false,
          allowedInteractions: ["Resize"],
          isPrint: true
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

interactionMode

InteractionMode

Sets the interaction mode of the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the interaction mode.
        interactionMode = "Pan"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to TextSelection

isAnnotationToolbarOpen

boolean

Opens the annotation toolbar when the PDF document is loaded in the PDF Viewer control initially.

Defaults to false

isAnnotationToolbarVisible

boolean

Opens the annotation toolbar when the PDF document is loaded in the PDF Viewer control initially and get the annotation Toolbar Visible status.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Show or hide the annotation tool bar.
        isAnnotationToolbarVisible = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

isBookmarkPanelOpen

boolean

Gets or sets a boolean value to show or hide the bookmark panel while loading a document.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Show or hide the bookmark panel.
        isBookmarkPanelOpen = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

isCommandPanelOpen

boolean

If it set as true, then the command panel show at initial document loading in the PDF viewer

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Show or hide the command panel.
        isCommandPanelOpen = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

isDocumentEdited

boolean

Checks whether the PDF document is edited.

<body>
    <button onclick="doc()">Is Document Edited</button>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div> 
</body>

<script>
    function doc(){
        var viewer = document.getElementById('container').ej2_instances[0];	
        // Logs whether the PDF document is edited.
        console.log("Is the document edited - " + viewer.isDocumentEdited );
    }
 </script>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
      id="container" 
      documentPath="PDF_Succinctly.pdf"
      serviceUrl="https://localhost:44309/pdfviewer" 
      style={{ 'height': '680px' }} 
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

isExtractText

boolean

Enable or disable the text extract from the PDF viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        isExtractText = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

isFormDesignerToolbarVisible

boolean

Opens the annotation toolbar when the PDF document is loaded in the PDF Viewer control initially and get the annotation Toolbar Visible status.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Show or hide form designer toolbar.
        isFormDesignerToolbarVisible = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

isFormFieldDocument

boolean

Enable if the PDF document contains form fields.

<body>
    <button onclick="form()">Is Form Field Document</button>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>
</body>

<script>
    function form(){
        var viewer = document.getElementById('container').ej2_instances[0];	
        // Logs the presence of form fields in a document.
        console.log("Is form fields exist in the document - " + viewer.isFormFieldDocument);
    }
 </script>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
      id="container" 
      documentPath="PDF_Succinctly.pdf"
      serviceUrl="https://localhost:44309/pdfviewer" 
      style={{ 'height': '680px' }} 
      
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

isMaintainSelection

boolean

Maintain the selection of text markup annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        isMaintainSelection = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

isSignatureEditable

boolean

Enables or disable saving Hand Written signature as editable in the PDF.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Enable or disable saving the hand written signature.
        isSignatureEditable = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

isThumbnailViewOpen

boolean

If it set as true, then the thumbnail view show at initial document loading in the PDF viewer

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Show or hide the thumbnail view.
        isThumbnailViewOpen = "true"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

isValidFreeText

boolean

Checks if the freeText value is valid or not.

<body>
    <button onclick="validText()">Show is free text is valid or not</button>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>
</body>

<script>
    function validText(){
        var viewer = document.getElementById('container').ej2_instances[0];	
        // Logs the freeText value is valid or not. 
        console.log("Is valid FreeText - " + viewer.isValidFreeText);
    }
 </script>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
      id="container" 
      documentPath="PDF_Succinctly.pdf"
      serviceUrl="https://localhost:44309/pdfviewer" 
      style={{ 'height': '680px' }} 
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

lineSettings

LineSettingsModel

Defines the settings of line annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the line annotation settings.
        lineSettings = {{
          opacity: 1,
          color: "#9c2592",
          fillColor: '#ffffff00',
          strokeColor: '#ff0000',
          author: "XYZ",
          thickness: 1,
          borderDashArray: 1, 
          lineHeadStartStyle: 'None', 
          lineHeadEndStyle: 'None',
          annotationSelectorSettings: {
            selectionBorderColor: "blue",
            resizerBorderColor: "black",
            resizerFillColor: "#FF4081",
            resizerSize: 8,
            selectionBorderThickness: 1,
            resizerShape: "Square",
            selectorLineDashArray: [5, 6],
            resizerLocation:
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges, 
            resizerCursorType: CursorType.grab
          },
          minHeight: 10, 
          minWidth: 10, 
          maxWidth: 100, 
          maxHeight: 100, 
          isLock: false, 
          allowedInteractions: ['Resize'], 
          isPrint: true 
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

listBoxFieldSettings

ListBoxFieldSettingsModel

Get or set the listbox field settings.

locale

string

Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.

Defaults to

magnification

Magnification

Gets the magnification object of the pdf viewer.

measurementSettings

MeasurementSettingsModel

Defines the settings of measurement annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the measurement annotation settings.
        measurementSettings = {{ 
          conversionUnit: 'cm', 
          displayUnit: 'cm', 
          scaleRatio: 1, 
          depth: 96 
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Gets the navigation object of the pdf viewer.

pageCount

number

gets the page count of the document loaded in the PdfViewer control.

<body>
    <button onclick="count()">Page Count</button>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>
</body>

<script>
    function count(){
        var viewer = document.getElementById('container').ej2_instances[0];	
        console.log("Total page count = " + viewer.pageCount);
    }
 </script>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
      id="container" 
      documentPath="PDF_Succinctly.pdf"
      serviceUrl="https://localhost:44309/pdfviewer" 
      style={{ 'height': '680px' }} 
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to 0

passwordFieldSettings

PasswordFieldSettingsModel

Get or set the password field settings.

perimeterSettings

PerimeterSettingsModel

Defines the settings of perimeter annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the perimeter annotation settings.
        perimeterSettings = {{
          opacity: 1,
          fillColor: "#ffffff00",
          strokeColor: "#ff0000",
          author: "XYZ",
          thickness: 1,
          borderDashArray: 1,
          lineHeadStartStyle: "Open",
          lineHeadEndStyle: "Open",
          minHeight: 10,
          minWidth: 10,
          maxWidth: 100,
          maxHeight: 100,
          isLock: false,
          annotationSelectorSettings: {
            selectionBorderColor: "blue",
            resizerBorderColor: "black",
            resizerFillColor: "#4070ff",
            resizerSize: 8,
            selectionBorderThickness: 1,
            resizerShape: "Circle",
            selectorLineDashArray: [5, 6],
            resizerLocation:
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
            resizerCursorType: CursorType.grab
          },
          allowedInteractions: ["Resize"],
          isPrint: true
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

polygonSettings

PolygonSettingsModel

Defines the settings of polygon annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the polygon annotation settings.
        polygonSettings = {{
          opacity: 1,
          fillColor: "#ffffff00",
          strokeColor: "#ff0000",
          author: "XYZ",
          thickness: 1,
          annotationSelectorSettings: {
            selectionBorderColor: "blue",
            resizerBorderColor: "black",
            resizerFillColor: "#FF4081",
            resizerSize: 8,
            selectionBorderThickness: 1,
            resizerShape: "Square",
            selectorLineDashArray: [5, 6],
            resizerLocation:
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
            resizerCursorType: CursorType.grab
          },
          minHeight: 10,
          minWidth: 10,
          maxWidth: 100,
          maxHeight: 100,
          isLock: false,
          allowedInteractions: ["Resize"],
          isPrint: true
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

print

Print

Gets the print object of the pdf viewer.

printMode

PrintMode

Specifies the print mode in the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        printMode = "NewWindow"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to Default

radioButtonFieldSettings

RadioButtonFieldSettingsModel

Get or set the radio button field settings.

radiusSettings

RadiusSettingsModel

Defines the settings of radius annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the radius annotation settings.
        radiusSettings = {{
          opacity: 1,
          fillColor: "#ffffff00",
          strokeColor: "#ff0000",
          author: "XYZ",
          thickness: 1,
          annotationSelectorSettings: {
            selectionBorderColor: "blue",
            resizerBorderColor: "red",
            resizerFillColor: "#4070ff",
            resizerSize: 8,
            selectionBorderThickness: 1,
            resizerShape: "Circle",
            selectorLineDashArray: [5, 6],
            resizerLocation:
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
            resizerCursorType: CursorType.grab
          },
          minHeight: 10,
          minWidth: 10,
          maxWidth: 100,
          maxHeight: 100,
          isLock: false,
          allowedInteractions: ["Resize"],
          isPrint: true
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

rectangleSettings

RectangleSettingsModel

Defines the settings of rectangle annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the rectangle annotation settings.
        rectangleSettings = {{
          opacity: 1,
          fillColor: "#9c2592",
          strokeColor: "#ff0000",
          author: "XYZ",
          thickness: 1,
          annotationSelectorSettings: {
            selectionBorderColor: "blue",
            resizerBorderColor: "black",
            resizerFillColor: "#FF4081",
            resizerSize: 8,
            selectionBorderThickness: 1,
            resizerShape: "Square",
            selectorLineDashArray: [5, 6],
            resizerLocation:
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
            resizerCursorType: CursorType.grab
          },
          minHeight: 10,
          minWidth: 10,
          maxWidth: 100,
          maxHeight: 100,
          isLock: false,
          allowedInteractions: ["Resize"],
          isPrint: true
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

resourceUrl

string

Set the resource URL for assets or the public directory. The standalone PDF Viewer will load its custom resources from this URL.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="https://cdn.syncfusion.com/content/pdf/pdf-succinctly.pdf"
        resourceUrl="http://localhost:3000/ej2-pdfviewer-lib" 
        style={{ 'height': '680px' }} 
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to

restrictZoomRequest

boolean

restrict zoom request.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        restrictZoomRequest = {true}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to false

retryCount

number

Specifies the retry count for the failed requests.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        retryCount = {3}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to 1

retryStatusCodes

number[]

Specifies the response status codes for retrying a failed request with a “3xx”, “4xx”, or “5xx” response status code. The value can have multiple values, such as [500, 401, 400], and the default value is 500.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the retry status code as 405, 503, etc;
        retryStatusCodes = {[500, 401, 400]}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to [500]

retryTimeout

number

Gets or sets the timeout for retries in seconds.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, AccessibilityTags, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        retryCount="5"
        retryTimeout="10"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner, AccessibilityTags]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to 0

scrollSettings

ScrollSettingsModel

Defines the scroll settings.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the scroll settings.
        scrollSettings = {{ 
          delayPageRequestTimeOnScroll: 150 
      }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

selectedItems

SelectorModel

Defines the collection of selected items, size and position of the selector

Defaults to {}

serverActionSettings

ServerActionSettingsModel

Defines the settings of the PDF Viewer service.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the server action settings.
        serverActionSettings = {{
          load: "Load",
          renderPages: "RenderPdfPages",
          unload: "Unload",
          download: "Download",
          renderThumbnail: "RenderThumbnailImages",
          print: "PrintImages",
          renderComments: "RenderAnnotationComments",
          importAnnotations: "ImportAnnotations",
          exportAnnotations: "ExportAnnotations",
          importFormFields: "ImportFormFields",
          exportFormFields: "ExportFormFields",
          renderTexts: "RenderPdfTexts"
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

serviceUrl

string

Defines the service url of the PdfViewer control.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

shapeLabelSettings

ShapeLabelSettingsModel

Defines the settings of shape label.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        enableShapeLabel = {true}
        // Change the shape label settings.
        shapeLabelSettings = {{ 
          opacity: 1, 
          fillColor: '#9c2592', 
          borderColor: '#ff0000', 
          fontColor: '#000', 
          fontSize: 16, 
          labelHeight: 24.6, 
          labelMaxWidth: 151, 
          labelContent: 'XYZ' 
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

showDigitalSignatureAppearance

boolean

Show or hide the digital signature appearance in the document.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Show or hide the appearence of digital signature.
        showDigitalSignatureAppearance = {false}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

showNotificationDialog

boolean

If it is set as false then error message box is not displayed in PDF viewer control.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        showNotificationDialog = {false}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to true

signatureCollection

any[]

Get the Loaded document signature Collections in the PdfViewer control.

<body>
    <button onclick="sign()">Signature collection</button>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>
</body>

<script>
    function sign(){
        var viewer = document.getElementById('container').ej2_instances[0];	
        // Logs the signature collection.
        console.log(viewer.signatureCollection);
    }
 </script>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
      id="container" 
      documentPath="PDF_Succinctly.pdf"
      serviceUrl="https://localhost:44309/pdfviewer" 
      style={{ 'height': '680px' }} 
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

signatureDialogSettings

SignatureDialogSettingsModel

Get or set the signature dialog settings for signature field.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, DisplayMode } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the signature dialog settings.
        signatureDialogSettings = {{ 
          displayMode: DisplayMode.Draw | DisplayMode.Text | DisplayMode.Upload, hideSaveSignature: true
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

signatureFieldSettings

SignatureFieldSettingsModel

Get or set the signature field settings.

signatureFitMode

SignatureFitMode

Specifies the signature mode in the PDF Viewer.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the signature fit.
        signatureFitMode = "Stretch"
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

Defaults to Default

stampSettings

StampSettingsModel

Defines the settings of stamp annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation, DynamicStampItem, SignStampItem, StandardBusinessStampItem, CursorType } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the stamp annotation settings.
        stampSettings = {
          opacity: 1,
          author: "XYZ",
          annotationSelectorSettings: {{
            selectionBorderColor: "blue",
            resizerBorderColor: "red",
            resizerFillColor: "#FF4081",
            resizerSize: 8,
            selectionBorderThickness: 5,
            resizerShape: "Circle",
            selectorLineDashArray: [5, 6],
            resizerLocation:
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
            resizerCursorType: CursorType.grab
          },
          minHeight: 10,
          minWidth: 10,
          maxWidth: 100,
          maxHeight: 100,
          isLock: false,
          dynamicStamps: [
            DynamicStampItem.Revised,
            DynamicStampItem.Reviewed,
            DynamicStampItem.Received,
            DynamicStampItem.Confidential,
            DynamicStampItem.Approved,
            DynamicStampItem.NotApproved
          ],
          signStamps: [
            SignStampItem.Witness,
            SignStampItem.InitialHere,
            SignStampItem.SignHere,
            SignStampItem.Accepted,
            SignStampItem.Rejected
          ],
          standardBusinessStamps: [
            StandardBusinessStampItem.Approved,
            StandardBusinessStampItem.NotApproved,
            StandardBusinessStampItem.Draft,
            StandardBusinessStampItem.Final,
            StandardBusinessStampItem.Completed,
            StandardBusinessStampItem.Confidential,
            StandardBusinessStampItem.ForPublicRelease,
            StandardBusinessStampItem.NotForPublicRelease,
            StandardBusinessStampItem.ForComment,
            StandardBusinessStampItem.Void,
            StandardBusinessStampItem.PreliminaryResults,
            StandardBusinessStampItem.InformationOnly
          ],
          allowedInteractions: ["Resize"],
          isPrint: true
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>
  </div>);
}
const root = ReactDOM.createRoot(document.getElementById('sample'));
root.render(<App />);

stickyNotesSettings

StickyNotesSettingsModel

Defines the settings of stickyNotes annotation.

<body>
    <div id='sample'>
        <div id='loader'>Loading....</div>
    </div>    
</body>
import * as ReactDOM from 'react-dom';
import * as React from 'react';
import './index.css';
import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, Annotation, TextSearch, FormFields, FormDesigner, Inject, AnnotationResizerLocation } from '@syncfusion/ej2-react-pdfviewer';
export function App() {
  return (<div>
    <div className='control-section'>
      <PdfViewerComponent 
        id="container" 
        documentPath="PDF_Succinctly.pdf"
        serviceUrl="https://localhost:44309/pdfviewer" 
        style={{ 'height': '680px' }} 
        // Change the sticky note annotation settings.
        stickyNotesSettings = {{
          author: "XYZ",
          opacity: 1,
          annotationSelectorSettings: {
            selectionBorderColor: "blue",
            resizerBorderColor: "red",
            resizerFillColor: "#4070ff",
            resizerSize: 8,
            selectionBorderThickness: 1,
            resizerShape: "Circle",
            selectorLineDashArray: [5, 6],
            resizerLocation:
            AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
            resizerCursorType: CursorType.grab
          },
          isLock: false,
          allowedInteractions: ["Resize"],
          isPrint: true
        }}
      >
        <Inject services={[Toolbar, Magnification, Navigation, Annotation, LinkAnnotation, BookmarkView, ThumbnailView,
          Print, TextSelection, TextSearch, FormFields, FormDesigner]} />
      </PdfViewerComponent>
    </div>