Free delivers the same performance and set of features as the Professional version but displays a watermark after the first two pages.
You can either install GemBox.PdfViewer from NPM, or you can include it using script tag.
First, install the package from NPM:
npm install @gembox/pdfviewer
# or
yarn add @gembox/pdfviewerThen you can initialize the PDF viewer:
<!-- Define a container for the PDF viewer -->
<div id="viewer" style="width: 600px; height: 350px"></div>
<script type="module">
import { GemBoxPdfViewer} from '@gembox/pdfviewer';
import '@gembox/pdfviewer/dist/es/pdfviewer.css';
// Set license key to use GemBox.PdfViewer in Free mode.
GemBoxPdfViewer.setLicense("FREE-LIMITED-KEY");
// Create PDF viewer in the specified container.
GemBoxPdfViewer.create({ container: "#viewer" });
</script>You can use jsdelivr CDN to include GemBox.PdfViewer in your project:
<link href="https://cdn.jsdelivr.net/npm/@gembox/pdfviewer/dist/iife/pdfviewer.css" rel="stylesheet" type="text/css"/>
<script src="https://cdn.jsdelivr.net/npm/@gembox/pdfviewer/dist/iife/pdfviewer.js"></script>After that, you can initialize the PDF viewer:
<div id="viewer" style="width: 600px; height: 350px"></div>
<script>
GemBoxPdfViewer.setLicense("FREE-LIMITED-KEY");
GemBoxPdfViewer.create({ container: "#viewer" });
</script>To use GemBox.PdfViewer from ASP.NET Core applications, add the NuGet package to your project.
dotnet add package GemBox.PdfViewerAfter that, you can use tag helper to initialize the PDF viewer:
<gembox-pdfviewer
style="width:600px;height:350px;"
license-key="FREE-LIMITED-KEY">
</gembox-pdfviewer>CLI coding agents such as GitHub Copilot, Claude Code, and OpenAI Codex can write valid GemBox code when enabled with our gembox-skill.
You can use GemBox.PdfViewer Free for any purpose, including use in commercial applications.
GemBox is under no obligation to provide technical or any other support to the users of the free version.