Content Transformers in Alfresco

For any content management system it is very obvious that they have to deal with contents of multiple types and it should also have capability to manipulate those contents. Alfresco also has embedded openoffice, pdf box and apache poi libraries which helps alfresco to deal with this content manipulations.

It provides alfresco capability to transform and manage different type of contents. For instance when you fire a rule from front end to convert word document to pdf file it internally invoke any one of the Content transformer to achieve that and that transformer uses openoffice services or apache poi apis to achieve final results. Alfresco has this multiple inbuilt content transformer available out of box.

If you want to see the list of all available content transformers you can see it over here. http://localhost:8080/alfresco/service/mimetypes

It shows list of all the currently registered mimetypes, and provide a details link for each one. Selecting the details link will then show which transformations are currently supported both to and from that mimetype, and by what transformer. If a transformer becomes unavailable (eg the Open Office connection dies), then refreshing the list will show the updated transformations.

Also you can see for context file within your alfresco installation under


Here is the sample entry of one of the transformer

 <!-- Content Transformation Regisitry -->
   <bean id="contentTransformerRegistry" class="org.alfresco.repo.content.transform.ContentTransformerRegistry" />

   <!-- Abstract bean definition defining base definition for all transformers -->
   <bean id="baseContentTransformer"
      <property name="mimetypeService">
         <ref bean="mimetypeService" />
      <property name="registry">
         <ref bean="contentTransformerRegistry" />
   <!-- Content Transformations -->
   <bean id="transformer.StringExtracter"
         parent="baseContentTransformer" />

As you can see those transformers are wired as spring beans with in alfresco. If you ever has requirement you can also declare your own content transformer.

There is one more powerful use of these transformers which is abstract from end user. Alfresco uses it for indexing, wondering how? That is because indexer can only index contents which are in text format. So, whenever content is uploaded in alfresco internal transformer for respective mime type is invoked and it converts content in to text form which is then passed to indexing engine.

What are ComplexContentTransformer?

If there are no direct transformation from one type of another available but it is possible through intermediate transformation then it is called as complex transformation. For instance transformation from mimetype A->C is requested but only A-B and B-C is available, the transformation registry will not automatically assume that chaining the transformation together will be a useful thing to do. Linked transformations can be manually declared using the ComplexContentTransformer.

Looking for quality Alfresco Web Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , , , , | Posted under Alfresco | RSS 2.0

Author Spotlight


I love opensource technologies working with those technologies from the time I have stepped in to the Software Industry. Alfresco CMS is my area of expertise. I have worked on various complex implementations which involved integration of Alfresco with other technologies, extensively worked with JBPM workflows and Webscripts.

Leave a Reply

Your email address will not be published. Required fields are marked *