Integrate WebViewer into Blazor

This sample shows how to integrate the Apryse WebViewer into a Blazor project using the Blazor server-side 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.

1window.webviewerFunctions = {
2 initWebViewer: function () {
3 const viewerElement = document.getElementById('viewer');
4 WebViewer({
5 path: 'lib',
6 initialDoc: 'https://pdftron.s3.amazonaws.com/downloads/pl/demo-annotated.pdf', // replace with your own PDF file
7 }, viewerElement).then((instance) => {
8 // call apis here
9 })
10 }
11};
12

Did you find this helpful?

Trial setup questions?

Ask experts on Discord

Need other help?

Contact Support

Pricing or product questions?

Contact Sales