AnsweredAssumed Answered

Content transformers choice, fallback or default settings

Question asked by deajan on Jan 14, 2013
Latest reply on Mar 22, 2016 by magarcia_sm
Hello,

I've setup a test VM of Alfresco 4.2c community edition.
I adapted a tiff2pdf content transformer xml file for ABBYY Finereader OCR, which works, but gets somehow overrided by ImageMagick's own tiff2pdf transformer.

When i launch Alfresco server, the transformer i made works, checked via the page:
http://myalfrescoserver.local:8080/alfresco/service/mimetypes?mimetype=image/tiff#image/tiff
which outputs this:

application/rtf = Proxy via: org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker(ABBYY FineReader Engine 9.0 Sample © ABBYY. 2010.)

My problem is that once i've used that transformer (which seams to work great at first usage and produces a good PDF document), alfresco automagically switches to ImageMagick instead of mine.
I  can check this because the output of
http://myalfrescoserver.local:8080/alfresco/service/mimetypes?mimetype=image/tiff#image/tiff

gives the following once a transformation has been done:

application/pdf = Proxy via: $Proxy9(Version: ImageMagick 6.5.6-10 2012-04-13 Q16 http://www.imagemagick.org Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC)

The only way i can revert to my transformer is to relaunch alfresco service. But it always gets replaced on first usage. Also, sometimes relaunching the alfresco service doesn't do the trick, i have to relaunch it again.
I've tried to figure out where the preferences are set, without success.
I've also tried to disable the imagemagick bean in content-services-context.xml, without success.
I've checked that the command my transformer executes does return "0" value so it stays usable.

I'm not really a java addict so i'm quite lost.
Any ideas would be greatly appreciated.
Thanks.

Outcomes