01-18-2007 08:22 AM
09-13-2008 03:58 PM
02-24-2009 08:33 AM
03-03-2009 06:16 AM
03-03-2009 07:26 AM
ocr.exe file.tif
For your library : MSVCP71.dll, I hope that was because you have tried an old version of intelliant… if not, try to add MSVCP71.dll in C:\WINDOWS\system32 (it is just an idea…)//Pass to ocr.exe
Process process = Runtime.getRuntime().exec("ocr " + file);
process.waitFor();
….
03-04-2009 03:09 AM
03-18-2009 02:58 AM
03-18-2009 07:02 AM
<?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.RuntimeExecutableContentTransformer" 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>
<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="Windows.*">
<value>
ocr.exe –replace –language es –pdf –output-file "${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.ExplictTransformationDetails" >
<property name="sourceMimetype"><value>image/tiff</value></property>
<property name="targetMimetype"><value>application/pdf</value></property>
</bean>
<!–
<bean class="org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey">
<constructor-arg>
<value>image/tiff</value>
</constructor-arg>
<constructor-arg>
<value>application/pdf</value>
</constructor-arg>
</bean>
–>
</list>
</property>
</bean>
<bean id="transformer.Ocr.Tiff2Rtf" 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>ocr.exe –about</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="Windows.*">
<value>
ocr.exe –replace –language es –rtf –output-file "${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.ExplictTransformationDetails" >
<property name="sourceMimetype"><value>image/tiff</value></property>
<property name="targetMimetype"><value>application/rtf</value></property>
</bean>
<!–
<bean class="org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey">
<constructor-arg>
<value>image/tiff</value>
</constructor-arg>
<constructor-arg>
<value>application/rtf</value>
</constructor-arg>
</bean>
–>
</list>
</property>
</bean>
<bean id="transformer.Ocr.Tiff2Txt" 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>ocr.exe –about</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="Windows.*">
<value>
ocr.exe –replace –language es –ascii –output-file "${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.ExplictTransformationDetails" >
<property name="sourceMimetype"><value>image/tiff</value></property>
<property name="targetMimetype"><value>text/plain</value></property>
</bean>
<!–
<bean class="org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey">
<constructor-arg>
<value>image/tiff</value>
</constructor-arg>
<constructor-arg>
<value>text/plain</value>
</constructor-arg>
</bean>
–>
</list>
</property>
</bean>
<bean id="transformer.Pdf2Tiff" 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>ocr.exe –about</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="Windows.*">
<value>
ocr.exe –replace –tiff –output-file "${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.ExplictTransformationDetails" >
<property name="sourceMimetype"><value>application/pdf</value></property>
<property name="targetMimetype"><value>image/tiff</value></property>
</bean>
<!–
<bean class="org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey">
<constructor-arg>
<value>application/pdf</value>
</constructor-arg>
<constructor-arg>
<value>image/tiff</value>
</constructor-arg>
</bean>
–>
</list>
</property>
</bean>
</beans>
03-18-2009 09:53 AM
04-13-2009 02:52 AM
05-31-2009 12:04 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.