How to convert chm to doc/pdf

1

I want to know how I can convert a chm file into a doc (or alternatively a searchable pdf).

After trying the online services as well as Calibre without luck.

I am using windows 7.

user580054

Posted 2019-12-01T16:48:47.940

Reputation: 67

Question was closed 2019-12-05T07:00:05.647

You question is attracting close votes as it is phrased as if you are asking for a service. These sorts of questions are off-topic here. I think if you rephrase the question a little to emphasise the "how" you should be ok. Please see [ask] and take our [tour] for more details. – Burgi – 2019-12-03T15:04:49.503

For reference – Worthwelle – 2019-12-04T17:02:32.510

Answers

3

This is a quick-and-hacky way of doing things.

At the heart of it, .chm files are similar to ZIP archives, and they can be opened with 7-Zip. Once you've extracted the contents of your help archive, you can pick out the HTML files you want to include in your final PDF.

If you want to convert them into individual PDFs then you're almost done; just Print to PDF if you have a PDF converter tool already installed, otherwise use an online tool.

If you want to combine multiple pages into one big PDF, you can either use your PDF printer's tools to save to an existing PDF with the Append option, or if you don't have this option, you can combine the HTML files into one big HTML file by opening a command prompt, going to the folder you've extracted, and using this command:

type *.html > everything.html

The resultant file is technically not valid HTML, but most browsers will render it just fine. Want to omit some pages or change the ordering? Just delete them or rename them before running the above command.

BoffinBrain

Posted 2019-12-01T16:48:47.940

Reputation: 1 896

Would that method result in a searchable pdf? I need to keep the order of the pages too. – user580054 – 2019-12-01T22:39:06.093

Yep, the text should be preserved if you're using any standard PDF converter. – BoffinBrain – 2019-12-02T03:00:50.063

but PDF fake printers do not make true searchable pdfs; what standard PDF converter do you refer to? – user580054 – 2019-12-02T12:03:48.573

1I've used CutePDF and NitroPDF in the past. Never had trouble searching for text within those documents. What do you mean by 'true searchable'? – BoffinBrain – 2019-12-03T02:39:45.337