472,961 Members | 2,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,961 software developers and data experts.

chm decompiler

Greetings,
I'm looking for a Perl script (or a platform-independent exe outputting to
STDOUT) that converts chm (HTML Help) files to text or HTML.
Does anyone know if such program exists?

Thanks for your time,
Janssen
Jul 19 '05 #1
3 4121

"meneerjansen" <me**********@europe.be> wrote in message
news:c3**********@reader13.wxs.nl...
Greetings,
I'm looking for a Perl script (or a platform-independent exe outputting to
STDOUT) that converts chm (HTML Help) files to text or HTML.
Does anyone know if such program exists?

Thanks for your time,
Janssen


(platform independent)
Check out the CHM Tool source code here:
http://www.speakeasy.org/~russotto/chm/

If you are on Win32, you can use
this code to extract a page from a chm:

# win32 chm page extractor
#########################
#!/usr/bin/perl
# use Win32::OLE;
my $chmfile = "The Perl CD Bookshelf.chm";

my $HTTP = Win32::OLE->new('MSXML2.XMLHTTP.3.0') or
die "couldn't create MsXml2 object \n";

# strings contains the toc, main, and index page names
my $src = "ms-its:$path/" . $chmfile . "::#STRINGS";

# get using the M$ InfoTech Storage protocol
my $str = ChmGet( \$HTTP, $src);

sub ChmGet
{
my ($obj,$url) = @_;

$$obj->Open( "GET", "$url" , "FALSE");

$$obj->Send();

my $lRes = 0;

$lRes = Win32::OLE->LastError();

if ($lRes ) {
return $lRes;
}
else
{
return $$obj->{responseBody};
}
}
# end script

This code was developed in a project to data_mine
my CHM ebook collection and to insert the results
into MySQL.

I have about 43,000 chapter headings that I can
search with SQL queries. Query results are formatted
as anchor tags in an HTML interface, which when
clicked will open the desired page to the desired chapter.

A single ebook collection can be browsed across
a LAN.

I've looked into doing the same with PDF, but never
got to square-one.

good luck,
msp

AIM:Yahoo:tlviewer

Jul 19 '05 #2
meneerjansen wrote:
Greetings,
I'm looking for a Perl script (or a platform-independent exe outputting to
STDOUT) that converts chm (HTML Help) files to text or HTML.
Does anyone know if such program exists?

Thanks for your time,
Janssen


Search for xchm. If I recal right the lib (don't recal the name, sorry..:o)
used explanes howto do this.

Best Regards
Uten
Jul 19 '05 #3

"meneerjansen" <me**********@europe.be> schreef in bericht
news:c3**********@reader13.wxs.nl...
Greetings,
I'm looking for a Perl script (or a platform-independent exe outputting

to...

Thanks for your tips gnu valued customer and Uten Navn.
Janssen
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: gmcdanie | last post by:
I am looking for a Java Decompiler... preferably free. Any suggestions. Ease of use isn't a problem as long as it does a fair job.
13
by: gregory_may | last post by:
Is there a more econimical way to stop people from decompiling my .Net product? I dont have $1900 to spend on the .Net Decompiler Protector. Anyone have any thoughts/experiences with these or...
192
by: Vortex Soft | last post by:
http://www.junglecreatures.com/ Try it and tell me what's happenning in the Microsoft Corporation. Notes: VB, C# are CLS compliant
3
by: Roberto Rasto | last post by:
I'm looking for a C Decompiler. I don't looking for a perfect C decompiler, beacuse I only need to understand the logic of the program do decompile, but the program is not so little. I tried...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.