Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: conversion from doc to html

by Khen1950fx (Canon)
on Dec 05, 2011 at 16:23 UTC ( #941891=note: print w/ replies, xml ) Need Help??


in reply to conversion from doc to html

This as simple as I could make it for you. Using:

Text::FromAny
HTML::FromText
#!/usr/bin/perl -slw use strict; use warnings; use Text::FromAny; use HTML::FromText (); my $any = Text::FromAny->new(file => 'test-basic.doc'); my $text = $any->text; my $t2h = HTML::FromText->new({ paras => 1 }); my $html = $t2h->parse( $text ); print $html;


Comment on Re: conversion from doc to html
Download Code
Re^2: conversion from doc to html
by srocks (Initiate) on Dec 07, 2011 at 07:14 UTC

    ..It is not working on machine... Showing this type of mesage Can't locate Text/FromAny.pm in @INC (@INC contains: C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib C:/strawberry/perl/lib .) at sample_html.pl line 5. BEGIN failed--compilation aborted at sample_html.pl line 5. please confirm it and let me know ..

      So why don't you install the missing module?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://941891]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2015-07-07 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (87 votes), past polls