1

how do I convert CHM files int one xhtml file?

  • 1
    on what operating system? – John T Dec 6 '09 at 2:35
2

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. – 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. – expert Mar 4 '12 at 23:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy