4.13 How to install and use pdf2htmlEX?

To install

sudo apt-get update 
sudo apt-get install pdf2htmlex
 

To use

pdf2htmlEX --zoom 1.3 HW2_solution.pdf
 

To remove the side-bar which has extra TOC do

pdf2htmlEX --zoom 1.3 --embed-outline 0  foo.pdf
 

pdf2htmlEX seems to use html as extension. no option to change it so use this to make it use .htm which is what I use

pdf2htmlEX --zoom 1.3 --embed-outline 0  foo.pdf > foo.htm
 

One thing that I still do not understand about this program. It converts the whole pdf file to html page. Ok. But then what is the difference between this and using the build-in pdf reader in a browser, such as with Chrome for example?

I could not find how to make it split pages by sections and chapters and such as I can do with tex4ht. Without this ability, I am not sure how useful this will be for me. It is just like using the pdf itself this way. Will try to find out about this.