Alternatives to pdf2htmlEX

A command-line converter that turns PDF files into HTML while keeping text and layout. The listings below can replace it for an important use case. Each note says what changes if you switch.

The original

Replacements

Listings that take over the same core job as pdf2htmlEX.

  • Xpdf

    A PDF viewer plus command-line tools for extracting text and images and converting PDFs to HTML.

    Xpdf includes command-line tools for converting PDFs to HTML and extracting text and images, plus a lightweight viewer, though not every component is open source.

  • Marker

    An open-source tool that converts PDFs and other documents to Markdown, JSON and HTML.

    Marker converts PDFs to HTML, Markdown and JSON with tables and equations, but outputs clean structure rather than a visual copy of the layout.

  • MinerU

    A document parser that converts PDFs, Office files and scans into Markdown and JSON.

    MinerU parses PDFs and scans into Markdown and JSON for pipelines, with OCR support, rather than producing layout-faithful HTML pages.

Similar software

Related functionality, not a direct replacement.