# sghtmltopdf

The second generation of wkhtmltopdf and wicked\_pdf

Canonical page: https://www.reposhelf.co.uk/projects/github/waka/sghtmltopdf.html

- Project ID: waka/sghtmltopdf
- Source: GitHub
- Original project: https://github.com/waka/sghtmltopdf
- Description attribution: project author metadata
- Categories: Other
- Technologies: Rust
- Licence: MIT
- Repository availability checked: 2026-11-03T10:01:17.626Z
- Demo page loaded: 2026-11-06T00:30:57.899Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> An HTML-to-PDF renderer like wkhtmltopdf written in Rust that does not depend on Chromium, WebKit, or Gecko.

> sghtmltopdf turns HTML into PDF without starting a browser process. It is aimed at documents that flow top to bottom with explicit breaks invoices, receipts, reports rather than at rendering arbitrary web pages.

> That receipt is examples/receipt.html plus examples/main.css, rendered with one command and no browser:

- No browser process. One binary, or a native extension living inside your Ruby process.
- Fonts are resolved during rendering. There is no document.fonts.ready to wait for, so a PDF is never emitted with unresolved webfonts.
- Streaming. HTML is read in chunks and each page is written out as soon as its layout is final, so memory does not grow with document size \(measured: 228MB → 28MB on a 60,000-element document\).
- Page breaks are first class. CSS Fragmentation \(break-before, break-inside, orphans, widows\) and @page are implemented directly.

## Author-documented requirements and audience

> An HTML-to-PDF renderer like wkhtmltopdf written in Rust that does not depend on Chromium, WebKit, or Gecko.





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/waka/sghtmltopdf/blob/main/README.md

Extraction checked: 2026-10-15T19:28:05.374Z

Last recorded source update: 2026-11-01T11:46:15.000Z

Saved release: v0.5.1 — 2026-09-23T08:04:40.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=waka%2Fsghtmltopdf). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
