mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 00:31:58 +01:00
use a modified version of xlhtml for ppt files
This commit is contained in:
parent
4fe041d552
commit
ab29175975
12
configure
vendored
12
configure
vendored
@ -3418,6 +3418,7 @@ have_zlib="no"
|
||||
pdftotext="no"
|
||||
catdoc="no"
|
||||
catppt="no"
|
||||
ppthtml="no"
|
||||
xls2csv="no"
|
||||
unrtf="no"
|
||||
|
||||
@ -4295,6 +4296,16 @@ _ACEOF
|
||||
fi
|
||||
|
||||
|
||||
if test z`which ppthtml 2>/dev/null` != "z"; then
|
||||
ppthtml=`which ppthtml`
|
||||
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_PPTHTML "$ppthtml"
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
||||
|
||||
if test z`which xls2csv 2>/dev/null` != "z"; then
|
||||
xls2csv=`which xls2csv`
|
||||
|
||||
@ -4319,6 +4330,7 @@ echo
|
||||
echo "pdftotext: $pdftotext"
|
||||
echo "catdoc: $catdoc"
|
||||
echo "catppt: $catppt"
|
||||
echo "ppthtml: $ppthtml"
|
||||
echo "xls2csv: $xls2csv"
|
||||
echo "unrtf: $unrtf"
|
||||
|
||||
|
@ -44,6 +44,7 @@ have_zlib="no"
|
||||
pdftotext="no"
|
||||
catdoc="no"
|
||||
catppt="no"
|
||||
ppthtml="no"
|
||||
xls2csv="no"
|
||||
unrtf="no"
|
||||
|
||||
@ -315,6 +316,12 @@ if test z`which catppt 2>/dev/null` != "z"; then
|
||||
fi
|
||||
|
||||
|
||||
if test z`which ppthtml 2>/dev/null` != "z"; then
|
||||
ppthtml=`which ppthtml`
|
||||
AC_DEFINE_UNQUOTED(HAVE_PPTHTML, "$ppthtml", [path to ppthtml])
|
||||
fi
|
||||
|
||||
|
||||
if test z`which xls2csv 2>/dev/null` != "z"; then
|
||||
xls2csv=`which xls2csv`
|
||||
AC_DEFINE_UNQUOTED(HAVE_XLS2CSV, "$xls2csv", [path to xls2csv])
|
||||
@ -331,6 +338,7 @@ echo
|
||||
echo "pdftotext: $pdftotext"
|
||||
echo "catdoc: $catdoc"
|
||||
echo "catppt: $catppt"
|
||||
echo "ppthtml: $ppthtml"
|
||||
echo "xls2csv: $xls2csv"
|
||||
echo "unrtf: $unrtf"
|
||||
|
||||
|
@ -13,6 +13,7 @@
|
||||
#undef HAVE_CATDOC
|
||||
#undef HAVE_CATPPT
|
||||
#undef HAVE_XLS2CSV
|
||||
#undef HAVE_PPTHTML
|
||||
#undef HAVE_UNRTF
|
||||
#undef HAVE_ZIP
|
||||
|
||||
|
@ -190,6 +190,10 @@ void extract_attachment_content(struct session_data *sdata, struct _state *state
|
||||
if(strcmp(type, "xls") == 0) snprintf(cmd, sizeof(cmd)-1, "%s -d utf-8 %s", HAVE_XLS2CSV, filename);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_PPTHTML
|
||||
if(strcmp(type, "ppt") == 0) snprintf(cmd, sizeof(cmd)-1, "%s %s", HAVE_PPTHTML, filename);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_UNRTF
|
||||
if(strcmp(type, "rtf") == 0) snprintf(cmd, sizeof(cmd)-1, "%s --text %s", HAVE_UNRTF, filename);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user