06-12-2006 11:12 AM
16:58:45,922 ERROR [content.transform.AbstractContentTransformer] Content writer not closed by transformer:
writer: ContentAccessor[ contentUrl=store://2006/6/12/16/f0dee67e-fa23-11da-aec2-b965a7a2b11e.bin, mimetype=text/plain, size=0, encoding=UTF-8]
transformer: PdfBoxContentTransformer[ average=10000ms]
My rule says to transform whatever input files with a mimetype PCL to a PDF, so I don't see why the generic PdfBoxContentTransformer get invoked whereas this one only transforms text to PDF!!<alfresco-config area="mimetype-map">
<config evaluator="string-compare" condition="Mimetype Map">
<mimetypes>
<mimetype mimetype="application/vnd.hp-pcl" display="PCL">
<extension default="true">pcl</extension>
</mimetype>
</mimetypes>
</config>
</alfresco-config>
<?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.pcl2pdf" class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformer" parent="baseContentTransformer">
<property name="explicitTransformations">
<list>
<bean class="org.alfresco.repo.content.transform.ContentTransformerRegistry$TransformationKey" >
<constructor-arg><value>application/vnd.hp-pcl</value></constructor-arg>
<constructor-arg><value>application/pdf</value></constructor-arg>
</bean>
</list>
</property>
<property name="checkCommand">
<bean class="org.alfresco.util.exec.RuntimeExec">
<property name="commandMap">
<map>
<entry key=".*">
<value>pcl2pdf32.exe</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="errorCodes">
<value>2</value>
</property>
<property name="commandMap">
<map>
<entry key="Linux">
<value>pcl2pdf32.exe '${target}''${source}'</value>
</entry>
<entry key="Windows.*">
<value>pcl2pdf32.exe "${target}" "${source}"</value>
</entry>
</map>
</property>
</bean>
</property>
</bean>
</beans>
06-12-2006 01:27 PM
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.