Hacker News new | ask | show | jobs
Show HN: Docx to PDF in the Browser Using Pandoc and Typst (WASM) (toolkuai.com)
6 points by indie_max 130 days ago
Hi HN,

I wanted a way to convert .docx to .pdf without uploading my files to a random server or installing a 2GB LaTeX distribution.

I built a simple tool that runs Pandoc and Typst entirely in the browser via WebAssembly.

How it works:

- Pandoc (WASM) parses the .docx file.

- It outputs Typst markup.

- Typst (WASM) compiles that markup into a PDF.

Status: It's still a work in progress. It handles basic formatting, tables, and images well enough for daily use, though complex Word layouts might still be a bit wonky.

Why this?

- Privacy: Everything stays in your browser.

- Speed: No server round-trips.

- Lightweight: No need to install Pandoc or Typst locally.

Check it out: https://toolkuai.com/word-to-pdf

Feedback is welcome, especially on how to better map Word styles to Typst.

1 comments

This is amazing. It converts faster than my Doc2PDF.vbs script. Twice as fast.