Ignore:
Timestamp:
2003-04-08T12:25:08+12:00 (21 years ago)
Author:
sjboddie
Message:

Added a -nohidden PDFPlug option and made it pass the -hidden option to pdftohtml
by default.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gsConvert.pl

    r3933 r4103  
    6060my $use_strings;
    6161my $pdf_complex;
     62my $pdf_nohidden;
    6263my $pdf_zoom;
    6364my $pdf_ignore_images;
     
    7576    print STDERR "\t-use_strings\tuse strings to extract text if conversion fails\n";
    7677    print STDERR "\t-pdf_complex\tuse complex output when converting PDF to HTML\n";
     78    print STDERR "\t-pdf_nohidden\tDon't attempt to extract hidden text from PDF files\n";
    7779    print STDERR "\t-pdf_ignore_images\tdon't attempt to extract images when\n";
    7880    print STDERR "\t\tconverting PDF to HTML\n";
     
    99101             'use_strings', \$use_strings,
    100102             'pdf_complex', \$pdf_complex,
     103             'pdf_nohidden', \$pdf_nohidden,
    101104             'pdf_zoom/\d+/2', \$pdf_zoom
    102105             ))
     
    642645    $cmd .= " -c" if ($pdf_complex);
    643646    $cmd .= " -i" if ($pdf_ignore_images);
     647    $cmd .= " -hidden" unless ($pdf_nohidden);
    644648    $cmd .= " \"$input_filename\" \"$output_filestem\"";
    645649   
Note: See TracChangeset for help on using the changeset viewer.