cancel
Showing results for 
Search instead for 
Did you mean: 

Image (jpg, png or gif) to PDF

smoothly
Champ in-the-making
Champ in-the-making
Hi,

I'm in Alfresco community 3.4d and I created a rule to convert image to pdf, but the process won't work.
I always the same error : 

14:26:25,062  ERROR [repo.action.AsynchronousActionExecutionQueueImpl] Failed to execute asynchronous action: Action[ id=40d6d3d4-84b6-4ab4-8b69-822a6e80118b, node=workspace://SpacesStore/40d6d3d4-84b6-4ab4-8b69-822a6e80118b ]
org.alfresco.service.cmr.rule.RuleServiceException: 01210144 Transformer for 'image/png' source mime type and 'application/pdf' target mime type was not found. Operation can't be performed
   at org.alfresco.repo.action.executer.TransformActionExecuter.executeImpl(TransformActionExecuter.java:177)

Can you help me please ?

Thanks a lot !

Samuel DELSOL
2 REPLIES 2

mitpatoliya
Star Collaborator
Star Collaborator
OOTB there is no rule to convert the image to pdf.
so, you should have created some custom code in order to do that.
Also, you need to add the entries in the rule-services-context.xml
Aso, need to define the Action handler for your transformer.

In short it would be a total customization.

christopheradam
Champ in-the-making
Champ in-the-making
Converting image to pdf should be an easy work, while it may be a little complex to converting pdf to image. As far as I am concerned, if we want to convert document to image, such as <a href="http://www.rasteredge.com/how-to/vb-net-imaging/convert-pdf-to-image/">pdf to image</a> in png, bmp, gif ot jpeg, we need to render and transform document into image at first, then save the rendered document page into image. Am I right?