WebViewer is a powerful JavaScript-based PDF Library that is part of the PDFTron PDF SDK. It provides a slick out-of-the-box responsive UI that interacts with the core library to view, annotate and manipulate PDFs that can be embedded into any web project.
This repo is specifically designed for any users interested in integrating WebViewer into a Next.js 14 project. With the source code access, it gives developers full control to customize and style the UI, build custom controls and logic, integrate into workflows, or build a UI from scratch.
Due to SSR in Next.js, the module needs to be imported dynamically, to avoid a "window is not defined" error due to re-rendering. Read more here: vercel/next.js#42319
- Customizable out-of-the-box UI
- PDF Viewer
- DOCX Editor
- Annotation & Markup
- Generate PDFs from DOCX template
- Digital Signatures
- PDF Text Editing
- Page Manipulation
- Redaction
- Form Building
- Annotate Videos
- More
WebViewer comes with a 7-day trial without any feature limitations or trial key needed. To extend the trial, you can obtain the trial key by signing-up on our developer portal.
Before you begin, make sure the development environment includes Node.js.
npm install
npm run dev
npm run build
npm start
npm run lint
See contributing.
See license.