Ignore:
Timestamp:
2018-06-28T17:44:55+12:00 (6 years ago)
Author:
ak19
Message:

Making xpdf_to_text, which uses xpdf-tools' pdftotext, the pdf to txt conversion tool for linux and mac as well. Recently used it for windows which had no prior PDF to txt conversion tool and used to output HTML. Since the introduction into GS of xpdf-tools, we can support newer pdf versions so using its pdftotxt as default tool to do PDF to txt conversions seems to be the way forward.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/gsConvert.pl

    r32224 r32226  
    346346    # Attempt conversion to TEXT
    347347    if (!$output_type || ($output_type =~ m/text/i)) {
    348         if ($ENV{'GSDLOS'} =~ m/^windows$/i) { # we now have pdf to text support for windows by using xpdf tools
    349             $success = &xpdf_to_text($dirname, $input_filename, $output_filestem);
    350         } else {
    351             $success = &pdf_to_text($dirname, $input_filename, $output_filestem);
    352         }
     348        $success = &xpdf_to_text($dirname, $input_filename, $output_filestem);
     349        #if ($ENV{'GSDLOS'} =~ m/^windows$/i) { # we now have pdf to text support for windows by using xpdf tools
     350        #   $success = &xpdf_to_text($dirname, $input_filename, $output_filestem);
     351        #} else {
     352        #   $success = &pdf_to_text($dirname, $input_filename, $output_filestem);
     353        #}
    353354    if ($success) {
    354355        return "text";
Note: See TracChangeset for help on using the changeset viewer.