// Import ComPDFKit WebViewer into your component.
import ComPDFKitViewer from '/@compdfkit/webviewer';
const viewer = document.getElementById('webviewer');
// Initialize ComPDFKit Web viewer and load your pdf
ComPDFKitViewer.init({
pdfUrl: 'Your PDF Url',
}, viewer)
.then((core) => {
const docViewer = core.docViewer;
docViewer.addEvent('documentloaded', () => {
console.log('ComPDFKit Web Viewer loaded');
})
})
PDF SDK
Our PDF SDK renders PDFs at the fastest speed and provides rich and reliable functionalities including viewing, markup, editing, signing, and conversion, satisfying the needs of processing PDFs in different scenarios.
Explore PDF SDKPDF Server
Batch process PDF documents on our server, on-premises, or the third party cloud depending on your demands. ComPDFKit for Servers can be easily performed on Linux, Windows, and macOS with PDF libraries for Java and .NET.
Explore ServerPDF API
The robust online API simplifies the conversion, editing, management, and watermarking of PDF documents with HTML API requests. Liberating developers from platform and server restrictions.
Explore PDF API