<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Preview of Word/Excel/PowerPoint files doesn't work in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/preview-of-word-excel-powerpoint-files-doesn-t-work/m-p/37126#M15616</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have installed Alfresco Community 5.2 on a CentOS 7, with Tomcat 7, PostgreSQL 9.6, LibreOffice 5.4, ImageMagick 7 and GhostScript 9.07 and it's working fine with one exception - the preview of MS Office files.&lt;/P&gt;&lt;P&gt;In the Web Interface I get the message "The document can't be previewed. Click here to download it" and in the logs I get the errors from below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the alfresco-global.properties section dealing with LibreOffice and ImageMagick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ooo.exe=/opt/libreoffice5.4/program/soffice&lt;BR /&gt;ooo.enabled=true&lt;BR /&gt;jodconverter.officeHome=/opt/libreoffice5.4&lt;BR /&gt;jodconverter.portNumbers=8101&lt;BR /&gt;jodconverter.enabled=true&lt;BR /&gt;img.root=/usr/local&lt;BR /&gt;img.dyn=${img.root}/lib64&lt;BR /&gt;img.exe=${img.root}/bin/convert&lt;BR /&gt;img.gslib=/usr/share/ghostscript/9.07/lib&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here is the error from the log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;2017-10-24 00:57:01,699 ERROR [repo.action.AsynchronousActionExecutionQueueImpl] [defaultAsyncAction4] Failed to execute asynchronous action: Action[ id=ef275282-5cb6-4568-bfb7-431a5aa34366, node=null ]: 09240026 No thumbnail present in file, unable to generate image/jpeg&lt;BR /&gt; org.alfresco.error.AlfrescoRuntimeException: 09240045 Creation of thumbnail 'doclib' failed&lt;BR /&gt; at org.alfresco.repo.thumbnail.CreateThumbnailActionExecuter.executeImpl(CreateThumbnailActionExecuter.java:213)&lt;BR /&gt; at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:273)&lt;BR /&gt; at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:856)&lt;BR /&gt; at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:757)&lt;BR /&gt; at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1$1.execute(AsynchronousActionExecutionQueueImpl.java:430)&lt;BR /&gt; at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)&lt;BR /&gt; at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:333)&lt;BR /&gt; at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper$1.doWork(AsynchronousActionExecutionQueueImpl.java:439)&lt;BR /&gt; at org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:126)&lt;BR /&gt; at org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:95)&lt;BR /&gt; at org.alfresco.repo.tenant.TenantUtil$1.doWork(TenantUtil.java:69)&lt;BR /&gt; at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)&lt;BR /&gt; at org.alfresco.repo.tenant.TenantUtil.runAsUserTenant(TenantUtil.java:65)&lt;BR /&gt; at org.alfresco.repo.action.AsynchronousActionExecutionQueueImpl$ActionExecutionWrapper.run(AsynchronousActionExecutionQueueImpl.java:442)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:748)&lt;BR /&gt;Caused by: org.alfresco.service.cmr.repository.ContentIOException: 09240033 Content conversion failed: &lt;BR /&gt; reader: ContentAccessor[ contentUrl=store://2017/10/23/19/14/2c0bee93-558f-49cb-9dee-94c756c10aab.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=362502, encoding=UTF-8, locale=en_US]&lt;BR /&gt; writer: ContentAccessor[ contentUrl=store://2017/10/24/0/56/d90c9ee7-c3c6-479d-9b76-f7b02bb06001.bin, mimetype=image/png, size=0, encoding=UTF-8, locale=en_US]&lt;BR /&gt; options: {use=doclib, contentReaderNodeRef=workspace://SpacesStore/7a49aab7-4e17-45c5-b7e7-e40110c30c0e, contentWriterNodeRef=null, sourceContentProperty=null, imageAutoOrient=true, targetContentProperty=null, commandOptions=, imageResizeOptions=ImageResizeOptions [width=100, height=100, maintainAspectRatio=true, percentResize=false, resizeToThumbnail=false, allowEnlargement=false], includeEmbedded=null}&lt;BR /&gt; limits: {timeoutMs=120000, pageLimit=1}&lt;BR /&gt; at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:350)&lt;BR /&gt; at org.alfresco.repo.content.ContentServiceImpl.transform(ContentServiceImpl.java:613)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;BR /&gt; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt; at java.lang.reflect.Method.invoke(Method.java:498)&lt;BR /&gt; at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)&lt;BR /&gt; at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt; at org.alfresco.repo.model.ml.MLContentInterceptor.invoke(MLContentInterceptor.java:136)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt; at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt; at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt; at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)&lt;BR /&gt; at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)&lt;BR /&gt; at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)&lt;BR /&gt; at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt; at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)&lt;BR /&gt; at com.sun.proxy.$Proxy54.transform(Unknown Source)&lt;BR /&gt; at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java:447)&lt;BR /&gt; at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable$1.doWork(AbstractTransformationRenderingEngine.java:1)&lt;BR /&gt; at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)&lt;BR /&gt; at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:437)&lt;BR /&gt; at org.alfresco.repo.rendition.executer.AbstractTransformationRenderingEngine$TransformationCallable.call(AbstractTransformationRenderingEngine.java:1)&lt;BR /&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:266)&lt;BR /&gt; ... 3 more&lt;BR /&gt;Caused by: org.alfresco.service.cmr.repository.ContentIOException: 09240032 Content conversion failed: &lt;BR /&gt; reader: ContentAccessor[ contentUrl=store://2017/10/23/19/14/2c0bee93-558f-49cb-9dee-94c756c10aab.bin, mimetype=application/vnd.openxmlformats-officedocument.wordprocessingml.document, size=362502, encoding=UTF-8, locale=en_US]&lt;BR /&gt; writer: ContentAccessor[ contentUrl=store:///opt/tomcat-7/temp/Alfresco/ComplextTransformer_intermediate_docx_4174977320652050331.jpg, mimetype=image/jpeg, size=0, encoding=UTF-8, locale=en_US]&lt;BR /&gt; options: {use=doclib, contentReaderNodeRef=workspace://SpacesStore/7a49aab7-4e17-45c5-b7e7-e40110c30c0e, contentWriterNodeRef=null, sourceContentProperty=null, imageAutoOrient=true, targetContentProperty=null, commandOptions=, imageResizeOptions=ImageResizeOptions [width=100, height=100, maintainAspectRatio=true, percentResize=false, resizeToThumbnail=false, allowEnlargement=false], includeEmbedded=null}&lt;BR /&gt; limits: {timeoutMs=120000, pageLimit=1}&lt;BR /&gt; at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:350)&lt;BR /&gt; at org.alfresco.repo.content.ContentServiceImpl.transform(ContentServiceImpl.java:613)&lt;BR /&gt; at org.alfresco.repo.content.transform.ComplexContentTransformer.transformInternal(ComplexContentTransformer.java:483)&lt;BR /&gt; at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:272)&lt;BR /&gt; ... 31 more&lt;BR /&gt;Caused by: org.alfresco.repo.content.transform.UnimportantTransformException: 09240026 No thumbnail present in file, unable to generate image/jpeg&lt;BR /&gt; at org.alfresco.repo.content.transform.OOXMLThumbnailContentTransformer.transformInternal(OOXMLThumbnailContentTransformer.java:146)&lt;BR /&gt; at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:272)&lt;BR /&gt; ... 34 more&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2017 09:59:02 GMT</pubDate>
    <dc:creator>marius_dumitrac</dc:creator>
    <dc:date>2017-10-24T09:59:02Z</dc:date>
    <item>
      <title>Preview of Word/Excel/PowerPoint files doesn't work</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/preview-of-word-excel-powerpoint-files-doesn-t-work/m-p/37126#M15616</link>
      <description>Hi,I have installed Alfresco Community 5.2 on a CentOS 7, with Tomcat 7, PostgreSQL 9.6, LibreOffice 5.4, ImageMagick 7 and GhostScript 9.07 and it's working fine with one exception - the preview of MS Office files.In the Web Interface I get the message "The document can't be previewed. Click here t</description>
      <pubDate>Tue, 24 Oct 2017 09:59:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/preview-of-word-excel-powerpoint-files-doesn-t-work/m-p/37126#M15616</guid>
      <dc:creator>marius_dumitrac</dc:creator>
      <dc:date>2017-10-24T09:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Preview of Word/Excel/PowerPoint files doesn't work</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/preview-of-word-excel-powerpoint-files-doesn-t-work/m-p/37127#M15617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error message states that one transformer fails because it cannot find a prepared thumbnail already present in the Office file. This is an "optimisation" transformer which aims to avoid generating a (potentially inaccurate) thumbnail when the file contains one. The question in your case is, why is this transformer picked instead of the OpenOffice one,&amp;nbsp;when no thumbnail is embedded. Looking at the implementation, I can see no logic that&amp;nbsp;actually does any checks if a thumbnail exists before chosing this transformer, which at the look of it might be a bug in Alfresco., though I have not noticed it in current customer systems.&lt;/P&gt;&lt;P&gt;One option you have is to&amp;nbsp;de-prioritise the&amp;nbsp;OOXML transformer, so that the OpenOffice one is always tried first (as long as it supports the transformation). You should be able to do this by setting&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;content.transformer.OOXMLThumbnail.priority=500&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in alfresco-global.properties. With this setting, only specific transformations that have been prioritised explicitly (by default only dotx=&amp;gt;jpg and potx=&amp;gt;jpg) should be transformed via this transformer first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 10:57:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/preview-of-word-excel-powerpoint-files-doesn-t-work/m-p/37127#M15617</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2017-10-24T10:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Preview of Word/Excel/PowerPoint files doesn't work</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/preview-of-word-excel-powerpoint-files-doesn-t-work/m-p/37128#M15618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Axel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've done the modification you send me and restart Tomcat (also I've erased the alfresco and share folders from webapps tomcat folder) and the problems is still there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I've managed to isolate the error when preview the office docs. Here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017-10-24 14:15:27,277 ERROR [extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-6] Exception from executeScript: 09240002 The content node was not specified so the content cannot be streamed to the client: classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js&lt;BR /&gt; org.springframework.extensions.webscripts.WebScriptException: 09240002 The content node was not specified so the content cannot be streamed to the client: classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js&lt;BR /&gt; at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:176)&lt;BR /&gt; at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:512)&lt;BR /&gt; at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)&lt;BR /&gt; at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:587)&lt;BR /&gt; at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:656)&lt;BR /&gt; at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:428)&lt;BR /&gt; at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:308)&lt;BR /&gt; at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)&lt;BR /&gt; at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)&lt;BR /&gt; at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)&lt;BR /&gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)&lt;BR /&gt; at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)&lt;BR /&gt; at org.alfresco.module.aosmodule.service.ContextRootFilter.doFilter(ContextRootFilter.java:93)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)&lt;BR /&gt; at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)&lt;BR /&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)&lt;BR /&gt; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)&lt;BR /&gt; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)&lt;BR /&gt; at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:506)&lt;BR /&gt; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)&lt;BR /&gt; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)&lt;BR /&gt; at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:962)&lt;BR /&gt; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)&lt;BR /&gt; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)&lt;BR /&gt; at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1115)&lt;BR /&gt; at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)&lt;BR /&gt; at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)&lt;BR /&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)&lt;BR /&gt; at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)&lt;BR /&gt; at java.lang.Thread.run(Thread.java:748)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 11:38:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/preview-of-word-excel-powerpoint-files-doesn-t-work/m-p/37128#M15618</guid>
      <dc:creator>marius_dumitrac</dc:creator>
      <dc:date>2017-10-24T11:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Preview of Word/Excel/PowerPoint files doesn't work</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/preview-of-word-excel-powerpoint-files-doesn-t-work/m-p/37129#M15619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I've solved the problem. Here is a short tutorial on how to fix this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;First a small typo in my alfresco-global.properties file:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;jodconverter.portNumbers=8101 should be jodconverter.portNumbers=&lt;STRONG&gt;8100&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;The root cause was the absence of &lt;EM&gt;libcairo.so.2&lt;/EM&gt; library and because of this, the openoffice could not be started.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;I found out by executing the ./soffice command in the folder where LibreOffice is installed (in my case this was in /opt/libreoffice5.4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;If the response is something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; /path/to/libreoffice/program/soffice.bin: Error while loading shared libraries: libcairo.so.2 ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you have to install the missing library.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;In my case (CentOS 7) I've executed the following command:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;yum install cairo -y&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;After that, running ./soffice the result was:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Failed to open display&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;After that, I've restarted tomcat, and that was it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Now the MS Office files are opened in preview.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2017 19:16:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/preview-of-word-excel-powerpoint-files-doesn-t-work/m-p/37129#M15619</guid>
      <dc:creator>marius_dumitrac</dc:creator>
      <dc:date>2017-10-24T19:16:18Z</dc:date>
    </item>
  </channel>
</rss>

