summaryrefslogtreecommitdiff
path: root/lib/HTML/AutoConvert/antiword.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/HTML/AutoConvert/antiword.pm')
-rw-r--r--lib/HTML/AutoConvert/antiword.pm31
1 files changed, 31 insertions, 0 deletions
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(@_);
+ "<HTML><HEAD></HEAD><BODY><PRE>\n$html\n</PRE></BODY></HTML>";
+}
+
+1;