06-01-2009 05:58 AM
06-01-2009 06:50 AM
07-15-2009 05:37 AM
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!– disable standard pdfbox text transformer –>
<bean id="transformer.PdfBox" class="java.lang.String"/>
<!– has the above injected, is newly created below –>
<bean id="transformer.complex.OpenOffice.PdfBox" class="java.lang.String"/>
<!– pdftotext command line binary –>
<bean id="transformer.PdfToTextTool"
class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformer"
parent="baseContentTransformer">
<property name="transformCommand">
<bean name="transformer.pdftotext.Command"
class="org.alfresco.util.exec.RuntimeExec">
<property name="commandMap">
<map>
<entry key="Linux.*">
<!–<value>${catalina.base}/webapps/alfresco/WEB-INF/bin/pdftotext-linux -enc UTF-8 ${options} ${source} ${target}</value>–>
<value>/usr/bin/pdftotext -enc UTF-8 ${options} ${source} ${target}</value>
</entry>
<entry key="Windows.*">
<value>${catalina.base}/webapps/alfresco/WEB-INF/bin/pdftotext-win32.exe -enc UTF-8 ${options} ${source} ${target}</value>
</entry>
</map>
</property>
<property name="defaultProperties">
<props>
<prop key="options"></prop>
</props>
</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>text/plain</value>
</constructor-arg>
</bean>–>
<bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
<property name="sourceMimetype"><value>application/pdf</value></property>
<property name="targetMimetype"><value>text/plain</value></property>
</bean>
</list>
</property>
</bean>
<!– replaces bean transformer.complex.OpenOffice.PdfBox –>
<bean id="transformer.complex.OpenOffice.PdfToTextTool"
class="org.alfresco.repo.content.transform.ComplexContentTransformer"
parent="baseContentTransformer" >
<property name="transformers">
<list>
<ref bean="transformer.OpenOffice" />
<ref bean="transformer.PdfToTextTool" />
</list>
</property>
<property name="intermediateMimetypes">
<list>
<value>application/pdf</value>
</list>
</property>
</bean>
</beans>
07-17-2009 09:26 AM
08-05-2009 09: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.