We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The JavaScript PDF Viewer, also known as the HTML5 PDF Viewer is a lightweight and modular control for viewing and printing PDF files in your web applications. It provides the best viewing experience available with core interactions such as zooming, scrolling, text searching, text selection and copying text. The thumbnail, bookmark, hyperlink, and table of contents support provides easy navigation within and outside the PDF files.


Why choose Syncfusion Essential Studio® JavaScript PDF Viewer?

A high performance JavaScript PDF Viewer.

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.

JavaScript PDF Viewer annotation.

Rich annotating tools

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

JavaScript PDF Viewer interaction modes.

Easy to interact

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

JavaScript PDF Viewer comment panel.

Flexible comment panel

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

JavaScript PDF Viewer handwritten signature.

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.

JavaScript PDF Viewer responsiveness.

Adapts to any resolution

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

JavaScript PDF Viewer themes.

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.

JavaScript PDF Viewer globalization.

Globalization and localization

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


JavaScript PDF Viewer Code Example

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

<div class="control-section">
    <div class="content-wrapper">
        <div id="pdfViewer" style= "height:640px; width:100%;">
        </div>
    </div>
</div>
import { loadCultureFiles } from '../common/culture-loader';
import { PdfViewer, Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView,
ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormFields } from '@syncfusion/ej2-pdfviewer';
// tslint:disable-next-line:max-line-length
PdfViewer.Inject(Toolbar, Magnification, Navigation, LinkAnnotation, BookmarkView, ThumbnailView, Print, TextSelection, TextSearch, Annotation, FormFields);

/**
 * Default PdfViewer sample
 */

    loadCultureFiles();
    let viewer: PdfViewer = new PdfViewer();
    viewer.serviceUrl = 'https://ej2services.syncfusion.com/production/web-services/api/pdfviewer';
    viewer.appendTo('#pdfViewer');
    viewer.load('PDF_Succinctly.pdf', null);

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.

Open PDF file using JavaScript PDF Viewer.


Review or annotate PDF files

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

Highlight text using JavaScript PDF Viewer.

Highlight text

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

Underline text using JavaScript PDF Viewer.

Underline text

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

Strikethrough text using JavaScript PDF Viewer.

Strikethrough

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

JavaScript PDF Viewer shape annotations.

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.

JavaScript PDF Viewer measuring tools.

Calibrate - Measuring tools

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

JavaScript PDF Viewer stamp annotation.

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.

JavaScript PDF Viewer free text annotation.

Free-text annotation

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

JavaScript PDF Viewer sticky notes and comments.

Sticky notes and comments

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


JavaScript PDF Viewer handwritten signature.

Handwritten signature

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


Responsive rendering

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

Responsive rendering in JavaScript PDF Viewer.


Printing PDFs in JavaScript PDF Viewer.

Printing PDFs

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


Built-in toolbar

The JavaScript 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.

Built-in toolbar in JavaScript PDF Viewer.


Form designing in JavaScript PDF Viewer.

Form designer

The PDF Viewer in JavaScript 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.


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.

Import and export annotations in Vue PDF Viewer.


Organize pages in Javascript PDF Viewer.

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.


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

Bookmark navigation in JS PDF Viewer.

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.

Thumbnail navigation in JavaScript PDF Viewer.

Thumbnail navigation

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

Hyperlink navigation in JavaScript PDF Viewer.

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

Table of content navigation in JavaScript PDF Viewer.

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.


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 JavaScript PDF Viewer page to another.

JavaScript PDF Viewer zooming and panning.


Select and copy text in JavaScript PDF Viewer.

Select and copy text

The JavaScript 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 in JavaScript PDF Viewer.


Customize toolbar using JavaScript PDF Viewer.

Toolbar customization

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


Interaction mode

Selection mode in JavaScript PDF Viewer.

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.

Panning mode in JS PDF Viewer.

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.


Accessibility

Keyboard navigation in JavaScript PDF Viewer.

Keyboard navigation

The JavaScript 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.

JavaScript PDF Viewer accessibility.

Screen reader

The JavaScript 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.

RTL support in JavaScript PDF Viewer.

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.






Other supported frameworks

The PDF Viewer is available for the Blazor, React, Angular, Vue, ASP.NET Core and ASP.NET MVC frameworks. Explore its platform-specific options through the following links:

Supported browsers

The JavaScript PDF Viewer works well with all modern web browsers, including Chrome, Firefox, Edge, Safari, and Opera.

Supported browsers in JavaScript PDF Viewer.

85+ JAVASCRIPT UI CONTROLS

Frequently Asked Questions

The Syncfusion JavaScript PDF Viewer provides the following features:

  • Accurate and reliable PDF rendering.
  • Easy navigation and interactions.
  • Review PDF files with annotating tools such as text markup, shape, measure, free-text, stamp, and sticky notes.
  • Supports filling and editing of AcroForms.
  • One of the best JavaScript PDF Viewer in the market that offers feature-rich UI to interact with the software.
  • Simple configuration and API.
  • Supports all modern browsers.
  • Mobile-touch friendly and responsive.
  • Expansive learning resources such as demos and documentation to learn quickly and get started with JavaScript PDF Viewer.

We do not sell the JavaScript PDF Viewer separately. It is only available for purchase as part of the Syncfusion team license. This contains over 1,800 components and frameworks, including the JavaScript PDF Viewer. The price of the team license starts at $395 per month for 5 developers, and includes support and updates until the subscription expires. In addition, we might offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.

You can find our JavaScript PDF Viewer demo, which demonstrates how to render and configure the PDF Viewer.

No, our 1,800+ components and frameworks for web, mobile, and desktop, including our JavaScript PDF Viewer, are not sold individually. They are only available as part of a team license. However, we have competitively priced the product, so it only costs a little bit more than what some other vendors charge for their PDF Viewer component alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 1,800+ components and frameworks for a subscription fee that starts at $395 per month for a team of 5 developers. Additionally, we might be able to offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Recent activities in JavaScript PDF Viewer tutorials and blogs

The JavaScript PDF Viewer tutorial videos and blog posts will guide you in building your first app with JavaScript controls. They provide problem-solving strategies, describe features and functionalities, announce new feature releases, explain best practices, and showcase example scenarios. Explore our latest posts on our blog and tutorial video channels for JavaScript PDF Viewer updates.

Up arrow icon