elavarasan has asked for the wisdom of the Perl Monks concerning the following question:
Hai i want to convert word document to html for which i have used MSWord::ToHTML module
while installing this module following error is comming please help me how to solve this problem
the error is:
Cannot determine perl version info from lib/MSWord/ToHTML.pm Locating bin:abiword... found at /usr/bin/abiword. Locating bin:tidy... missing. Unresolvable missing external dependency. Please install 'tidy' seperately and try again. NA: Unable to build distribution on this platform. No 'Makefile' created AMIRI/MSWord-ToHTML-0.006.tar.gz /usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK Running make test Make had some problems, won't test Running make install Make had some problems, won't install
my code is:
use strict; use warnings; use MSWord::ToHTML; my $converter = MSWord::ToHTML->new; my $doc = $converter->validate_file("/home/myself/my_excellent_writing +.doc"); # This returns an instance of MSWord::ToHTML::Doc my $docx = $converter->validate_file("/home/myself/my_excellent_notes. +docx"); # This returns an instance of MSWord::ToHTML::DocX my $writing_html = $doc->get_html; # This returns an instance of MSWord::ToHTML::HTML my $notes_html = $docx->get_html; # This returns an instance of MSWord::ToHTML::HTML my $text = $notes_html->content; # The text content of the file. my $text = $writing_html->content; # The text content of the file.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to Convert Word Document to HTML
by Anonymous Monk on May 10, 2013 at 07:02 UTC | |
by elavarasan (Acolyte) on May 10, 2013 at 07:04 UTC |