08-07-2014 06:56 AM
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– TRASFORMA DWG IN PDF –>
<bean id="transformer.worker.dwg2pdf" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker">
<property name="mimetypeService">
<ref bean="mimetypeService" />
</property>
<property name="checkCommand">
<bean name="transformer.dwg2pdf.checkCommand" class="org.alfresco.util.exec.RuntimeExec">
<property name="commandsAndArguments">
<map>
<entry key=".*">
<list>
<value>cmd</value>
<value>/C</value>
<value>${dwg2pdf.root}/AcmeCADConverter.exe /r /ad /f 104 E:\ECM\bin\acme\dtp.dwg dtp.pdf</value>
</list>
</entry>
</map>
</property>
</bean>
</property>
<property name="transformCommand">
<bean name="transformer.dwg2pdf.Command" class="org.alfresco.util.exec.RuntimeExec">
<property name="commandsAndArguments">
<map>
<entry key="Linux.*">
<list>
<value>sh</value>
<value>-c</value>
<value>${dwg2pdf.root}/AcmeCADConverter /r /ad /f 104 ${source} ${target}</value>
</list>
</entry>
<entry key="Windows.*">
<list>
<value>cmd</value>
<value>/C</value>
<value>${dwg2pdf.root}/AcmeCADConverter.exe /r /ad /f 104 ${source} ${target}</value>
</list>
</entry>
</map>
</property>
<property name="waitForCompletion">
<value>true</value>
</property>
</bean>
</property>
<property name="explicitTransformations">
<list>
<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.proxy.dwg2pdf" class="org.alfresco.repo.management.subsystems.SubsystemProxyFactory">
<property name="sourceApplicationContextFactory">
<ref bean="thirdparty"/>
</property>
<property name="sourceBeanName">
<value>transformer.worker.dwg2pdf</value>
</property>
<property name="interfaces">
<list>
<value>org.alfresco.repo.content.transform.ContentTransformerWorker</value>
</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>
</beans>
### External executable locations ###
ooo.exe=E:\\ECM\\libreoffice\\App\\libreoffice\\program\\soffice.exe
ooo.enabled=true
ooo.port=8100
img.root=E:\\ECM\\imagemagick
img.coders=${img.root}\\modules\\coders
img.config=${img.root}\\config
img.gslib=${img.root}\\lib
img.exe=${img.root}\\convert.exe
swf.exe=E:\\ECM\\swftools\\pdf2swf.exe
swf.languagedir=E:\\ECM\\swftools\\japanese
dwg2pdf.root=E:\\ECM\\bin\\acme
img.gslib=E:\\ECM\\bin\\gs9.09\\lib
jodconverter.enabled=true
jodconverter.officeHome=E:\\ECM\\libreoffice\\App\\libreoffice
jodconverter.portNumbers=8100
# What follows are the custom transforms
# Imput dwg the output is PDF
# Define a default priority for the transformer
content.transformer.dwg2pdf.priority=50
# List the transformations that are supported
content.transformer.dwg2pdf.extensions.dwg.pdf.supported=true
content.transformer.dwg2pdf.extensions.dwg.pdf.priority=50
11:41:45,596 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-5] 6 dwg txt GRAMMIKO KIATO RIO_new2.dwg 288.4 KB – index – SolrIndexer NO transformers
11:41:45,596 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-5] 6 Finished in 0 ms Transformer NOT called
11:41:45,690 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-9] 7 dwg txt GRAMMIKO KIATO RIO_new2.dwg 288.4 KB – index – SolrIndexer NO transformers
11:41:45,690 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-9] 7 Finished in 0 ms Transformer NOT called
11:41:53,672 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-17-thread-1] 8 dwg pdf GRAMMIKO KIATO RIO_new2.dwg 288.4 KB – pdf – ContentService.transform(…)
11:41:53,672 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-17-thread-1] 8 **a) [50] dwg2pdf<<Runtime>> 0 ms
11:41:53,672 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-17-thread-1] 8.1 dwg pdf GRAMMIKO KIATO RIO_new2.dwg 288.4 KB dwg2pdf<<Runtime>>
11:42:06,938 DEBUG [org.alfresco.util.exec.RuntimeExec] [pool-17-thread-1] Execution result:
os: Windows Server 2012
command: cmd /C "E:\\ECM\\bin\\acme\\AcmeCADConverter.exe /r /ad /f 104 "E:\ECM\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_source_1366542181829387142.dwg" "E:\ECM\tomcat\temp\Alfresco\RuntimeExecutableContentTransformerWorker_target_1118018117675185787.pdf""
succeeded: true
exit code: 0
out:
err:
11:42:06,953 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [pool-17-thread-1] 8 Finished in 13.281 ms
11:42:15,485 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-8] 9 dwg txt GRAMMIKO KIATO RIO_new2.dwg 288.4 KB – index – SolrIndexer NO transformers
11:42:15,485 DEBUG [org.alfresco.repo.content.transform.TransformerDebug] [http-bio-8443-exec-8] 9 Finished in 0 ms Transformer NOT called
08-07-2014 04:42 PM
09-22-2014 08:36 AM
01-28-2015 05:42 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.