liutian 866d3755d4 add: 添加 DocumentViewer API Reference | 10 months ago | |
---|---|---|
.. | ||
src | 10 months ago | |
.babelrc | 10 months ago | |
README.md | 10 months ago | |
index.js | 10 months ago | |
jsdoc.config.json | 10 months ago | |
package.json | 10 months ago | |
rollup.config.js | 10 months ago |
ComPDFKit for Web is a powerful JavaScript PDF library and you can easily and quickly integrate PDF functionality like viewing, annotating, Forms, signing, and document editing into your Web applications.
You can get a complete get-started guide in our documentation.
You must instantiate WebViewer in order to access classes and APIs.
import ComPDFKitViewer from "/@compdfkit/webviewer";
const viewer = document.getElementById('webviewer');
ComPDFKitViewer.init({
pdfUrl: 'Your PDF Url',
license: 'Input your license here'
}, viewer)
.then((core) => {
const docViewer = core.docViewer;
docViewer.addEvent('documentloaded',async () => {
console.log('ComPDFKit Web Demo loaded');
})
})
If you have any questions, please feel free to ask us at ComPDFKit Support.