From b5e00dd5534d7f6ec852b537f551bb872931fa04 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 11 Aug 2008 07:38:09 +0000 Subject: initial import --- lib/HTML/AutoConvert/antiword.pm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 lib/HTML/AutoConvert/antiword.pm (limited to 'lib/HTML/AutoConvert/antiword.pm') diff --git a/lib/HTML/AutoConvert/antiword.pm b/lib/HTML/AutoConvert/antiword.pm new file mode 100644 index 0000000..4622a79 --- /dev/null +++ b/lib/HTML/AutoConvert/antiword.pm @@ -0,0 +1,31 @@ +package HTML::AutoConvert::antiword; + +=head1 NAME + +HTML::AutoConvert::antiword - antiword plugin for HTML::AutoConvert + +=head1 URL + +Antiword can be downloaded from http://www.winfield.demon.nl/index.html + +=cut + +use strict; +use vars qw( %info ); +use base 'HTML::AutoConvert::Run'; + +%info = ( + 'types' => 'doc', + 'weight' => 90, + 'url' => 'http://www.winfield.demon.nl/index.html', +); + +sub program { ( 'antiword' ) } + +sub html_convert { + my $self = shift; + my $html = $self->SUPER::html_convert(@_); + "
\n$html\n
"; +} + +1; -- cgit v1.2.1