@8bit.tr/htpov0.1.0experimental
HTML in.
PDF out.
A little PDF workshop, right in your browser.
Write your HTML, fine-tune the options, download your document.
terminal
$ npm install @8bit.tr/htpoJavaScript / TypeScript0 runtime dependencies
The PDF engine and default fonts, all in one file.
Works offline with documents that have no external resources.
01 /
Processed in your browserPlayground
A little HTML. A proper PDF. HTML previewA4 · 210 × 297 mm
Ready. Generate your first PDF.
Download PDFDiagnostics
A good starting point, from the README. a4 + margin: 0 + vector + warn. Vector output keeps text selectable; images are not downsampled by default.
02 /
Three steps. One file.Add it to your project
01
Load the SDK
Install with npm or add the standalone script to your page.
02
Pass your HTML
Generate your document with Htpo.toPdf(html, options).
03
Get your PDF
Download with pdf.save('report.pdf') or use pdf.blob.