02-11-2010 03:14 PM
02-12-2010 02:50 AM
02-12-2010 11:14 AM
02-16-2010 06:10 AM
1.) Should the complex transform above be modified for this instance and placed in a separate file or should the original transformer above be made into a complex transform?As far as I know (I'm still somewhat new to this too, but the dwg2pdf example on the wiki is mine) the complex transformer is just to chain other transformers. So if you're able to define a transformation from your source to pdf, then you can chain that one and Alfresco's internal pdf2swf (or whatever is needed) transformer in a complex content transformer.
2.) If the complex transform should be a second, separate file, can you give me a clue what to name it, where to put it, and hopefully show me what it should look like to match the original transform above? In other words, what would this complex transform look like?I assume the second seperate file should be named in the same fashion as the first transformer, for instance dwg2swf-transform-context.xml. I'm not definately sure about this one yet, but I'm trying to solve the same issue as you and I will surely report when I've solved it!
By the way, you said to check my existing installation for sample configurations but I see no examples of complex transforms such as you suggest?Depending on the type of installation these might have been in a seperate package, look for the samples package on the downloads page.
So far, I have been very impressed with this product but the wiki documentation seems to point in so many directions that it is very difficult to follow.I totally agree. I started by writing an installation howto on my own blog, then added my first transformer to the wiki as complete file so it's actually usable. I don't know if the wiki is intentionally dumbed down, but it really lacks a lot of information. I'm trying to add more there as I learn, I hope you'll do the same.
02-16-2010 07:48 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.complex.dwg2png" class="org.alfresco.repo.content.transform.ComplexContentTransformer" parent="baseContentTransformer">
<property name="transformers">
<list>
<ref bean="transformer.dwg2pdf" />
<bean id="transformer.dwg2png.PdfBoxPdfToImageContentTransformer" class="org.alfresco.repo.content.transform.PdfToImageContentTransformer" />
</list>
</property>
<property name="intermediateMimetypes">
<list>
<value>application/pdf</value>
</list>
</property>
</bean>
</beans>
02-17-2010 02:58 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.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>
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.