AnsweredAssumed Answered

Content Transformations

Question asked by ralph78 on May 27, 2008
Latest reply on Jun 11, 2008 by jpfi_4454
Hallo ,

ich habe ein Problem mit Content Transformations. Ich möchte ein PDF in Flash
umwandeln. Ich hab nach dieser Anleitung http://wiki.alfresco.com/wiki/Content_Transformations
die Datei my-transformers-context.xml unter /opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension angelegt :

<bean id="transformer.Pdf2Swf" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformer" parent="baseContentTransformer">
      <property name="checkCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
                <map>
                    <entry key=".*">
                        <value>pdf2swf -help</value>
                    </entry>
                </map>
            </property>
            <property name="errorCodes">
               <value>2</value>
            </property>
         </bean>
      </property>
      <property name="transformCommand">
         <bean class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
                <map>
                    <entry key="Linux">
                        <value>pdf2swf '${source}'  -o '${target}'</value>
                    </entry>
                    <entry key="Windows.*">
                        <value>pdf2swf '${source}'  -o '${target}'</value>
                    </entry>
                </map>
            </property>
            <property name="errorCodes">
               <value>2</value>
            </property>
         </bean>
      </property>
      <property name="explicitTransformations">
         <list>
            <bean class="org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey" >
                <constructor-arg><value>application/pdf</value></constructor-arg>
                <constructor-arg><value>application/x-shockwave-flash</value></constructor-arg>
            </bean>
         </list>
      </property>
   </bean>
Wenn ich Alfresco nun starte bekomme ich folgende Fehler :

ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from file [/opt/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/extension/my-transformers-context.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'bean'.
Caused by:
org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'bean'.

Der Rest sind sicherlich Folgefehler. Kann mir einer dabei helfen mittels pdf2swf PDFs in Flash
umzuwandeln ?

Vielen Dank

Ralph

Outcomes