cancel
Showing results for 
Search instead for 
Did you mean: 

Document transformations without mimetypes

martin_brown
Champ in-the-making
Champ in-the-making
Hi,

Is it possible to add document transformations that are not from one mimetype to another. For example, from PDF to PDF with security applied?

Thanks

Martin
1 REPLY 1

derek
Star Contributor
Star Contributor
Hi,

Yes, you can.  But you'll have to write the transformer.

The automatic transformation process can only transform between different mimetypes.  This is implemented by the ContentTransformationRegistry.  However, by injecting any instance of ContentTransformer directly into an action, you can bypass the registry and perform any kind of transformation as an explicit action.

Some articles relating to actions can be found in the  WIKI.  To see how this is applied to a like-to-like transformer, check out the code and configurations for org.alfresco.repo.action.executer.ImageTransformActionExecuter.  This allows transformations from one image to another without needing to change mimetype.

Regards