1 package HTML::AutoConvert::poppler;
5 HTML::AutoConvert::poppler - poppler (pdftohtml) plugin for HTML::AutoConvert
9 poppler can be downloaded from http://poppler.freedesktop.org/
15 use base 'HTML::AutoConvert::Run';
20 'url' => 'http://poppler.freedesktop.org/',
23 sub program { ( 'pdftohtml', '-stdout' ) }
25 #false laziness w/OpenOffice.pm
27 # my( $self, $file ) = ( shift, shift );
28 # my $opt = ref($_[0]) ? shift : { @_ };
30 # my $program = 'pdftohtml';
32 # my $timeout = 60; #?
34 # my($out, $err) = ( '', '' );
35 # local($SIG{CHLD}) = sub {};
36 # run( [ $program, $file ], \undef, \$out, \$err, timeout($timeout) )
37 # or die "$program failed with exit status ". ( $? >> 8 ). ": $out\n";
39 # ( my $outfile = $file ) =~ s/\.pdf$/.html/i
40 # or die "poppler.pm called with non-PDF file?!";
42 # my $html = slurp($outfile);