Changeset 18145 for gsdl/trunk


Ignore:
Timestamp:
2008-12-08T16:35:49+13:00 (15 years ago)
Author:
ak19
Message:

When PDFPlugin now converts PDF pages to images it no longer uses the default screenviewsize of 500 but sets it to 1000. This didn't work previously because the convert_to pattern-match on pagedimg failed. It turned out that the pattern should have been looking for PagedImage instead.

File:
1 edited

Legend:

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

    r15963 r18145  
    142142    $secondary_plugin_options->{'TextPlugin'} = [];
    143143    }
    144     if (defined $self->{'convert_to'} && $self->{'convert_to'} =~ /pagedimg.*/i) {
     144    if (defined $self->{'convert_to'} && $self->{'convert_to'} =~ m/(pagedimage|pagedimg).*/i) {
    145145    if (!defined $secondary_plugin_options->{'PagedImagePlugin'}){
    146146        $secondary_plugin_options->{'PagedImagePlugin'} = [];
    147147        my $pagedimg_options = $secondary_plugin_options->{'PagedImagePlugin'};
    148148        push(@$pagedimg_options, "-title_sub", '^(Page\s+\d+)?(\s*1\s+)?');
     149        push(@$pagedimg_options, "-screenviewsize", "1000");
    149150    }
    150151    }
     
    152153    my $text_options = $secondary_plugin_options->{'TextPlugin'};
    153154    my $pagedimg_options = $secondary_plugin_options->{'PagedImagePlugin'};
    154    
     155
    155156#    if ($self->{'input_encoding'} eq "auto") {
    156157#   $self->{'input_encoding'} = "utf8";
Note: See TracChangeset for help on using the changeset viewer.