defunctzombie / jsPDF

Client-side JavaScript PDF generation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

jsPDF

A library to generate PDFs in JavaScript.

Typescript type definitions included.

Install with yarn or npm

yarn add @defunctzombie/jspdf
npm install @defunctzombie/jspdf
import { Document } from '@defunctzombie/jspdf';
const doc = new Document();

doc.text('Hello world!', 10, 10);
const pdfDocument = doc.output();

console.log(pdfDocument);

Credit

This work builds on top of https://github.com/MrRio/jsPDF.

License

MIT

About

Client-side JavaScript PDF generation.

License:MIT License


Languages

Language:TypeScript 67.4%Language:JavaScript 32.4%Language:HTML 0.2%