Ignore:
Timestamp:
2018-06-27T18:30:21+12:00 (6 years ago)
Author:
ak19
Message:

Adding PDF to text support for Windows using Xpdf's pdftotext tool. Previously PDFPlugin would override the output mode to HTML on Windows if txt output mode was selected.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/PDFPlugin.pm

    r32223 r32224  
    151151    # TODO: Start supporting PDF to txt on Windows if we're going to be using XPDF Tools (incl pdftotext) on Windows/Linux/Mac
    152152    if ($self->{'convert_to'} eq "text" && $ENV{'GSDLOS'} =~ /^windows$/i) {
    153     print STDERR "Windows does not support pdf to text. PDFs will be converted to HTML instead\n";
    154     $self->{'convert_to'} = "html";
     153        print STDERR "On Windows, Greenstone now uses Xpdf tools to support pdf to text conversion.\n";
     154    #print STDERR "Windows does not support pdf to text. PDFs will be converted to HTML instead\n";
     155    #$self->{'convert_to'} = "html";
    155156    }
    156157    elsif ($self->{'convert_to'} eq "auto") {
Note: See TracChangeset for help on using the changeset viewer.