Changeset 2117
- Timestamp:
- 2001-03-05T18:00:10+13:00 (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/gsConvert.pl
r2060 r2117 246 246 # Attempt conversion to TEXT 247 247 if (!$output_type || ($output_type =~ /text/i)) { 248 $success = &pdf_to_text($ input_filename, $output_filestem);248 $success = &pdf_to_text($dirname, $input_filename, $output_filestem); 249 249 if ($success) { 250 250 return "text"; … … 420 420 $cmd .= "pdftohtml.pl -F "; 421 421 $cmd .= " \"$input_filename\" \"$output_filestem\""; 422 422 $!=0; 423 423 if (system($cmd)!=0) 424 424 { 425 print STDERR "Error executing $cmd: $!\n"; 425 print STDERR "Error executing $cmd"; 426 if ($!) {print STDERR ": $!";} 427 print STDERR "\n"; 426 428 return 0; 427 429 } … … 452 454 ($dirname, $input_filename, $output_filestem) = @_; 453 455 454 $cmd = "pdftotext \"$input_filename\" > \"$output_filestem.text\"";455 $cmd .= " 2> $output_filestem.err";456 my $cmd = "pdftotext \"$input_filename\" > \"$output_filestem.text\""; 457 $cmd .= " 2> \"$output_filestem.err\""; 456 458 457 459 if (system($cmd)!=0)
Note:
See TracChangeset
for help on using the changeset viewer.