2

I am working on a chm project. Is there a way to open and edit with Python (or other way but I prefer Python) the HTML compiled in the chm files so it can be updated without recompile?

I have tried the chm and chmlib in Python with no luck. I am trying to find a way to edit existed chm file. Any suggestions?

2
  • What kind of error you encountered ? Commented Mar 25, 2015 at 10:40
  • no error, for future modifications... Commented Mar 25, 2015 at 10:58

1 Answer 1

3

No solution but to decompile the CHM, make the modifications and recompile.

Depending on the complexity of the CHM file, it might be better to reuse the original sources, not the compiled CHM, since a decompilation-recompilation step with free tools won't always recreate the same CHM.

There are various decompilers, but only two freely available compilers, one by Microsoft, and one by the Free Pascal Team. (use for e.g. Preshrunk Cotton python project and in some distributions.)

You could also investigate some commercial tools. They probably do a better job than the open source decompilers.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.