Hi,
I also want to make a custom transformation (XML to PDF), but I have some problems.
I wrote java code what make the transformation (extended from AbstractContentTransformer2), and I wanted to add it to transformation actions (see below). It doesn't give any error messages but the output pdf is the original XML just the file name is different. I think alfresco didn't use my class to transformation.
<bean id="transformer.XMLPDF" class="com.bull.transformation.fop.XmlPdf" parent="baseContentTransformer">
<property name="explicitTransformations">
<list>
<!–bean class="org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey" –>
<bean class="org.alfresco.repo.content.transform.ExplictTransformationDetails" >
<constructor-arg><value>text/xml</value></constructor-arg>
<constructor-arg><value>application/pdf</value></constructor-arg>
</bean>
…
I'm interested in any other solutions to how to make a pdf from xml (with xslt) too.
Thanks for your help.