Changeset 3720 for trunk/gsdl/bin/script/gsConvert.pl
- Timestamp:
- 2003-01-28T16:22:26+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/bin/script/gsConvert.pl
r3538 r3720 59 59 60 60 my $use_strings; 61 my $pdf_complex; 62 my $pdf_zoom; 63 my $pdf_ignore_images; 61 64 62 65 sub print_usage … … 70 73 print STDERR "\t-output\thtml|text\n"; 71 74 print STDERR "\t-timeout\t<max cpu seconds>\t(ulimit on unix systems)\n"; 72 print STDERR "\t-use_strings\t(use strings to extract text if conversion fails)\n"; 75 print STDERR "\t-use_strings\tuse strings to extract text if conversion fails\n"; 76 print STDERR "\t-pdf_complex\tuse complex output when converting PDF to HTML\n"; 77 print STDERR "\t-pdf_ignore_images\tdon't attempt to extract images when\n"; 78 print STDERR "\t\tconverting PDF to HTML\n"; 79 print STDERR "\t-pdf_zoom\tfactor by which to zoom PDF (only useful if\n"; 80 print STDERR "\t\t-pdf_complex is set\n"; 73 81 exit(1); 74 82 } … … 89 97 'timeout/\d+/0',\$timeout, 90 98 'verbose/\d+/0', \$verbose, 91 'use_strings', \$use_strings)) 99 'use_strings', \$use_strings, 100 'pdf_complex', \$pdf_complex, 101 'pdf_zoom/\d+/2', \$pdf_zoom 102 )) 92 103 { 93 104 print_usage(); … … 628 639 $cmd = ""; 629 640 if ($timeout) {$cmd = "ulimit -t $timeout;";} 630 $cmd .= "perl -S pdftohtml.pl "; 641 $cmd .= "perl -S pdftohtml.pl -zoom $pdf_zoom"; 642 $cmd .= " -c" if ($pdf_complex); 643 $cmd .= " -i" if ($pdf_ignore_images); 631 644 $cmd .= " \"$input_filename\" \"$output_filestem\""; 632 645
Note:
See TracChangeset
for help on using the changeset viewer.