Changeset 22675

Show
Ignore:
Timestamp:
18.08.2010 16:31:38 (9 years ago)
Author:
sjm84
Message:

Modified PDFPlugin to use PDFBox if it is available

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/PDFPlugin.pm

    r22597 r22675  
    2525package PDFPlugin; 
    2626 
    27 use ConvertBinaryFile; 
     27use PBConvertBinaryFile; 
    2828use ReadTextFile; 
    2929use unicode; 
     
    3232 
    3333sub BEGIN { 
    34     @PDFPlugin::ISA = ('ConvertBinaryFile', 'ReadTextFile'); 
     34    @PDFPlugin::ISA = ('PBConvertBinaryFile', 'ReadTextFile'); 
    3535} 
    3636 
     
    119119    push(@{$hashArgOptLists->{"OptList"}},$options); 
    120120 
    121     my $self = new ConvertBinaryFile($pluginlist, $inputargs, $hashArgOptLists); 
     121    my $self = new PBConvertBinaryFile($pluginlist, $inputargs, $hashArgOptLists); 
    122122     
    123123    if ($self->{'info_only'}) { 
     
    147147    } 
    148148    # set convert_to_plugin and convert_to_ext 
    149     $self->ConvertBinaryFile::set_standard_convert_settings(); 
     149    $self->PBConvertBinaryFile::set_standard_convert_settings(); 
    150150 
    151151    my $secondary_plugin_name = $self->{'convert_to_plugin'};