- Timestamp:
- 2018-06-21T21:41:12+12:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/ConvertBinaryFile.pm
r31766 r32205 161 161 } 162 162 163 if ($convert_to =~ /^html/ ) { # may be html or html_multi163 if ($convert_to =~ /^html/ || $convert_to eq "paged_html") { # may be html or html_multi, or paged_html with the new Xpdf's own pdftohtml 164 164 $self->{'convert_to_plugin'} = "HTMLPlugin"; 165 165 $self->{'convert_to_ext'} = "html"; … … 349 349 $output_filename = $tmp_dirname . "\/$utf8_tailname\/" . $utf8_tailname . ".$output_type"; 350 350 } 351 } elsif ($output_type eq "paged_html") { 352 $output_filename =~ s/$lc_suffix$/.html/; 351 353 } else { 352 354 $output_filename =~ s/$lc_suffix$/.$output_type/; … … 371 373 372 374 if ("$conv_filename" eq "") {return -1;} # had an error, will be passed down pipeline 373 if (! -e "$conv_filename") {return -1;} 375 376 # We used to return -1 here if $conv_filename didn't exist at this stage 377 # However, for "paged_html" convert_to mode, the converted HTML file $conv_filename 378 # will only be created from conversion products *after* convert_post_process() returns 379 my $output_type=$self->{'convert_to'}; 380 if ($output_type ne "paged_html" && ! -e "$conv_filename") {return -1;} 374 381 $self->{'conv_filename'} = $conv_filename; 375 382 $self->convert_post_process($conv_filename); 383 if ($output_type eq "paged_html" && ! -e "$conv_filename") {return -1;} 376 384 377 385 # Run the "fribidi" (http://fribidi.org) Unicode Bidirectional Algorithm program over the converted file
Note:
See TracChangeset
for help on using the changeset viewer.