Setup:
npm install- Install wkHTMLtoPDF
- Install Prince XML
- Install WeasyPrint
To build 50 simple files:
- All at once:
node run test - PDFkit:
node ./pdfkit.js - lx-PDF:
node ./lx-pdf.js- PDFkit + JSON templates for formatting - node wkHTMLtoPDF:
node ./wkhtmltopdf.js- Webkit engine - Prince:
time ./prince.sh - WeasyPrint:
. ./venv/bin/activate && time ./weasyprint.sh
In-browser options:
- PDFmake: playground - 42ms reported for 1 simple PDF
- hPDF: playground - 44.5ms reported for 1 simple PDF
- jsPDF: Appears fast, lots of capability
Third-party options:
- DocRaptor: HTML to PDF - Hosted, "99.99% uptime, infinite throughput" -
node ./docraptor.js - PDF Reactor: HTML to PDF - Not hosted, purchase is per-CPU, no simple way to test performance