Changeset 22513

Show
Ignore:
Timestamp:
27.07.2010 16:06:11 (9 years ago)
Author:
kjdon
Message:

added open office support for PPT and excel

Files:
1 modified

Legend:

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

    r22429 r22513  
    401401 
    402402    my $ppt_convert_type = ""; 
     403 
     404    if ($openoffice_scripting) { 
     405    # Jump right in and process with Open Office 
     406        if (openoffice_doc_to_html($input_filename, $output_filestem)) { 
     407        return "html"; 
     408    } 
     409    else { 
     410        return "fail"; 
     411    } 
     412    } 
     413     
    403414    #if (!$output_type || $windows_scripting || ($output_type !~ m/html/i) || ($output_type !~ m/text/i)){ 
    404415    if ($windows_scripting && ($output_type !~ m/html/i) && ($output_type !~ m/text/i)){ 
     
    464475    my $success = 0; 
    465476 
     477    if ($openoffice_scripting) { 
     478    # Jump right in and process with Open Office 
     479        if (openoffice_doc_to_html($input_filename, $output_filestem)) { 
     480        return "html"; 
     481    } 
     482    else { 
     483        return "fail"; 
     484    } 
     485    } 
     486     
    466487    # Attempt conversion to HTML 
    467488    if (!$output_type || ($output_type =~ m/html/i)) { 
     
    11221143        close ERRLOG; 
    11231144    } 
     1145    print STDERR "***********output filestem $output_filestem.html\n"; 
    11241146    &util::rm("$output_filestem.html") if (-e "$output_filestem.html"); 
    11251147    if (-e "$output_filestem.err") {