cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable web preview

rahulpatil
Champ in-the-making
Champ in-the-making
Hello everybody,

I'm trying to enable WebODF Preview in Alfresco 4.2c but I've some confusion in configuration.

I've tried following links :

http://blogs.alfresco.com/wp/wabson/2012/04/11/share-document-previews-in-alfresco-4/
http://code.google.com/p/share-extras/wiki/MediaViewers#Configuration

I'm using web-preview.get.config.xml as same as -> https://gist.github.com/wabson/5057107

As you can see files as below


root@dc:/opt/alfresco/tomcat/shared/lib# updatedb

root@dc:/opt/alfresco/tomcat/shared/lib# locate web-preview.get
/opt/alfresco/tomcat/shared/classes/alfresco/web-extension/site-webscripts/org/alfresco/components/preview/web-preview.get.config.xml
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get.config.xml
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get.config.xml-org
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get.desc.xml
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get.head.ftl
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get.html.ftl
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get.js
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get.properties
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get_de.properties
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get_en.properties
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get_es.properties
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get_fr.properties
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get_it.properties
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get_ja.properties
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get_nb_NO.properties
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get_nl.properties
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get_ru.properties
/opt/alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/preview/web-preview.get_zh_CN.properties


root@dc:/opt/alfresco/tomcat/shared/lib# ls -rlht
total 1000K
-rwxr-xr-x 1 alfresco alfresco  45K Jun 30  2012 share-webodf-0.1.jar
-rwxr-xr-x 1 alfresco alfresco 952K Feb 15  2013 media-viewers-2.5.1.jar

root@dc:/opt/alfresco/tomcat/shared/lib# pwd
/opt/alfresco/tomcat/shared/lib



Only PDF Preview is Working But issue with other all mime-type

Ex.
Couldn't display content due to missing plugin 'WebODF'

Please help me with the same..

Thanks
Rahul Patil.
3 REPLIES 3

sujaypillai
Confirmed Champ
Confirmed Champ
Try using this plugin - https://github.com/wabson/webodf-share

rahulpatil
Champ in-the-making
Champ in-the-making
After doing below changes, odt file now preview :

- Started alfresco as root
- deplyoed jar file as per instruction on http://code.google.com/p/share-extras/wiki/MediaViewers#Configuration

but some browser document preview is not properly , see screen shot as below and let me know, what are the things need to be check in order to solve this issue .

sujaypillai
Confirmed Champ
Confirmed Champ
Now I too have issues with previewing an .odt file. It renders up in PDFJs viewer instead of the WebOdf viewer. Attached here is the screenshot for the same. I have raised an issue on MediaViewers github page - https://github.com/share-extras/media-viewers/issues/34
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.