Changeset 2980


Ignore:
Timestamp:
2002-02-20T16:38:08+13:00 (22 years ago)
Author:
jrm21
Message:

Added converted_to, which tells us what format the last input file we had
was converted into, in case it is not the same as the format we were ask to
output. (eg pdftohtml fails, but pdftotext or anytotext works).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/ConvertToPlug.pm

    r2816 r2980  
    198198
    199199    # store the *actual* output type and return the output filename
     200    # it's possible we requested conversion to html, but only to text succeeded
     201
    200202    $self->{'convert_to_ext'} = $output_type;
     203    if ($output_type =~ /html/i) {
     204    $self->{'converted_to'} = "HTML";
     205    } elsif ($output_type =~ /te?xt/i) {
     206    $self->{'converted_to'} = "TEXT";
     207    }
    201208    my $output_filename = $tmp_filename;
    202209
     
    304311    my $tmp_tailname = File::Basename::basename($conv_filename);
    305312   
    306     my $convert_to = $self->{'convert_to'};
     313    my $converted_to = $self->{'converted_to'};
    307314    my $ret_val;   
    308315
    309     if ($convert_to eq "TEXT")
     316    if ($converted_to eq "TEXT")
    310317    {
    311318
Note: See TracChangeset for help on using the changeset viewer.