Changeset 4103 for trunk/gsdl/perllib


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/perllib/plugins/PDFPlug.pm

    r3833 r4103  
    4545            'type' => "flag" },
    4646          { 'name' => "complex",
    47             'desc' =>  "Create more complex output. With this option set the output html will look much more like the original PDF file. For this to function properly you Ghostscript installed (for *nix gs should be on your path while for windows you must have gswin32c.exe on your path).",
     47            'desc' => "Create more complex output. With this option set the output html will look much more like the original PDF file. For this to function properly you Ghostscript installed (for *nix gs should be on your path while for windows you must have gswin32c.exe on your path).",
     48            'type' => "flag" },
     49          { 'name' => "nohidden",
     50            'desc' => "Prevent pdftohtml from attempting to extract hidden text. This is only useful if the -complex option is also set.",
    4851            'type' => "flag" },
    4952          { 'name' => "zoom",
     
    6063    my $class = shift (@_);
    6164
    62     my ($noimages, $complex, $zoom, $use_sections);
     65    my ($noimages, $complex, $zoom, $use_sections, $nohidden);
    6366   
    6467    if (!parsargv::parse(\@_,
     
    6669             q^complex^, \$complex,
    6770             q^zoom/\d+/2^, \$zoom,
     71             q^nohidden^, \$nohidden,
    6872             q^use_sections/1?/^, \$use_sections,
    6973             "allow_extra_options")) {
     
    97101    $self->{'convert_options'} = "-pdf_zoom $zoom";
    98102    $self->{'convert_options'} .= " -pdf_complex" if $complex;
     103    $self->{'convert_options'} .= " -pdf_nohidden" if $nohidden;
    99104    $self->{'convert_options'} .= " -pdf_ignore_images" if $noimages;
    100105
     
    122127    print STDERR "                     gs should be on your path while for windows\n";
    123128    print STDERR "                     you must have gswin32c.exe on your path).\n";
     129    print STDERR "   -nohidden         Prevent pdftohtml from attempting to extract\n";
     130    print STDERR "                     hidden text. This is only useful if the -complex\n";
     131    print STDERR "                     option is also set.";
    124132    print STDERR "   -zoom             The factor by which to zoomthe PDF for output\n";
    125133    print STDERR "                     (this is only useful if -complex is set).\n\n";
Note: See TracChangeset for help on using the changeset viewer.