From 0e55c95171b8c2aa2b925f76f8b89bcdcfa62c0c Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 2 Jan 2023 12:26:31 +0100 Subject: [PATCH] remove old converters --- SeedDMS_Preview/Preview/PdfPreviewer.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/SeedDMS_Preview/Preview/PdfPreviewer.php b/SeedDMS_Preview/Preview/PdfPreviewer.php index c58f8c343..ba9c79ad9 100644 --- a/SeedDMS_Preview/Preview/PdfPreviewer.php +++ b/SeedDMS_Preview/Preview/PdfPreviewer.php @@ -27,18 +27,6 @@ class SeedDMS_Preview_PdfPreviewer extends SeedDMS_Preview_Base { function __construct($previewDir, $timeout=5, $xsendfile=true) { /* {{{ */ parent::__construct($previewDir, $timeout, $xsendfile); $this->converters = array( - 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' => "unoconv -d document -f pdf --stdout -v '%f' > '%o'", - 'application/vnd.oasis.opendocument.text' => "unoconv -d document -f pdf --stdout -v '%f' > '%o'", - 'text/rtf' => "unoconv -d document -f pdf --stdout -v '%f' > '%o'", - 'application/msword' => "unoconv -d document -f pdf --stdout -v '%f' > '%o'", - 'application/vnd.ms-excel' => "unoconv -d document -f pdf --stdout -v '%f' > '%o'", - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' => "unoconv -d document -f pdf --stdout -v '%f' > '%o'", - 'text/plain' => "unoconv -d document -f pdf --stdout -v '%f' > '%o'", - 'application/postscript' => "ps2pdf '%f' - > '%o'", - 'image/jpeg' => "convert '%f' pdf:- > '%o'", - 'image/png' => "convert '%f' pdf:- > '%o'", - 'image/gif' => "convert '%f' pdf:- > '%o'", - 'video/mp4' => "convert '%f[1-20]' pdf:- > '%o'", ); } /* }}} */