AnsweredAssumed Answered

Convert pdf to html

Question asked by niamh on Jul 23, 2007
Latest reply on Jul 1, 2010 by fedoratori
Hello,

I am trying to add the functionality so that documents can be converted from pdf to html on Alfresco.
I have followed the steps at the following link;
http://wiki.alfresco.com/wiki/Content_Transformations
I downloaded an exe called pdftohtml from sourceforge and am trying to add this as a content transformer. I added the following lines to the file content-services-context.xml;

<bean id="transformer.pdftohtml"
        class="org.alfresco.repo.content.transform.pdftohtmlContentTransformer"
        parent="baseContentTransformer"
        init-method="init">
      <property name="transformer">
         <bean name="transformer.pdftohtml.Command" class="org.alfresco.util.exec.RuntimeExec">
            <property name="commandMap">
                <map>
                    <entry key="Windows.*">
                        <value>pdftohtml "${source}" "${target}"</value>
                    </entry>
                </map>
            </property>
         </bean>
      </property>
  
<property name="explicitTransformations">
   <list>
  <bean class="org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey">
<constructor-arg><value>pdf/html</value></constructor-arg>
            </bean>
         </list>
</property>
</bean>

However it is throwing errors and Alfresco is not starting up when I add this in.
I was wondering if there is a more straightforward list of steps, including a recommended conversion product that I could use to achieve this.

Outcomes