cancel
Showing results for 
Search instead for 
Did you mean: 

No thumbnail for DITA file type and no preview

wksim
Champ in-the-making
Champ in-the-making
Hello, I have Alfresco v4.1.1 installed. And when import DITA files (.dita file extension) via Share, no thumbnail gets created and preview doesn't work for the file. But if I import .xml files, then the thumbnails get created and preview works for the files. I want to treat .dita files just like .xml files. Anyone has how to do this? I would think it is matter of updating configuration files. I tried to update content-services-context.xml for dita mime type (application/dita+xml) as follow, but no luck.

   <bean id="transformer.PdfBox.TextToPdf"
         class="org.alfresco.repo.content.transform.TextToPdfContentTransformer"
         parent="baseContentTransformer" >
      <property name="supportedTransformations">
         <list>
            …

       <bean class="org.alfresco.repo.content.transform.SupportedTransformation" >
                <property name="sourceMimetype"><value>application/dita+xml</value></property>
                <property name="targetMimetype"><value>application/pdf</value></property>
            </bean>
         </list>
      </property>
      <property name="maxSourceSizeKBytes"><value>${content.transformer.PdfBox.TextToPdf.maxSourceSizeKBytes}</value></property>
   </bean>

Thanks.
1 REPLY 1

wksim
Champ in-the-making
Champ in-the-making
Anyone please?