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.
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.
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.
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
alternatively, you could try converting the chm to a pdf? There are quite a lot of free programs to help you do this.
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.
Update:
your comment
How to convert chm files to one xhtml file
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.
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.