Syncfusion EJ2 PdfViewer

The PDF Viewer component enables you to view and print the PDF files.

This sample demonstrate the following key features of PDF Viewer:

  • View the PDF document

  • Core interactions - Scrolling, Zooming, panning and page navigation

  • Built-in toolbar

  • Select and copy text from PDF file

  • Search a text easily across the PDF document

  • Easy navigation with the help of Bookmarks, thumbnails, hyperlinks and table of contents

  • View modes - fit to page and fit to width

  • Print the entire document or a specific page directly from the browser.

More information on the PDF Viewer instantiation can be found in this documentation sectionarrow-up-right.

Source Code

You can download the source code for this project here.

Design-Time

The EJ2 PdfViewer control can be added to a Form or Page from the Visual Studio Toolbox. It should look like this when dropped onto the designer.

EJ2 PDF Viewer at Design-Time
circle-info

The design-time appearance of the EJ2 PdfViewer control will not show a PDF document. The logic for this should be implemented in your code (see below).

Sample Implementation

Runtime

The resulting EJ2 PdfViewer control will look something like this:

EJ2 PDF Viewer at Runtime

Last updated

Was this helpful?