Changeset 18406 for gsdl/trunk/perllib/plugins/PowerPointPlugin.pm
- Timestamp:
- 2009-01-19T18:08:49+13:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gsdl/trunk/perllib/plugins/PowerPointPlugin.pm
r17744 r18406 106 106 my $secondary_plugin_options = $self->{'secondary_plugin_options'}; 107 107 108 if ($self->{'windows_scripting'} && ($self->{'convert_to'} eq "PagedImg")) {108 if ($self->{'windows_scripting'} && ($self->{'convert_to'} =~ m/(pagedimage|pagedimg).*/i)) { 109 109 $secondary_plugin_options->{'PagedImagePlugin'} = []; 110 110 } else { 111 111 $secondary_plugin_options->{'HTMLPlugin'} = []; 112 $secondary_plugin_options->{'TextPlugin'} = []; 112 113 } 113 114 my $html_options = $secondary_plugin_options->{'HTMLPlugin'}; 115 my $text_options = $secondary_plugin_options->{'TextPlugin'}; 114 116 my $pageimg_options = $secondary_plugin_options->{'PagedImagePlugin'}; 115 117 116 if (defined $ secondary_plugin_options->{'HTMLPlugin'}){118 if (defined $html_options){ 117 119 push(@$html_options,"-input_encoding", "utf8"); 118 120 push(@$html_options,"-extract_language") if $self->{'extract_language'}; 121 push(@$html_options,"-file_rename_method", "none"); 119 122 120 123 # Instruct HTMLPlugin (when eventually accessed through read_into_doc_obj) … … 122 125 push(@$html_options,"-metadata_fields","Title,GENERATOR,date,author<Creator>"); 123 126 } 124 if (defined $secondary_plugin_options->{'PagedImagePlugin'}){ 127 if (defined $text_options){ 128 push(@$text_options,"-input_encoding", "utf8"); 129 push(@$text_options,"-extract_language") if $self->{'extract_language'}; 130 push(@$text_options,"-file_rename_method", "none"); 131 } 132 if (defined $pageimg_options){ 125 133 push(@$pageimg_options,"-input_encoding", "utf8"); 126 push(@$pageimg_options,"-extract_language") if $self->{'extract_language'}; 134 push(@$pageimg_options,"-extract_language") if $self->{'extract_language'}; 135 push(@$pageimg_options,"-file_rename_method", "none"); 127 136 } 128 137
Note:
See TracChangeset
for help on using the changeset viewer.