pdf2htmlEX is no longer under active development. New maintainers are wanted.
一图胜千言
A beautiful demo is worth a thousand words
- Bible de Genève, 1564 (fonts and typography): HTML / PDF
- Cheat Sheet (math formulas): HTML / PDF
- Scientific Paper (text and figures): HTML / PDF
- Full Circle Magazine (read while downloading): HTML / PDF
- Git Manual (CJK support): HTML / PDF
One-liner (downloads the latest release, installs to ~/.local):
curl -fsSL https://raw.githubusercontent.com/duguyue100/pdf2htmlEX/master/install.sh | bashOr download a tarball from Releases and copy the two directories into your prefix:
tar -xzf pdf2htmlEX-<platform>.tar.gz
cp pkg/bin/pdf2htmlEX ~/.local/bin/
cp -R pkg/share/pdf2htmlEX ~/.local/share/The binary is fully static/self-contained and finds its resources in
share/pdf2htmlEX relative to its own location — keep bin/ and the
matching share/pdf2htmlEX/ together under the same prefix.
This repository has been revived to build against poppler 24.01 and fontforge 20230101, producing fully static, self-contained binaries.
| Platform | How |
|---|---|
| linux amd64 / arm64 | make static (musl, fully static) or CI |
| macOS arm64 (Apple Silicon) | ./scripts/build-macos.sh |
| dev/test loop | make build / make test / make shell (all inside docker) |
Tarballs contain bin/pdf2htmlEX + share/pdf2htmlEX/ resources; the binary
locates resources relative to its own path. GitHub Actions builds all three
platforms on every push and attaches release assets on tags.
Source synced from the maintained fork pdf2htmlEX/pdf2htmlEX at v0.18.8.rc1, then ported forward to modern poppler/fontforge APIs.
pdf2htmlEX renders PDF files in HTML, utilizing modern Web technologies. Academic papers with lots of formulas and figures? Magazines with complicated layouts? No problem!
pdf2htmlEX is also an online publishing tool which is flexible for many different use cases.
Learn more about who and why should use pdf2htmlEX.
- Native HTML text with precise font and location.
- Flexible output: all-in-one HTML or on demand page loading (needs JavaScript).
- Moderate file size, sometimes even smaller than PDF.
- Supporting links, outlines (bookmarks), printing, SVG background, Type 3 fonts and more...
pdf2htmlEX, as a whole package, is licensed under GPLv3+.
Some resource files are released with relaxed licenses, read LICENSE for more details.
pdf2htmlEX is made possible thanks to the following projects:
pdf2htmlEX is inspired by the following projects:
- pdftohtml from poppler
- MuPDF
- PDF.js
- Crocodoc
- Google Doc
- Hongliang Tian
- Wanmin Liu