Changeset 22700
- Timestamp:
- 2010-08-21T00:31:09+12:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs2-extensions/pdf-box/trunk/perllib/plugins/PDFBoxConverter.pm
r22669 r22700 69 69 70 70 my $status = system($cmd); 71 71 72 if ($status != 0) { 72 73 print STDERR "Testing for java\n"; … … 91 92 sub new { 92 93 my ($class) = shift (@_); 93 my ($pluginlist,$inputargs,$hashArgOptLists ) = @_;94 my ($pluginlist,$inputargs,$hashArgOptLists,$auxilary) = @_; 94 95 push(@$pluginlist, $class); 95 96 … … 97 98 push(@{$hashArgOptLists->{"OptList"}},$options); 98 99 99 my $self = new BaseMediaConverter($pluginlist, $inputargs, $hashArgOptLists); 100 101 my $self = new BaseMediaConverter($pluginlist, $inputargs, 102 $hashArgOptLists, $auxilary); 100 103 101 104 if ($self->{'info_only'}) { … … 163 166 164 167 # Generate and run the convert command 165 my $convert_cmd = $self->{' launch_cmd'};168 my $convert_cmd = $self->{'pdfbox_launch_cmd'}; 166 169 $convert_cmd .= " -html" if ($target_file_type eq "html"); 167 my $convert_command .= " \"$source_file_full_path\" \"$target_file_path\"";168 169 print STDERR "**** convert_command = $convert_command\n";170 $convert_cmd .= " \"$source_file_full_path\" \"$target_file_path\""; 171 172 # print STDERR "**** convert_command = $convert_cmd\n"; 170 173 171 174 my $print_info = { 'message_prefix' => "PDFBox Conversion", … … 174 177 175 178 my ($regenerated,$result,$had_error) 176 = $self->autorun_general_cmd($convert_c ommand,$source_file_full_path, $target_file_path,$print_info);179 = $self->autorun_general_cmd($convert_cmd,$source_file_full_path, $target_file_path,$print_info); 177 180 if ($had_error) { 178 181 return (0, $result,$target_file_path);
Note:
See TracChangeset
for help on using the changeset viewer.