Open a ticket
Chat with us

ASP.NET Core PDF Viewer - Download

ASP.NET Core PDF Viewer is a perfect choice if you need to implement a simple, versatile, and customizable PDF viewer into your website.

Featured image WebPdfViewer

Download ASP.NET Core PDF Viewer

Make sure to add a reference to Terminalworks.PdfViewer.AspNetCore component. You can reference it through NuGet.

NUGET INSTALLATION

Run the following command in the Package Manager Console:

>  install-package Terminalworks.PdfViewer.AspNetCore
Current version: 1.0.38.0

How to get started with ASP.NET Core PDF Viewer?

1

Add needed CSS as shown in the example below

2

Add needed Javascript as shown in the example below

3

Add PDF Viewer component to your page

1. In your HTML section of the page, you will need to add 2 CSS links.

File location: Pages\Shared\_Layout.cshtml

File location: Pages\Index.cshtml

tw-pdf-viewer.css is a general CSS of TWPdfViewer and we recommend that you don't change it.
tw-pdf-viewer-theme.css is theme specific. You can read more about changing theme at How to set which theme will be used?

2. Make sure to include the required Javascript

File location: Pages\Shared\_Layout.cshtml

File location: Pages\Index.cshtml

3. Add the component to your page

File location: Pages\Index.cshtml

How to set initial parameters look at Available viewer options with examples

1. In your HTML section of the page, you will need to add 2 CSS links.

File location: Views\Shared\_Layout.cshtml

File location: Views\Home\Index.cshtml

tw-pdf-viewer.css is a general CSS of TWPdfViewer and we recommend that you don't change it.
tw-pdf-viewer-theme.css is theme specific. You can read more about changing theme at How to set which theme will be used?

2. Make sure to include the required Javascript

File location: Views\Shared\_Layout.cshtml

File location: Views\Home\Index.cshtml

3. Add the component to your page

File location: Pages\Index.cshtml

How to set initial parameters look at Available viewer options with examples

1. In your HTML section of the page, you will need to add 2 CSS links.

File location: Pages\Index.razor

tw-pdf-viewer.css is a general CSS of TWPdfViewer and we recommend that you don't change it.
tw-pdf-viewer-theme.css is theme specific. You can read more about changing theme at How to set which theme will be used?

2. Make sure to include the required Javascript

File location: Pages\_Host.cshtml

3. Add the component to your page

File location: Pages\Index.razor

If you use render-mode="Static" to make it work you need to add IsStatic="@("Yes")"

How to set initial parameters look at Available viewer options with examples

1. In your HTML section of the page, you will need to add 2 CSS links.

File location: Pages\Index.html

tw-pdf-viewer.css is a general CSS of TWPdfViewer and we recommend that you don't change it.
tw-pdf-viewer-theme.css is theme specific. You can read more about changing theme at How to set which theme will be used?

2. Make sure to include the required Javascript

File location: wwwroot\index.html

3. Add the component to your page

File location: Pages\Index.razor

How to set initial parameters look at Available viewer options with examples

Documentation

For a more in detail look on all the features of ASP.NET Core PDF Viewer and how to use them please check out the documentation page. We have provided a few examples as well to get you familiar with the viewer in no time.


Latest Release - Minor Update (1.0.38.0)


BUG FIXES

- hiding Close and Download button on the toolbar didn't work

Minor (1.0.38.0)

06/02/2022

BUG FIXES

- hiding Close and Download button on the toolbar didn't work


Major (1.0.37.0)

05/23/2022

FEATURES

Initial version



Supported browsers & requirements

Requirements

ASP.NET Core 3.1 or newer


Supported browsers

Internet Explorer 11 and all newer browsers

License expired?

Request a free trial license extension in case you need more time to evaluate our product. You will receive your new trial license shortly after you fill out the application.

Request now
Partner program

Cloud services and managed services providers can benefit with our products. The Terminalworks Partner Program enables you to buy license packages of Terminalworks products and resell them.

Apply now
Contact information

Tehnical Support Phone
(407) 567-0096

Sales Phone
(407) 567-0097

Telephone support available from 10 AM till 10 PM Central European Time
Contact us
Copyright © 2022 Terminalworks. All Rights Reserved