11-30-2017 09:50 AM
Hi all,
i need to generate a rendition node in "application/pdf" mimetype from one source node that is an whatever image. I check in my "localhost/alfresco/service/mimetypes?mimetype=*" url and i notice that the mimetype "application/pdf" is transformable only from "image/tiff" mimetype but i know that the ImageMagick library (used for the transformation of images) can convert any image format (.png, .jpeg, etc) into PDF.
So, what can i do? I must implement a "Custom Content Transformers" or add a "Custom MimeType" to obtain this? I work on Alfresco 5.1.0 Community Edition.
Thank you in advance
12-01-2017 04:20 AM
Hi Lucy Zarbano,
Get the list of registered mimetypes from url http://hostort/alfresco/s/mimetypes in your alfresco.
And check your document can be Transformable To or Transformable From .
Transformable to - current possible transformation of document can be transform to mimetypes.
Transformable from - current possible transformation of document can be transform from mimetypes.
If your required mimetype is available in the above then you can transform by code or from UI rules.
Thanks,
Kalpesh,
12-01-2017 09:28 AM
Hi, i just did it, in the list of registered mimetypes from "http://hostort/alfresco/s/mimetypes" i notice that application/pdf mimetype is trasformable only FROM image/tiff mimetype but i need to transform a document with image/png, image/jepg, etc .. mimetype INTO application/pdf mimetype. Is there a solution?
12-05-2017 09:32 AM
You have to create a new custom transformer.
The information you need (including sample code) is available at Content Transformers (and Renditions) | Alfresco Documentation
Explore our Alfresco products with the links below. Use labels to filter content by product module.