Simple problem really, ... what would be the best way to print some chm files so it looks like something on paper?
I have some manuals which I'd like to have also in paper form, and printing chm page by page is a pain.
So, all ideas welcomed.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
if you're using Windows:
1. extract the HTML files from the CHM container from the command prompt with HH.EXE
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. print the HTML file.
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
In case you want to print a single topic from chm document. Right click on topic, a popup will appear, in that select option "Print the selected heading and all subtopics.".
Hope this helps you.
After looking at above discussion, may be converting chm in single html doc and then printing it be a solution. But it's time consuming.
What about using Calibre? You can convert to multiple formats & print it there.
without external tools:
@echo off if "%~1" equ "" ( echo usage: echo %~n0 file.chm exit /b 1 ) if "%~x1" neq ".chm" ( echo you need a file with .chm etension exit /b 2 ) start "" /b /wait hh -decompile ~~ %~sf1 ::w32tm /stripchart /computer:localhost /period:1 /dataonly /samples:8 >nul 2>&1 for /r "~~" %%h in (*.htm) do ( rundll32.exe "%systemroot%\system32\mshtml.dll",PrintHTML "%%~fh" ) rd "~~" /s /q >nul 2>nul
The only working solution for me was:
Open the chm file with default windows application (path: C:\Windows\hh.exe)
select the header in the table of contents. Right-click and Print. Select Print the selected heading and all subtopics.
Without closing the printing dialog, go to the following path and copy the latest generated file (C:\Users\ [Username] \AppData\Local\Temp). I am using Win 10 so maybe the path on the other versions is different.
Copy the content of HTML in your favorite editor such as MS Word document
Do step 2 to 4 until you have done.