ngager-pdfwriter
Very simple ReactJS PDF Writer library using PDFKit
Install
npm install --save ngager-pdfwriter
Usage
import React Component from 'react' import Pdf from 'ngager-pdfwriter' const html2canvas = ; const text = '3. <b>Consultation Services</b>: The Recruitment team provides <b>consultation on </b>new and replacement positions - hiring – process, salary<b> range, </b> hehehe<br><br> <b>availability, possible</b> challenges/risks and strategies <br>to close the roles.'; const text2 = 'The man who knows his worth respects his fellow man because he respects himself first. He does not boast; is not self-seeking; nor does he force his personal opinion on others.'; const text3 = '<span style="color: #FF6347;font-weight: bold;">#</span> What website or app has completely changed your life for better or for worse?' async { const pdf = defaultFontSize: 11 defaultColor: '#222222' ; try pdf; pdf; pdf; pdf; pdf; pdf; pdf; pdf; const canvas = await ; const dataUrl = canvas; pdf; // add Page pdf; catch e console; // const blob = await pdf.output(); // console.log('blob', blob); await pdf; } { return <div> <div = > ...chart </div> <button =>Download PDF</button> </div> }
Example
https://ngager-group.github.io/ngager-pdfwriter/
License
MIT © ngager-group