Changeset 32275 for main/trunk/greenstone2/perllib/plugins/PDFPlugin.pm
- Timestamp:
- 2018-07-13T21:02:27+12:00 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/PDFPlugin.pm
r32273 r32275 143 143 # PDFv1Plugin, if they want to use the old pdftohtml tool's capabilities, 144 144 # and PDFv2Plugin, if they want to use pdfbox or the new xpdftools capabilities. 145 &gsprintf::gsprintf(STDERR, "{PDFPlugin.deprecated_plugin} ");145 &gsprintf::gsprintf(STDERR, "{PDFPlugin.deprecated_plugin}\n"); 146 146 147 147 # these are passed through to gsConvert.pl by ConvertBinaryFile.pm … … 158 158 159 159 # check convert_to 160 # TODO: Start supporting PDF to txt on Windows if we're going to be using XPDF Tools (incl pdftotext) on Windows/Linux/Mac161 160 if ($self->{'convert_to'} eq "text" && $ENV{'GSDLOS'} =~ /^windows$/i) { 162 #print STDERR "On Windows, Greenstone now uses Xpdf tools to support pdf to text conversion.\n"; 163 print STDERR "Windows does not support pdf to text. PDFs will be converted to HTML instead\n"; 161 &gsprintf::gsprintf(STDERR, "{PDFPlugin.win_old_pdftotext_unsupported}\n", "PDFPlugin"); 164 162 $self->{'convert_to'} = "html"; 165 163 }
Note:
See TracChangeset
for help on using the changeset viewer.