提交 8b70b264 authored 作者: Mathieu Parent's avatar Mathieu Parent

email2pdf: use ooextract without path and extension

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk/contrib@15766 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 221f0b6d
...@@ -118,15 +118,15 @@ my $mime_drivers = { ...@@ -118,15 +118,15 @@ my $mime_drivers = {
'tiff' => ['.tiff', 'convert FILE pdf:-'], 'tiff' => ['.tiff', 'convert FILE pdf:-'],
#OpenDocument #OpenDocument
'opendoctext' => ['.odt', 'python /root/ooextract.py --pdf --stdout FILE'], 'opendoctext' => ['.odt', 'ooextract --pdf --stdout FILE'],
'opendocspreadsheet' => ['.ods', 'python /root/ooextract.py --pdf --stdout FILE'], 'opendocspreadsheet' => ['.ods', 'ooextract --pdf --stdout FILE'],
'opendocpresentation' => ['.odp', 'python /root/ooextract.py --pdf --stdout FILE'], 'opendocpresentation' => ['.odp', 'ooextract --pdf --stdout FILE'],
'opendocgraphics' => ['.odg', 'python /root/ooextract.py --pdf --stdout FILE'], 'opendocgraphics' => ['.odg', 'ooextract --pdf --stdout FILE'],
#MS office #MS office
'msexcel' => ['.xls', 'python /root/ooextract.py --pdf --stdout FILE'], 'msexcel' => ['.xls', 'ooextract --pdf --stdout FILE'],
'mspowerpoint' => ['.ppt', 'python /root/ooextract.py --pdf --stdout FILE'], 'mspowerpoint' => ['.ppt', 'ooextract --pdf --stdout FILE'],
'msword' => ['.doc', 'python /root/ooextract.py --pdf --stdout FILE'], 'msword' => ['.doc', 'ooextract --pdf --stdout FILE'],
'pdf' => ['.pdf', 'cat FILE'], 'pdf' => ['.pdf', 'cat FILE'],
}; };
# Template config # Template config
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论