Ignore:
Timestamp:
2018-06-27T16:50:52+12:00 (3 years ago)
Author:
ak19
Message:

When no output mode for PDFPlugin has been set by the user, the output mode now defaults to paged_html (previously html). paged_html uses xpdftools to do the PDF conversion, which will apparently work for all versions of PDF so it gives better version coverage than the old pdftohtml.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/bin/script/gsConvert.pl

    r32221 r32223  
    324324    # Attempt conversion to HTML
    325325    # Uses the old pdftohtml that doesn't work for newer PDF versions
    326     #if ($output_type =~ m/^html/i) {
    327     if (!$output_type || ($output_type =~ m/^html/i)) {
     326    if ($output_type =~ m/^html/i) {
     327    #if (!$output_type || ($output_type =~ m/^html/i)) {
    328328    $success = &pdf_to_html($dirname, $input_filename, $output_filestem);
    329329    if ($success) {
     
    335335    # will be the new default for PDFs when output_type for PDF docs is not specified
    336336    # (once our use of xpdftools' pdftohtml has been implemented on win and mac).
    337     if ($output_type =~ m/paged_html/i) {
    338     #if (!$output_type || ($output_type =~ m/paged_html/i)) {
     337    #if ($output_type =~ m/paged_html/i) {
     338    if (!$output_type || ($output_type =~ m/paged_html/i)) {
    339339    $success = &xpdf_to_html($dirname, $input_filename, $output_filestem);
    340340    if ($success) {
Note: See TracChangeset for help on using the changeset viewer.