REST API Convert DocX to text

Showing results for 
Search instead for 
Did you mean: 
Member II

REST API Convert DocX to text

Is there a call in the REST API that will return a DocX file as plain text? 
I'm currently working on an OnlyOffice plugin that would get content from Alfresco and paste it within the OnlyOffice Online Editor. I'm limited to html and js pages (one of each) so Im using the REST API.

1 Reply
Active Member II

Re: REST API Convert DocX to text


Theoretically, it is possible.
But it's according to your version.
To know the available transformations, you have to query via JMX (Alfresco: Name = ContentTransformer, Type = Configuration, org.alfresco.repo.content.transform.TransformerConfigMBean, getTransformationByExtension ()) or via http://localhost:8080/alfresco/Service/mimetypes?mimetype=*

Normally, TIKA or OOO allows it.

Best Regards,