React PDF Viewer | Reliable and Responsive UI | Syncfusion (2024)

Overview

The React PDF Viewer is a lightweight and modular component for viewing and printing PDF files. It provides the best viewing experience available with core interactions such as zooming, scrolling, text searching, text selection, and text copying. The thumbnail, bookmark, hyperlink and table of contents support provides easy navigation within and outside the PDF files.

Why choose Syncfusion React PDF Viewer?

React PDF Viewer | Reliable and Responsive UI | Syncfusion (1)

High performance

Thousands of PDF pages can be loaded instantly. On-demand loading and virtualization support helps reduce the initial loading time for larger PDF files.

React PDF Viewer | Reliable and Responsive UI | Syncfusion (2)

Rich annotating tools

The React PDF Viewer offers various annotations including including text markup, shape, stamp, sticky note, measurement, free-text, and ink.

React PDF Viewer | Reliable and Responsive UI | Syncfusion (3)

Easy to interact

The React PDF Viewer Offers selection and panning interaction modes in your loaded PDF documents, making interaction easier.

React PDF Viewer | Reliable and Responsive UI | Syncfusion (4)

Flexible comment panel

The comment panel can be used to add comments as annotations, replies to comments, and statuses to the PDF file.

React PDF Viewer | Reliable and Responsive UI | Syncfusion (5)

Add handwritten signatures

You can add handwritten signature to your PDF files. Customize them by resizing, moving, deleting, and saving them. They enhance the digital process.

React PDF Viewer | Reliable and Responsive UI | Syncfusion (6)

Adapts to any resolution

The React PDF Viewer is designed to be responsive with an optimized design for desktops, touchscreens, and smart phones. It works well on all mobile phones that use iOS, Android, or Windows OS.

React PDF Viewer | Reliable and Responsive UI | Syncfusion (7)

Attractive, customizable themes

Cutting-edge design with several built-in themes, such as Fluent, Tailwind CSS, Bootstrap, Material, and Fabric. Utilize the online Theme Studio tool to customize themes easily.

React PDF Viewer | Reliable and Responsive UI | Syncfusion (8)

Globalization and localization

Enables users from different locales to use the component by formatting the text content to suit their preferences.

React PDF Viewer Code Example

Easily get started with the React PDF Viewer using a few simple lines of TSX code example as demonstrated below. Also explore our React PDF Viewer Example that shows you how to render and configure a PDF Viewer in React.

/** * Default PDF Viewer sample */import * as ReactDOM from 'react-dom';import * as React from 'react';import { PdfViewerComponent, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormFields, Inject } from '@syncfusion/ej2-react-pdfviewer';import { SampleBase } from '../common/sample-base';import { RouteComponentProps } from 'react-router';export class Default extends SampleBase<{}, {}> { render() { return ( <div> <div className='control-section'> {/* Render the PDF Viewer */} <PdfViewerComponent id="container" documentPath="PDF_Succinctly.pdf" serviceUrl="https://ej2services.syncfusion.com/production/web-services/api/pdfviewer" style=> <Inject services={[Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormFields]} /> </PdfViewerComponent> </div> </div> ); }}

Open PDF file

Open and display both normal PDF files and those protected with AES and RC4 encryption algorithms (password protected). Open PDF files from stream, file paths, and as byte arrays.

React PDF Viewer | Reliable and Responsive UI | Syncfusion (9)

Review or annotate PDF files

Review PDF files using a rich set of annotating tools in the React PDF Viewer.

  • Annotations example

React PDF Viewer | Reliable and Responsive UI | Syncfusion (10)

Highlight text

Users can highlight important text in React PDF files and customize the color of the highlighted text.

  • Highlight text documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (11)

Underline text

Underline important text in PDF files. You can customize the color of the underline.

  • Underline text documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (12)

Strikethrough

Strikethrough unimportant text in PDF files. You can customize the color of the strikethrough.

  • Strikethrough documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (13)

Shape annotations

Use drawing tools to add rectangle, circle, ellipse, line, arrow, and polygon to a PDF file. The shapes can also be moved, resized, and customized.

  • Shape annotation documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (14)

Calibrate - Measuring tools

Measure the distance, area, radius, volume, and perimeter of the objects using measurement tools.

  • Measurement annotation documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (15)

Stamp a document

Add stamps to a PDF file like applying rubber stamps to a paper document from the list of built-in stamps or create your own stamps.

  • Stamp annotation documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (16)

Free-text annotation

Include free text in PDF files. You can move, resize, remove, or edit the appearance of free text.

  • Free-text annotation documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (17)

Sticky notes and comments

Add sticky notes and comments anywhere in a PDF file. It can be moved and removed.

  • Stick notes documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (18)

Handwritten signature

Add handwritten signature to PDF files. The signature can be resized, moved, removed, saved, and customized.

  • Handwritten signature example
  • Handwritten signature documentation

Responsive rendering

The React PDF Viewer is engineered to be responsive and can withstand changes in the size of the parent element.

React PDF Viewer | Reliable and Responsive UI | Syncfusion (19)

React PDF Viewer | Reliable and Responsive UI | Syncfusion (20)

Printing PDFs

The PDF Viewer in React supports printing loaded PDF document along with adding and modifying annotation and signature details.

  • Printing documentation

The React PDF Viewer component comes with a powerful built-in toolbar to execute the most important actions such as page navigation, text search, view mode, downloading, and various annotation actions. You can design your own toolbar as required with PDF Viewer APIs.

  • Toolbar documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (21)

React PDF Viewer | Reliable and Responsive UI | Syncfusion (22)

Form designer

The React PDF Viewer control provides the option to add, edit, and delete form fields. The form field types supported by the PDF Viewer control are text box, password, checkbox, radio button, list box, dropdown, signature field, and initial field. The form field values can be exported to and imported from JSON, XFDF, FDF, and XML formats.

  • Form designer example
  • Form designer documentation

Import and export annotations

Annotations in a PDF file can be exported as JSON and stored in the database. You can also import annotation JSON data to a PDF file.

  • Annotations example
  • Import and export annotations documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (23)

React PDF Viewer | Reliable and Responsive UI | Syncfusion (24)

Organize pages

Effortlessly enhance the viewing and alignment of PDF pages by rotating them clockwise or counterclockwise. Easily insert new pages and eliminate unnecessary ones. Furthermore, rearrange pages within a document and duplicate them with ease. You can also revert or redo any changes made using the Organize Pages dialog.

Navigation

The React PDF Viewer control supports different internal and external navigations.

  • Navigation documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (25)

Bookmark navigation

Bookmarks saved in PDF files are loaded and made ready for easy navigation. Navigate within the PDF file of the topics bookmarked already.

  • Bookmark navigation documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (26)

Thumbnail navigation

Thumbnails are miniature representations of actual pages in PDF files. This feature displays thumbnails of the pages and allows navigation.

  • Thumbnail navigation documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (27)

Hyperlink navigation

Hyperlink navigation feature enables navigation to URLs (website links) in a PDF file.

  • Hyperlink navigation documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (28)

Table of contents navigation

Table of contents navigation allows users to navigate to different parts of a PDF file that are listed in the table of contents section.

  • Table of contents navigation documentation

Zooming and Panning

Zoom in and out allows users to view a page closer and view a larger part of the page, respectively. Additionally, users can navigate by panning from one region of the React PDF Viewer page to another.

  • Zooming and panning documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (29)

React PDF Viewer | Reliable and Responsive UI | Syncfusion (30)

Select and copy text

The React PDF Viewer with rich UI allows users to select the text in the PDF document and copy it to the clipboard. This is helpful for sharing text content with others.

Search text

Locate all occurrences of a given text and navigate through them found occurrences easily.

  • Search text documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (31)

React PDF Viewer | Reliable and Responsive UI | Syncfusion (32)

Create a custom toolbar that includes any of the options available in the built-in toolbar.

  • Custom toolbar example
  • Toolbar customization documentation

Interaction mode

React PDF Viewer | Reliable and Responsive UI | Syncfusion (33)

Selection mode

In this mode, the text selection can be performed in the PDF document loaded in PDF Viewer. The panning and scrolling of the pages by touch cannot be performed in this mode. It allows users to select and copy text from the PDF files.

  • Selection mode documentation

React PDF Viewer | Reliable and Responsive UI | Syncfusion (34)

Panning Mode

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

  • Panning mode documentation

Accessibility

React PDF Viewer | Reliable and Responsive UI | Syncfusion (35)

Keyboard navigation

The React PDF Viewer component ensures that every tool is accessible using the keyboard. Major operations like open file, page navigation, zoom ratio, add comments, show or hide annotation and form designer toolbars, print, and download can be done without any mouse interaction. This helps in creating highly accessible applications.

React PDF Viewer | Reliable and Responsive UI | Syncfusion (36)

Screen reader

The React PDF Viewer has complete WAI-ARIA accessibility support. The PDF Viewer UI includes high-contrast visual elements that help visually impaired people to have the best viewing experience. Also, valid UI descriptions are easily accessible through assistive technologies such as screen readers.

React PDF Viewer | Reliable and Responsive UI | Syncfusion (37)

Right to left (RTL)

Right-to-left rendering allows displaying the text and layout of the PDF Viewer from right to left. This improves the user experience and accessibility for RTL languages.

  • RTL example

Syncfusion React PDF Viewer Resources

Learning

Documentation Knowledge base Web stories

Technical Support

Contact Support Community Forum

UI Kits

Sketch Download Adobe XD Download Figma Download
React PDF Viewer | Reliable and Responsive UI | Syncfusion (2024)
Top Articles
A Beginner’s Guide To Understanding Venture Capital Funding
Sales volume: Definition, formula, and how to increase it
Gamevault Agent
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Free Atm For Emerald Card Near Me
Craigslist Mexico Cancun
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Self-guided tour (for students) – Teaching & Learning Support
Doby's Funeral Home Obituaries
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
How To Cut Eelgrass Grounded
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Saritaprivate
Geometry Review Quiz 5 Answer Key
Walgreens Alma School And Dynamite
Bible Gateway passage: Revelation 3 - New Living Translation
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Dmv In Anoka
A Christmas Horse - Alison Senxation
Access a Shared Resource | Computing for Arts + Sciences
Umn Biology
Obituaries, 2001 | El Paso County, TXGenWeb
Cvs Sport Physicals
Rogold Extension
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Colin Donnell Lpsg
Teenbeautyfitness
Weekly Math Review Q4 3
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Electric Toothbrush Feature Crossword
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hampton In And Suites Near Me
Stoughton Commuter Rail Schedule
Bedbathandbeyond Flemington Nj
Free Carnival-themed Google Slides & PowerPoint templates
Otter Bustr
Used Curio Cabinets For Sale Near Me
San Pedro Sula To Miami Google Flights
Selly Medaline
Latest Posts
Article information

Author: Tish Haag

Last Updated:

Views: 5665

Rating: 4.7 / 5 (47 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.