03-09-2011 06:18 AM
<config evaluator="string-compare" condition="Content Wizards">
…
<create-mime-types>
<mime-type name="application/msword" />
<mime-type name="application/vnd.ms-excel" />
</create-mime-types>
…
</config>
This document may contain formatting or content that cannot be saved in the Text Encoded file format. Do you want to save document in this format anyway?
12:14:49,978 User:admin ERROR [ui.common.Utils] Failed to run Actions due to error: 02090100 Content conversion failed:
reader: ContentAccessor[ contentUrl=store://2011/3/9/12/14/1fc73c7b-111a-426b-ab97-363e8bd19d3d.bin, mimetype=application/msword, size=6, encoding=UTF-8, locale=en_US]
writer: ContentAccessor[ contentUrl=store://2011/3/9/12/14/bb41c4ed-897f-473e-b163-85bf57ae063a.bin, mimetype=application/pdf, size=0, encoding=UTF-8, locale=en_US]
options: org.alfresco.service.cmr.repository.TransformationOptions@318e74
org.alfresco.service.cmr.repository.ContentIOException: 02090100 Content conversion failed:
reader: ContentAccessor[ contentUrl=store://2011/3/9/12/14/1fc73c7b-111a-426b-ab97-363e8bd19d3d.bin, mimetype=application/msword, size=6, encoding=UTF-8, locale=en_US]
writer: ContentAccessor[ contentUrl=store://2011/3/9/12/14/bb41c4ed-897f-473e-b163-85bf57ae063a.bin, mimetype=application/pdf, size=0, encoding=UTF-8, locale=en_US]
options: org.alfresco.service.cmr.repository.TransformationOptions@318e74
at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:170)
…
03-09-2011 06:59 AM
03-10-2011 02:49 AM
<?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="mimetypeConfigService" class="org.springframework.extensions.config.xml.XMLConfigService" init-method="init">
<constructor-arg>
<bean class="org.springframework.extensions.config.source.UrlConfigSource">
<constructor-arg>
<list>
<value>classpath:alfresco/mimetype/mimetype-map.xml</value>
<value>classpath:alfresco/mimetype/mimetype-map-openoffice.xml</value>
<value>alfresco/extension/mimetype/mimetypes-custom-extension.xml</value>
</list>
</constructor-arg>
</bean>
</constructor-arg>
</bean>
</beans>
<alfresco-config area="mimetype-map">
<config evaluator="string-compare" condition="Mimetype Map">
<mimetypes>
<mimetype mimetype="application/mswordcustom" display="Microsoft Word Custom">
<extension default="false">doccustom</extension>
</mimetype>
</mimetypes>
</config>
</alfresco-config>
<config evaluator="string-compare" condition="Content Wizards">
…
<create-mime-types>
<mime-type name="application/mswordcustom" />
</create-mime-types>
…
</config>
function main()
{
var doc = companyhome.childByNamePath("PlantillasOffice/plantilla.doc");
document.properties["cm:content"]=doc.properties["cm:content"];
document.save();
}
main();
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.