Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

How to Convert Word Document to HTML

by elavarasan (Acolyte)
on May 10, 2013 at 06:48 UTC ( #1032900=perlquestion: print w/ replies, xml ) Need Help??
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.

Comment on How to Convert Word Document to HTML
Select or Download Code
Re: How to Convert Word Document to HTML
by Anonymous Monk on May 10, 2013 at 07:02 UTC

    while installing this module following error is comming please help me how to solve this problem

    :) hire someone who reads error messages, interprets them, and takes appropriate actions :)
    Locating bin:tidy... missing.
    Unresolvable missing external dependency.
    Please install 'tidy' seperately and try again.

    I'm sure the various docs (README/INSTALL...) discuss where to get this 'tidy' so that you can install it

      thank you</>

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1032900]
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (4)
As of 2014-08-21 04:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (127 votes), past polls