08-07-2012 04:10 PM
08-09-2012 09:56 AM
properties.put(VAR_SOURCE, sourceFile.getAbsolutePath() + "[0]");
properties.put(VAR_TARGET, targetFile.getAbsolutePath());
// add the source and target properties
properties.put(VAR_SOURCE, sourceFile.getAbsolutePath());
properties.put(VAR_TARGET, targetFile.getAbsolutePath());
<beans>
<bean id="transformer.worker.pdf2tiff"
class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker">
<property name="mimetypeService">
<ref bean="mimetypeService" />
</property>
<property name="checkCommand">
<bean class="org.alfresco.util.exec.RuntimeExec">
<property name="commandMap">
<map>
<entry key=".*">
<value>${img.exe} -version</value>
</entry>
</map>
</property>
<property name="errorCodes">
<value>2</value>
</property>
</bean>
</property>
<property name="transformCommand">
<bean class="org.alfresco.util.exec.RuntimeExec">
<property name="commandMap">
<map>
<entry key=".*">
<value>${img.exe} ${source} ${target}</value>
</entry>
</map>
</property>
<property name="errorCodes">
<value>2</value>
</property>
</bean>
</property>
<property name="explicitTransformations">
<list>
<bean
class="org.alfresco.repo.content.transform.ExplictTransformationDetails">
<property name="sourceMimetype">
<value>application/pdf</value>
</property>
<property name="targetMimetype">
<value>image/tiff</value>
</property>
</bean>
</list>
</property>
</bean>
<bean id="transformer.pdf2tiff"
class="org.alfresco.repo.content.transform.ProxyContentTransformer"
parent="baseContentTransformer">
<property name="worker">
<ref bean="transformer.worker.pdf2tiff" />
</property>
</bean>
</beans>
# External executable locations
img.exe=${img.root}/bin/convert
08-27-2012 04:29 PM
05-19-2014 10:42 PM
06-07-2014 06:12 AM
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.