<?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 Re: 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/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>
    <dc:creator>marius_dumitrac</dc:creator>
    <dc:date>2017-10-24T19:16:18Z</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>

