how do I convert CHM files int one xhtml file?
1 Answer
if you're using Windows:
1.
extract the HTML files from the CHM container from the command prompt with HH.EXE
example:
HH.EXE -decompile C:\Temp\decompile-folder C:\Temp\yourCHM.chm
2.
merge the HTML files into a single file (e.g. with SoftSnow Merger)
3.
convert the HTML file to XHTML (e.g. with Simpletidy)
or, if you don't mind spending $19.95, you can use ABC Amber CHM Converter:
reads CHM files and converts them to PDF (doesn't require Adobe Acrobat to be installed), HTML (single file and web-site), RTF (MS Word doesn't need to be installed), HLP, TXT (ANSI and Unicode), DOC (MS Word), DBF, MDB (MS Access), CSV, XML, XLS (MS Excel), Clipboard
-
Keep in mind, HTML and XHTML ( en.wikipedia.org/wiki/XHTML ) are 2 different things. Similar, but different.– user1931Dec 6, 2009 at 2:51
-
It does't preserve original order of pages. It just merges HTMLs in alphabetic order of names of html files which is not necessarily how it structured logically.– expertMar 4, 2012 at 23:35