@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.

Runs in your browserSelectable textMIT license
terminal
$ npm install @8bit.tr/htpo
JavaScript / TypeScript0 runtime dependencies

The PDF engine and default fonts, all in one file.
Works offline with documents that have no external resources.

Read the README
01 /

Playground

A little HTML. A proper PDF.
Processed in your browser
HTML previewA4 · 210 × 297 mm

Ready. Generate your first PDF.

A good starting point, from the README. a4 + margin: 0 + vector + warn. Vector output keeps text selectable; images are not downsampled by default.

02 /

Add it to your project

Three steps. One file.
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.