
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@compdfkit_pdf_sdk/webviewer
Advanced tools
[ComPDFKit PDF SDK](https://www.compdf.com) seamlessly operates on [Web](https://www.compdf.com/web), [Windows](https://www.compdf.com/windows), [Android](https://www.compdf.com/android), [iOS](https://www.compdf.com/ios), [Mac](https://www.compdf.com/con
ComPDFKit PDF SDK seamlessly operates on Web, Windows, Android, iOS, Mac, and Server, with support for cross-platform frameworks such as React Native, Flutter, etc.
ComPDFKit for Web is a powerful JavaScript-based PDF Library that's part of the ComPDFKit 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.
Download ComPDFKit for Web in npm.
Go to ComPDFKit's Web Demo to experience how our WebViewer performs.
Integrate ComPDFKit Web SDK into Salesforce, SharePoint, Microsoft Teams, etc.
Recognize and extract data from PDFs with our online Extract Demo
You can get the full documentation of ComPDFKit for Web here.
1) Install WebViewer
npm i @compdfkit_pdf_sdk/webviewer --save
This will install the ComPDFKit for Web package and add it as a project dependency.
2) Copy Assets to Your Static Folder
These assets need to be served in your application. Copy the ComPDFKit for Web library's assets to the static directory in your project’s root folder.
The folder you need to copy is node_modules/@compdfkit_pdf_sdk/webviewer/dist.
cp -r ./node_modules/@compdfkit_pdf_sdk/webviewer/dist ./public/webviewer
3) Import and Initial the WebViewer
import WebViewer from '@compdfkit_pdf_sdk/webviewer'
const element = document.getElementById('viewer');
WebViewer.init({
path: '/', // the path of your webviewer
pdfUrl: 'URL of your PDF File' // the path of your document
license: 'Input your license here'
}, element).then((instance) => {
// Call APIs here
})
4) Apply the License Key Contact ComPDFKit's sales team to get a free 30-day license to test the project.
Full documentation for ComPDFKit for Web can be found here.
ComPDFKit for Web supports flexible licensing options, please contact our sales team to know more. Each license is only valid for a root domain name and any of its subdomains. However, any documents, sample code, or source code distribution from the released package of ComPDFKit PDF SDK to any third party is prohibited.
ComPDFKit has a professional R&D team that produces comprehensive technical documentation and guides to help developers. Also, you can get an immediate response when reporting your problems to our support team.
For detailed information, please visit our Guides page.
Stay updated with the latest improvements through our Changelog.
For technical assistance, please reach out to our Technical Support.
To get more details and an accurate quote, please contact our Sales Team.
We are glad to announce that you can register a ComPDFKit API account for a free trial to process 1000 documents per month for free.
FAQs
[ComPDFKit PDF SDK](https://www.compdf.com) seamlessly operates on [Web](https://www.compdf.com/web), [Windows](https://www.compdf.com/windows), [Android](https://www.compdf.com/android), [iOS](https://www.compdf.com/ios), [Mac](https://www.compdf.com/con
The npm package @compdfkit_pdf_sdk/webviewer receives a total of 2,181 weekly downloads. As such, @compdfkit_pdf_sdk/webviewer popularity was classified as popular.
We found that @compdfkit_pdf_sdk/webviewer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.