This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove preview using webODF as this is not good enough - add preview using server side conversion to pdf (optional) (support docx,doc,xlsx,xls,pptx,ppt,odt,ods and odp) - The document conversion is experimental and only for CentOS 7 atm.
- Loading branch information
Barry de Graaff
committed
Oct 28, 2016
1 parent
5021cfe
commit 187d953
Showing
10 changed files
with
273 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
# yum install -y libreoffice-headless.x86_64 libreoffice.x86_64 | ||
# adduser docconvert | ||
# chmod +x /usr/local/sbin/docconvert | ||
# echo "zimbra ALL=(docconvert) NOPASSWD: ALL" > /etc/sudoers.d/99_zimbra-docconvert | ||
# usermod -a -G zimbra docconvert | ||
# usermod -a -G docconvert zimbra | ||
|
||
if ! [[ $1 ]] | ||
then | ||
echo "argument required" | ||
exit 0; | ||
fi | ||
|
||
cd /tmp | ||
sudo -u docconvert /usr/bin/soffice --convert-to pdf $1 --headless | ||
sudo -u docconvert /usr/bin/chmod ugo+rwx /tmp/docconvert*.pdf | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
if ! [[ $1 ]] | ||
then | ||
echo "argument required" | ||
exit 0; | ||
fi | ||
|
||
cd /tmp | ||
sudo -u docconvert rm -f $1 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+926 KB
extension/lib/zal-1.10.6-8.7.0.jar → extension/lib/zal-1.11.2-8.7.1.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.