Changeset 24141

Show
Ignore:
Timestamp:
09.06.2011 19:10:32 (8 years ago)
Author:
ak19
Message:

When the original PDFPlugin's use_sections is turned on, PDFBox plugin used to cause messages about an uninitialised variable. This has been initialised now to HTML when the target_file_type is html.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gs2-extensions/pdf-box/trunk/java/perllib/plugins/PDFBoxConverter.pm

    r23666 r24141  
    148148    return 0 if ( !-f $source_file_full_path); 
    149149 
     150    # the following line is necessary to avoid 'uninitialised variable' error 
     151    # messages concerning the converted_to member variable when PDFPlugin's  
     152    # use_sections option is checked. 
     153    # PDFBox plugin still doesn't process use_sections, but can avoid msg. 
     154    $self->{'converted_to'} = "HTML" if ($target_file_type eq "html"); 
     155 
    150156    my $outhandle = $self->{'outhandle'}; 
    151157    my $verbosity = $self->{'verbosity'};