// Import ComPDFKit WebViewer into your component.
import ComPDFKitViewer from '/@compdfkit/webviewer';
const viewer = document.getElementById('webviewer');
ComPDFKitViewer.init({
pdfUrl: 'Your PDF Url',
}, viewer)
.then((core) => {
const docViewer = core.docViewer;
docViewer.addEvent('documentloaded', () => {
console.log('ComPDFKit Web Viewer loaded');
})
})
With WebAssembly technology, use JavaScript to call C++ libraries directly from the frontend and keep the data on the client side. Even without the Internet and server, PDFs can be rendered perfectly on the browser.
Launch Demo
Support
Changelog
Learn more about the updates in the new version.
Blog
WebAssembly Brightens the Future of Web Applications
Contact Sales
Contact our sales to get more details.