WSL, Ubuntu 20.05, command line, for “PDF to HTML.” Step by step.
Here are the short instructions to convert a PDF to HTML using WSL with Ubuntu 20.04:
- Install WSL with Ubuntu 20.04.
- Launch the Ubuntu terminal.
- Update Ubuntu:
sudo apt update && sudo apt upgrade -y
. - Install Poppler:
sudo apt install -y poppler-utils
. - Convert PDF to HTML using:
pdftohtml -s <input_file>.pdf <output_file>.html
- Access the converted HTML file in the same directory.
That’s it!