How are others handling real time document previewing?

Hi Folks,

I've recently loaned a Nuxeo 6.0 system to a one-person legal client for evaluation. It doesn't look like this will result in a sale, for the reason of them desiring real-time previewing of content in the Nuxeo repository.

The critical example use case is email items. The client ideally would like to sift through .eml files uploaded to Nuxeo and have a full in-app preview of the email content, without having to use Nuxeo Drive to launch a helper application. The same is true to a lesser extent of ODF and PDF files.

This may well be a case of the wrong tool for the job – but all the same can anyone else share any solutions or suggestions for how Nuxeo could be configured for this scenario, specifically for .eml file previews?

Cheers, Dave

1 votes

1 answers

1770 views

ANSWER



I have had good luck (not with .eml, but with XML being processed with XSLT) by extending the AbstractHtmlPreviewAdapter and PreviewAdapterFactory classes. If you can program or use a .eml-to-HTML converter, I think you should be able to use the same technique.

Not counting the conversion code itself (which in our case is XSLT), the technique is quite simple.

1 votes



Thanks for the helpful information, empiricalthought.

Cheers, Dave

03/16/2015

Good luck! I've wanted to create an open-source version of the XSLT-based preview adapter, but naturally more immediate needs have been taking precedence.
03/16/2015