Hi Nasser - it turns out the problem is simple: DVI format only supports 65,536 pages -- the postamble item that reports the total number of pages is two bytes (t[2] as shown on for example, page 12 of dvitype.pdf).
Your document is larger than that, namely 74193 pages. That's why tex4ht (the binary) quits at page 8657 (total_pages mod 65536). TeX itself does not check when it is outputting such a semi-corrupt dvi, although dvitype reports it, even at level 0 (minimal) output: $ dvitype -output-level 0 report.dvi >r0 $ grep really r0 there are really 74193 pages, not 8657! I cannot imagine any feasible way to change this limit. So you'll have to arrange your workflow to keep your files smaller than that, as far as I can see. I'll ask Luigi about changing luatex to emit an error if there are more than 2^16 pages in dvi mode. As far as I can see, there's no use in creating such a dvi. --best, karl.