top | item 46946183

Show HN: Docx to PDF in the Browser Using Pandoc and Typst (WASM)

6 points| indie_max | 22 days ago |toolkuai.com

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 comment

order

nashashmi|21 days ago

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