Hi Jared,
I used to do this:
List<TransformDocument> results;
TransformService service =
NXTransform.getTransformService();
if (type.contains("pdf")) {
Transformer transformer =
service.getTransformerByName("pdf2text");
results = transformer.transform(null,
new TransformDocumentImpl(blob, type));
} else {
Transformer transformer =
service.getTransformerByName("any2text");
results = transformer.transform(null,
new TransformDocumentImpl(blob, type));
}
final InputStream resultStream =
results.get(0).getBlob().getStream();
This piece of code transform any type of file to plain text. I hope that
you find this useful.
Regards.
[EMAIL PROTECTED] escribió:
> Hi all,
>
> I have the Nuxeo EP 5.2M1 installed on a Window XP 32 bit machine.
>
> I am looking to do file transformation as the "Features" state.
>
> +Transformation can be triggered manually, by the user, or automatically by
> rules reacting on events (e.g. file modification). For example, you can
> easily configure the system to transform all files to PDF when a document is
> approved or published.+
> [http://www.nuxeo.com/en/products/sp/content-transformation/]
>
> I have seen in the documentation how to enable this or even how to install a
> plugin/addon to the Nuxeo EP.
>
> Can someone please point me to correct place to enable user triggered
> transformations?
>
> Thanks,
> Jared
> _______________________________________________
> ECM mailing list
> [email protected]
> http://lists.nuxeo.com/mailman/listinfo/ecm
>
>
--
Enrique PƩrez Olivares.
Dpto I+D.
Yerbabuena Software.
[EMAIL PROTECTED]
http://www.yerbabuena.es
Tlf/Fax: 902 995 246
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm