Commit 2b4eaf9ca6ced2d6b5f61752322196b2d52de532

Authored by Megan Watson
1 parent e6a7ab3b

KTC-611 Not all text types are supported in OOo. Removed support for txt, csv, xml.

"PDF error: "The document could not be opened for conversion. This could indicate an unsupported mimetype. " when attempting to convert certain file types"

Committed by: Megan Watson
plugins/pdfConverter/pdfConverter.php
... ... @@ -80,11 +80,11 @@ class pdfConverter extends BaseProcessor
80 80  
81 81 // taken from the original list of accepted types in the pdf generator action
82 82 $mime_types = array();
83   - $mime_types[] = 'text/plain';
  83 + //$mime_types[] = 'text/plain';
  84 + //$mime_types[] = 'text/xml';
  85 + //$mime_types[] = 'chemical/x-pdb';
  86 + //$mime_types[] = 'text/csv';
84 87 $mime_types[] = 'text/rtf';
85   - $mime_types[] = 'text/xml';
86   - $mime_types[] = 'text/csv';
87   - $mime_types[] = 'chemical/x-pdb';
88 88 $mime_types[] = 'application/msword';
89 89 $mime_types[] = 'application/vnd.ms-powerpoint';
90 90 $mime_types[] = 'application/vnd.ms-excel';
... ...