- Timestamp:
- 2018-07-13T21:02:27+12:00 (6 years ago)
- Location:
- main/trunk/greenstone2/perllib
- Files:
-
- 3 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 } -
main/trunk/greenstone2/perllib/plugins/PDFv1Plugin.pm
r32273 r32275 146 146 147 147 # check convert_to 148 # TODO: Start supporting PDF to txt on Windows if we're going to be using XPDF Tools (incl pdftotext) on Windows/Linux/Mac149 148 if ($self->{'convert_to'} eq "text" && $ENV{'GSDLOS'} =~ /^windows$/i) { 150 print STDERR "*** On Windows, PDFv1Plugin does not support pdf to text. PDFs will be converted to HTML instead.\n"; 151 print STDERR "*** Use PDFv2Plugin if you really want pdf to text conversion.\n"; 149 &gsprintf::gsprintf(STDERR, "{PDFPlugin.win_old_pdftotext_unsupported}\n", "PDFv1Plugin"); 152 150 $self->{'convert_to'} = "html"; 153 151 } -
main/trunk/greenstone2/perllib/strings.properties
r32273 r32275 1179 1179 PDFPlugin.use_sections:Create a separate section for each page of the PDF file. 1180 1180 1181 PDFPlugin.win_old_pdftotext_unsupported:*** On Windows, %s does not support pdf to text. PDFs will be converted to HTML instead.\n*** Use PDFv2Plugin if you really want pdf to text conversion. 1182 1181 1183 PDFPlugin.zoom:The factor by which to zoom the PDF for output. If not outputting as paged_html, then zoom is only useful if -complex is set. 1182 1184
Note:
See TracChangeset
for help on using the changeset viewer.