留言板
Issue on document preview in liferay 6.1EE
jinish shah,修改在12 年前。
Issue on document preview in liferay 6.1EE
New Member 帖子: 13 加入日期: 11/1/9 最近的帖子
Hi all,
we are using liferay 6.1 EE and in that Document and Media portlet providing document preview for only PDF files.
For doc,ppt file preview we need to install a ImageMagick and ghostscript.We have installed it and set below properties in portal-ext.properties
openoffice.server.enabled=true
imagemagick.enabled=true
And for linux system we used below proerties.We may also need to configure the path for fonts used by Ghostscript for linux environments imagemagick.global.search.path[Unix]= /usr/local/bin:/usr/share/ghostscript/8.71/Resource/Font
And for windows system we used below properties
imagemagick.global.search.path[windows]=C:\\Program Files\\ImageMagick
Preview is working perfactly in windows machine.But in linux machine preview is not generating.
We took a reference from this link
http://www.liferay.com/community/wiki/-/wiki/Main/Preview+Generation
http://www.liferay.com/community/wiki/-/wiki/Main/Document+Conversion+with+OpenOffice
Has anyone faced such issue before?
Please share any ideas regarding this.
we are using liferay 6.1 EE and in that Document and Media portlet providing document preview for only PDF files.
For doc,ppt file preview we need to install a ImageMagick and ghostscript.We have installed it and set below properties in portal-ext.properties
openoffice.server.enabled=true
imagemagick.enabled=true
And for linux system we used below proerties.We may also need to configure the path for fonts used by Ghostscript for linux environments imagemagick.global.search.path[Unix]= /usr/local/bin:/usr/share/ghostscript/8.71/Resource/Font
And for windows system we used below properties
imagemagick.global.search.path[windows]=C:\\Program Files\\ImageMagick
Preview is working perfactly in windows machine.But in linux machine preview is not generating.
We took a reference from this link
http://www.liferay.com/community/wiki/-/wiki/Main/Preview+Generation
http://www.liferay.com/community/wiki/-/wiki/Main/Document+Conversion+with+OpenOffice
Has anyone faced such issue before?
Please share any ideas regarding this.
Juan Gonzalez P,修改在12 年前。
RE: Issue on document preview in liferay 6.1EE
Liferay Legend 帖子: 3089 加入日期: 08/10/28 最近的帖子
Any error in logs?
If you enable openoffice you'd have to startup the openoffice server and configure the port in Liferay side.
If you enable openoffice you'd have to startup the openoffice server and configure the port in Liferay side.
jinish shah,修改在12 年前。
RE: Issue on document preview in liferay 6.1EE
New Member 帖子: 13 加入日期: 11/1/9 最近的帖子
No there is no any error log in back-end.
We have started openofffice server by this command
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
And put the following properties in portal-ext.properties
openoffice.server.enabled=true
imagemagick.enabled=true
imagemagick.global.search.path[Unix]= /usr/local/bin
We have started openofffice server by this command
soffice -headless -accept="socket,host=127.0.0.1,port=8100;urp;" -nofirststartwizard
And put the following properties in portal-ext.properties
openoffice.server.enabled=true
imagemagick.enabled=true
imagemagick.global.search.path[Unix]= /usr/local/bin
jinish shah,修改在12 年前。
RE: Issue on document preview in liferay 6.1EE
New Member 帖子: 13 加入日期: 11/1/9 最近的帖子
Also when i enable a log of
com.liferay.portlet.documentlibrary.util
I got this info message
INFO [PDFProcessorImpl:493] Excecuting command 'convert -alpha off -density 300x300 -adaptive-resize 1000 -depth 8 /opt//liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/temp/liferay/document_conversion/180103.1.0.pdf[0] /opt/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/temp/liferay/document_thumbnail/180103.1.0.png '
com.liferay.portlet.documentlibrary.util
I got this info message
INFO [PDFProcessorImpl:493] Excecuting command 'convert -alpha off -density 300x300 -adaptive-resize 1000 -depth 8 /opt//liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/temp/liferay/document_conversion/180103.1.0.pdf[0] /opt/liferay-portal-6.1.10-ee-ga1/tomcat-7.0.25/temp/liferay/document_thumbnail/180103.1.0.png '
jinish shah,修改在12 年前。
RE: Issue on document preview in liferay 6.1EE
New Member 帖子: 13 加入日期: 11/1/9 最近的帖子
The issue is resolved now.We put wrong path of convert command.You can get the path by "Which convert" command.It is either "/usr/bin" or "/usr/local/bin".
And also check that libpng-devel is install or not.
And also check that libpng-devel is install or not.
Thomas Berg,修改在12 年前。
RE: Issue on document preview in liferay 6.1EE
Regular Member 帖子: 131 加入日期: 09/9/7 最近的帖子
Thanks, got ImageMagick to work finally!
The default Liferay value (Path) for ImageMagick in the control panel is
What about urw-fonts, should they be installed and if so, how to install them in Ubuntu?
The default Liferay value (Path) for ImageMagick in the control panel is
/usr/local/bin:/usr/local/share/ghostscript/fonts:/usr/local/share/fonts/urw-fonts
What about urw-fonts, should they be installed and if so, how to install them in Ubuntu?