Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

how do I convert CHM files int one xhtml file?

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

1 Answer 1

up vote 2 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

share|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 '12 at 23:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.