Install pdfform.js in the browser
masterTo use pdfform.js in a browser environment, you can choose between two distribution methods:
- Recommended (minipdf): Download and serve
pdfform.minipdf.dist.js. This uses the built-inminipdflibrary, which is more lightweight than PDF.js. - PDF.js version: Download and serve
pdfform.pdf_js.dist.jsif you require the full capabilities of PDF.js.
Alternatively, you can manually include the source files from the repository by adding minipdf.js and pdfform.js to your project. If you choose the manual route, you must also include the pako library as a dependency.
<!-- Recommended: download from https://raw.githubusercontent.com/phihag/pdfform.js/dist/dist/pdfform.minipdf.dist.js -->
<script src="downloaded/pdfform.minipdf.dist.js"></script>