As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <bean id="transformer.Ocr.Tiff2Pdf" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker" parent="baseContentTransformer"> <property name="checkCommand"> <bean class="org.alfresco.util.exec.RuntimeExec"> <property name="commandMap"> <map> <entry key=".*"> <value>ocr.exe –about</value> </entry> </map> </property> </bean> </property> <property name="transformCommand"> <bean class="org.alfresco.util.exec.RuntimeExec"> <property name="commandMap"> <map> <entry key="Windows.*"> <value>ocr.exe –replace –language fr –pdf –output-file "${target}" "${source}"</value> </entry> </map> </property> </bean> </property> <property name="explicitTransformations"> <list> <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" > <property name="sourceMimetype"><value>image/tiff</value></property> <property name="targetMimetype"><value>application/pdf</value></property> </bean> </list> </property> </bean> </beans>
ERROR [web.context.ContextLoader] Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transformer.Ocr.Tiff2Pdf' defined in file [C:\Tomcat6\shared\classes\alfresco\extension\ocr-transformers-context.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'registry' of bean class [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker]: Bean property 'registry' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'> <beans> <bean id="transformer.Ocr.Tiff2Pdf" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker"> <property name="checkCommand"> <bean class="org.alfresco.util.exec.RuntimeExec"> <property name="commandMap"> <map> <entry key=".*"> <value>ocr.exe –about</value> </entry> </map> </property> </bean> </property> <property name="transformCommand"> <bean class="org.alfresco.util.exec.RuntimeExec"> <property name="commandMap"> <map> <entry key="Windows.*"> <value>ocr.exe –replace –language fr –pdf –output-file "${target}" "${source}"</value> </entry> </map> </property> </bean> </property> <property name="explicitTransformations"> <list> <bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" > <property name="sourceMimetype"><value>image/tiff</value></property> <property name="targetMimetype"><value>application/pdf</value></property> </bean> </list> </property> </bean> <bean id="transformer.ocrTopdf" class="org.alfresco.repo.content.transform.ProxyContentTransformer" parent="baseContentTransformer"> <property name="worker"> <ref bean="transformer.Ocr.Tiff2Pdf"/> </property> </bean> </beans>