From 2b4eaf9ca6ced2d6b5f61752322196b2d52de532 Mon Sep 17 00:00:00 2001 From: Megan Watson Date: Thu, 23 Apr 2009 12:27:18 +0200 Subject: [PATCH] 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" --- plugins/pdfConverter/pdfConverter.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/pdfConverter/pdfConverter.php b/plugins/pdfConverter/pdfConverter.php index 2123499..20c8097 100644 --- a/plugins/pdfConverter/pdfConverter.php +++ b/plugins/pdfConverter/pdfConverter.php @@ -80,11 +80,11 @@ class pdfConverter extends BaseProcessor // taken from the original list of accepted types in the pdf generator action $mime_types = array(); - $mime_types[] = 'text/plain'; + //$mime_types[] = 'text/plain'; + //$mime_types[] = 'text/xml'; + //$mime_types[] = 'chemical/x-pdb'; + //$mime_types[] = 'text/csv'; $mime_types[] = 'text/rtf'; - $mime_types[] = 'text/xml'; - $mime_types[] = 'text/csv'; - $mime_types[] = 'chemical/x-pdb'; $mime_types[] = 'application/msword'; $mime_types[] = 'application/vnd.ms-powerpoint'; $mime_types[] = 'application/vnd.ms-excel'; -- libgit2 0.21.4