{"library":"jspdf","type":"library","category":null,"description":"jsPDF is a client-side JavaScript library for generating PDF documents. The current stable version is 4.2.1, with frequent patch and minor releases primarily addressing security vulnerabilities and bug fixes, indicating an active maintenance and development cadence. It enables developers to create PDFs directly in the browser or Node.js environment, supporting various paper sizes, orientations, and units (e.g., millimeters, inches). Key differentiators include its pure JavaScript nature, allowing it to run without server-side dependencies, and its robust API for adding text, images, and other content. It bundles different module formats (ESM, UMD, Node) to support diverse environments, often requiring no explicit path specification in imports as build tools handle it. The project has recently focused heavily on fixing various security-related issues, emphasizing the importance of sanitizing all user input.","language":"javascript","status":"active","version":"4.2.1","tags":["javascript","pdf","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install jspdf","imports":["import { jsPDF } from 'jspdf';","const { jsPDF } = require('jspdf');","const { jsPDF } = window.jspdf;"]},{"cmd":"yarn add jspdf","imports":[]},{"cmd":"pnpm add jspdf","imports":[]}],"homepage":"https://parall.ax/products/jspdf","github":"https://github.com/parallax/jsPDF","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/jspdf","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/jspdf/compatibility"}}