mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-22 15:12:38 +00:00
As suggested, I've added the poly2bitmap option to the pdf2swf executable by default. This has a side-effect of negatively impacting the quality of embedded images. But subpixels=72 seems to fix that. I've put the new swf.encoder.params in a property so they can be altered by third parties without recompiling. The effect of this change is that most transformations seem unaffected, some formerly failing transformations now succeed and some formerly failing transformations now fail but take longer to fail. So there will be a performance impact for some transformations as the price of a greater success rate generally. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@22303 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
58 lines
2.0 KiB
XML
58 lines
2.0 KiB
XML
<?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.Pdf2swf" 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="commandMap">
|
|
<map>
|
|
<entry key=".*">
|
|
<value>${swf.exe} -V</value>
|
|
</entry>
|
|
</map>
|
|
</property>
|
|
<property name="errorCodes">
|
|
<value>1</value>
|
|
</property>
|
|
</bean>
|
|
</property>
|
|
<property name="transformCommand">
|
|
<bean class="org.alfresco.util.exec.RuntimeExec">
|
|
<property name="commandMap">
|
|
<map>
|
|
<entry key=".*">
|
|
<value>${swf.exe} -T ${flashVersion} ${swf.encoder.params} ${source} -o ${target}</value>
|
|
</entry>
|
|
</map>
|
|
</property>
|
|
<property name="defaultProperties">
|
|
<map>
|
|
<entry key="flashVersion" value="9" />
|
|
</map>
|
|
</property>
|
|
<property name="errorCodes">
|
|
<value>1</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>application/x-shockwave-flash</value>
|
|
</property>
|
|
</bean>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
</beans>
|