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> <!– 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>