how do I convert CHM files int one xhtml file?

link|improve this question
1  
on what operating system? – John T Dec 6 '09 at 2:35
feedback

1 Answer

up vote 1 down vote accepted

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

link|improve this answer
Keep in mind, HTML and XHTML ( en.wikipedia.org/wiki/XHTML ) are 2 different things. Similar, but different. – John T Dec 6 '09 at 2:51
yup, just got that :) – Molly7244 Dec 6 '09 at 2:52
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. – ruslan Mar 4 at 23:35
feedback

Your Answer

 
or
required, but never shown