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.
Load PDF files with thousands of pages instantly.
On-demand loading and virtualization hold only the minimum required pages at runtime to reduce memory consumption.
Render pages on demand to help reduce initial load time when working with large PDF files.
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.
Review PDF files using a rich set of annotating tools in the JS PDF Viewer.
Highlight important text in JavaScript PDF files. Also, customize the appearance of the highlight or remove it.
Underline notable text in PDF files. Customize the appearance of the underline or remove it.
Strikethrough unimportant texts in PDF files. Customize the appearance of the strikethrough or remove it.
JavaScript PDF Reader to add a rectangle, circle, line, polyline, or polygon to a PDF file, use drawing tools. The shapes can also be moved, resized, and customized.
Measure the distance, area, radius, volume, and perimeter of the objects using measurement tools.
Add stamps to a PDF file like applying rubber stamps to a paper document from a list of built-in stamps or create your own stamps.
The JavaScript PDF Viewer sticky notes and comment options are used to track review feedbacks and status of the PDF documents.
Support has been provided to add text to a PDF file. The text, like the text box tool, can be moved, resized, and customized.
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.
Users can view and fill the AcroForm fields. Support has also been provided to add handwritten signatures to a PDF file.
The PDF Viewer in JavaScript is engineered to be responsive and can withstand changes in the size of the parent element.
The PDF Viewer JavaScript supports printing loaded PDF document along with adding and modifying annotation and signature details.
The PDF Viewer control 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.
The HTML5 PDF Viewer control supports different internal and external navigations.
Bookmarks saved in PDF files are loaded and made ready for easy navigation. Navigate within the PDF file of the topics bookmarked already.
Thumbnails are miniature representations of actual pages in PDF files. This feature displays thumbnails of the pages and allows navigation through them.
Hyperlink navigation feature enables navigation to the URLs (website links) in a JS PDF file.
Table of contents navigation in the JavaScript PDF Viewer library allows users to navigate to different parts of a PDF file that are listed in the table of contents section.
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.
Locate all occurrences of a given text and navigate through them found occurrences easily.
Disable the built-in toolbar and create a custom toolbar in your application.
Choose from eight stunning, built-in themes.
All static text within the PDF Viewer can be localized to any supported language.
The magnification tools of the JavaScript PDF Viewer contains ZoomIn, ZoomOut, Zoom, FitPage, and FitWidth tools in the default toolbar. It also provides an option to show or hide the magnification tools in the default toolbar.
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);
The PDF Viewer component is also available in Blazor, React, Angular, and Vue frameworks. Check out the different PDF Viewer platforms from the links below,
The Syncfusion JavaScript PDF Viewer provides the following features:
We do not sell the JavaScript PDF Viewer separately. It is only available for purchase as part of the Syncfusion JavaScript suite, which contains over 70 JavaScript components, including the PDF Viewer. A single developer license for the Syncfusion Essential Studio for JavaScript suite costs $995.00 USD, including one year of support and updates. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our sales team today to see if you qualify for any additional discounts.
You can find our JavaScript PDF Viewer demo here.
No, our 70+ JavaScript components, including PDF Viewer, are not sold individually, only as a single package. 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 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 70+ JavaScript components for a flat fee of $995/developer. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our sales team 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 and five or fewer developers.
A good place to start would be our comprehensive getting started documentation.
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.