03-13-2007 01:22 PM
<bean id="transformer.Pdf2Png" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformer" parent="baseContentTransformer">
<property name="checkCommand">
<bean class="org.alfresco.util.exec.RuntimeExec">
<property name="commandMap">
<map>
<entry key=".*">
<value>/opt/Vividata/bin/ocrxtr -version</value>
</entry>
</map>
</property>
<property name="errorCodes">
<value>1,2</value>
</property>
</bean>
</property>
<property name="transformCommand">
<bean class="org.alfresco.util.exec.RuntimeExec">
<property name="commandMap">
<map>
<entry key="Linux">
<value>/opt/Vividata/bin/ocrxtr -info_log /tmp/ocrxtr.log -error_log /tmp/ocrxtr.log -out_text_format none -out_graphics_format png -out_regions_as_graphics Y -out_graphics_name "${target}" "${source}"</value>
</entry>
</map>
</property>
<property name="errorCodes">
<value>1,2</value>
</property>
</bean>
</property>
<property name="explicitTransformations">
<list>
<bean class="org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey" >
<constructor-arg><value>application/pdf</value></constructor-arg>
<constructor-arg><value>image/png</value></constructor-arg>
</bean>
</list>
</property>
</bean>
<config evaluator="string-compare" condition="Action Wizards">
<!– The list of transformers to show in the transform actions –>
<transformers>
<transformer name="image/png"/>
</transformers>
</config>
03-16-2007 07:07 AM
06-13-2007 08:19 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.