Integrate WebViewer into Blazor WASM

This sample shows how to integrate the Apryse WebViewer into a Blazor project using the Blazor WebAssembly application template

WebViewer provides a slick out-of-the-box responsive UI that enables you to view, annotate and manipulate PDFs and other document types inside any web project.

Click the button below to view the full project in GitHub.

1<!DOCTYPE html>
2<html>
3
4<head>
5 <meta charset="utf-8" />
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
7 <title>BlazorWebViewerWebAssembly</title>
8 <base href="/" />
9 <link href="css/bootstrap/bootstrap.min.css" rel="stylesheet" />
10 <link href="css/app.css" rel="stylesheet" />
11 <script src="lib/webviewer.min.js"></script>
12</head>
13
14<body>
15 <app>Loading...</app>
16
17 <div id="blazor-error-ui">
18 An unhandled error has occurred.
19 <a href="" class="reload">Reload</a>
20 <a class="dismiss">🗙</a>
21 </div>
22 <script src="_framework/blazor.webassembly.js"></script>
23 <script src="js/webviewerScripts.js"></script>
24</body>
25
26</html>
27

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales