share-extras / media-viewers

Enhanced document previews for a range of different document and media types, plus a dashlet allowing any content item to be displayed on a site dashboard.
Apache License 2.0
29 stars 23 forks source link

Need help in WebOdf configuration for 4.2.c #34

Closed pillais1 closed 10 years ago

pillais1 commented 10 years ago

Can someone please let me know what configuration I am missing for WebOdf preview. Below are the steps I followed:

  1. Placed media-viewers-2.5.1.jar, share-webodf.jar under tomcat/share/lib
  2. Placed web-preview.get.config.xml under tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\preview

Hope so we just need to add this xml snippet in web-preview.get.config.xml

WebODF

When I try to preview any *.odt file it shows the preview in PDFJs viewer by converting .odt > pdf in back instead of WebOdf viewer.

wabson commented 10 years ago

Did you install the actual WebODF library JAR too? To link to download this is in the installation instructions in the README.

On Thursday, November 28, 2013, Sujay wrote:

Can someone please let me know what configuration I am missing for WebOdf preview. Below are the steps I followed:

  1. Placed media-viewers-2.5.1.jar, share-webodf.jar under tomcat/share/lib
  2. Placed web-preview.get.config.xml under tomcat\shared\classes\alfresco\web-extension\site-webscripts\org\alfresco\components\preview

Hope so we just need to add this xml snippet in web-preview.get.config.xml

WebODF

When I try to preview any *.odt file it shows the preview in PDFJs viewer by converting .odt > pdf in back instead of WebOdf viewer.

— Reply to this email directly or view it on GitHubhttps://github.com/share-extras/media-viewers/issues/34 .

pillais1 commented 10 years ago

Are you reffering to share-webodf.jar?

If not can you please share the URL to download the WebODF library JAR?

wabson commented 10 years ago

That is the one. DId you also enable the 'WebODF Viewer (Experimental)' extensibility module in Share?

The 'WebODF Configuration' module can be used in place of the XML configuration in 4.2.c and upwards, and is probably going to be more reliable for you.

tbaptista commented 10 years ago

Have the same problem. Did you manage to solve the issue?

wabson commented 10 years ago

I reproduced this issue when the PDfJs Configuration module was loaded after the WebODF Configuration module in the deployment console. This is by design, as those modules always insert the viewer at the start of the chain.

You can use the Up and Down buttons to rearrange the modules so that WebODF comes after and apply the changes, you should then find that the WebODF viewer is used for ODT documents.

screen shot 2013-12-20 at 17 30 46

Incidentally if you find the WebODF viewer useful and want to contribute to making it a bit better, that would be very welcome.

wabson commented 10 years ago

Closing as notabug