<?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.worker.dwg2pdf" 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="commandsAndArguments">
<map>
<entry key=".*">
<list>
<value>C:/test.bat</value>
</list>
</entry>
</map>
</property>
</bean>
</property>
–>
<property name="transformCommand">
<bean class="org.alfresco.util.exec.RuntimeExec">
<property name="commandsAndArguments">
<map>
<entry key="Windows.*">
<list>
<value>${dp.exe} ${source} ${target} -cPDF</value>
</list>
</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/x-dwg</value></property>
<property name="targetMimetype"><value>application/pdf</value></property>
</bean>
<bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails">
<property name="sourceMimetype"><value>image/vnd.dwg</value></property>
<property name="targetMimetype"><value>application/pdf</value></property>
</bean>
</list>
</property>
</bean>
<bean id="transformer.dwg2pdf" class="org.alfresco.repo.content.transform.ProxyContentTransformer" parent="baseContentTransformer">
<property name="worker">
<ref bean="transformer.worker.dwg2pdf" />
</property>
</bean>
<!–
<bean id="transformer.complex.dwg2swf" class="org.alfresco.repo.content.transform.ComplexContentTransformer" parent="baseContentTransformer">
<property name="transformers">
<list>
<ref bean="transformer.dwg2pdf" />
<ref bean="transformer.Pdf2swf" />
</list>
</property>
<property name="intermediateMimetypes">
<list>
<value>application/pdf</value>
</list>
</property>
</bean>
–>
</beans>
Caused by: org.alfresco.service.cmr.repository.ContentIOException: 06300040 Transformation failed - status indicates an error:
Execution result:
os: Windows 2003
command: "C:/Programmi/TotalCADConverter/CADConverter.exe C:\Alfresco\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_source_4861565057727707186.dwg C:\Alfresco\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_target_6861132225763674962.pdf -cPDF"
succeeded: false
exit code: 2
out:
err: Cannot run program "C:/Programmi/TotalCADConverter/CADConverter.exe C:\Alfresco\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_source_4861565057727707186.dwg C:\Alfresco\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_t
Archive content from product discussions in Italian.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.