Muqriz 48f16bfc3e initail first | 4 months ago | |
---|---|---|
.. | ||
dist | 4 months ago | |
Documentation.html | 4 months ago | |
Examples.html | 4 months ago | |
LICENSE.md | 4 months ago | |
README.md | 4 months ago | |
package.json | 4 months ago |
Document Viewing and Editing in the Browser
PSPDFKit for Web is a secure JavaScript PDF library for viewing, annotating, and editing PDFs, Office documents, TIFFs, JPGs, and PNGs directly in the browser. It offers developers a way to quickly add document and image functionality to any web application. It’s fully compatible with React, Angular, Vue.js, Svelte, and any other JavaScript or TypeScript framework.
The guide below explains how to integrate PSPDFKit for Web into a Vanilla JavaScript project. For other scenarios, refer to the step-by-step guides.
npm install --save pspdfkit
assets
directory in your project’s root folder:cp -R ./node_modules/pspdfkit/dist/ ./assets/
Rename the PDF document you want to display in your application to document.pdf
, and then add the PDF document to your project’s root directory. You can use this demo document as an example.
Add an empty <div>
element with a defined width and height to where PSPDFKit will be mounted:
<div id="pspdfkit" style="width: 100%; height: 100vh;"></div>
import "./assets/pspdfkit.js";
const baseUrl = `${window.location.protocol}//${window.location.host}/assets/`;
PSPDFKit.load({
baseUrl,
container: "#pspdfkit",
document: "document.pdf"
})
PSPDFKit for Web enables client-side viewing and conversion of PDF, Word, Excel, PowerPoint, TIFF, JPG, and PNG files directly on any browser — no server dependencies or MS Office licenses required.
PSPDFKit for Web supports the latest versions of all commonly used browsers: Chrome, Mozilla Firefox, Safari, Edge, and Firefox ESR.
PSPDFKit for Web is compatible with Salesforce, SharePoint, Microsoft Teams, and Microsoft OneDrive.
PSPDFKit offers comprehensive guides and code samples to help you quickly integrate and customize your application. It comes with full technical support that includes direct access to the engineers who built the product. Whether you have questions getting started or you want to know how to best integrate new features into your app, we’re here to help you find a solution.
Most popular guides:
For a detailed list of the changes included in each version, please see the changelog.
PSPDFKit is a commercial product that offers a free trial license to evaluate and integrate it into your product. Visit our pricing page to learn more about licensing our solution.
Copyright © 2010-2024 PSPDFKit GmbH.