AnsweredAssumed Answered

Preview file Office

Question asked by vitalev on Jan 14, 2014
Latest reply on May 15, 2014 by elvis
Buonasera,
ho installto Alfresco 4.2.e su linux Centos 6.5 mediante l'installer, il sistema funziona ma non visualizza i preview dei file office (docs, doc, odt, txt xls etc), dai log ho capito che è un problema di jodconverter di segito i log.

ERROR [content.transform.TransformerConfigDynamicTransformers] [http-apr-8080-exec-6] Cannot create dynamic transformer transformer.complex.JodConverter.Image as sub transformers could not be found or created ("JodConverter.2Pdf|pdf|complex.PDF.Image").
2014-01-14 22:21:57,528  ERROR [content.transform.TransformerConfigDynamicTransformers] [http-apr-8080-exec-6] Cannot create dynamic transformer transformer.complex.JodConverter.Pdf2swf as sub transformers could not be found or created ("JodConverter.2Pdf|pdf|Pdf2swf").
2014-01-14 22:21:57,528  ERROR [content.transform.TransformerConfigDynamicTransformers] [http-apr-8080-exec-6] Cannot create dynamic transformer transformer.JodConverter.Html2Pdf as sub transformers could not be found or created ("JodConverter|odt|JodConverter").
2014-01-14 22:21:57,528  ERROR [content.transform.TransformerConfigDynamicTransformers] [http-apr-8080-exec-6] Cannot create dynamic transformer transformer.JodConverter.2Pdf as sub transformers could not be found or created ("JodConverter|JodConverter.Html2Pdf").
2014-01-14 22:21:57,528  ERROR [content.transform.TransformerConfigDynamicTransformers] [http-apr-8080-exec-6] Cannot create dynamic transformer transformer.complex.JodConverter.PdfBox as sub transformers could not be found or created ("JodConverter.2Pdf|pdf|PdfBox")

il mio file /opt/alfresco/tomcat/shared/classes/alfresco-global.properties

###############################
## Common Alfresco Properties #
###############################

dir.root=/opt/alfresco/alf_data

alfresco.context=alfresco
alfresco.host=127.0.0.1
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=127.0.0.1
share.port=8080
share.protocol=http

### database connection properties ###
db.username=alfresco
db.password=alfresco
db.name=alfresco
db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost/alfresco?useUnicode=yes&characterEncoding=UTF-8


### FTP Server Configuration ###
ftp.enabled=true
ftp.port=21

## RMI service ports ###
alfresco.rmi.services.port=50500
avm.rmi.service.port=0
avmsync.rmi.service.port=0
attribute.rmi.service.port=0
authentication.rmi.service.port=0
repo.rmi.service.port=0
action.rmi.service.port=0
deployment.rmi.service.port=0

### External executable locations ###
jodconverter.officeHome=/usr/lib64/libreoffice
jodconverter.portNumbers=8101,8102,8103
jodconverter.enabled=true
ooo.exe=/usr/lib64/libreoffice/program/soffice.bin
ooo.enabled=true
img.root=/opt/alfresco/common
img.dyn=${img.root}/lib
img.exe=${img.root}/bin/convert
swf.exe=/usr/bin/pdf2swf
swf.languagedir=/opt/alfresco/common/japanese


### Initial admin password ###
alfresco_user_store.adminpassword=480abd7e522473ff3f0f9c89e5f3f504

### E-mail site invitation setting ###
notification.email.siteinvite=false

### License location ###
dir.license.external=/opt/alfresco

### Solr indexing ###
index.subsystem.name=solr
dir.keystore=${dir.root}/keystore
solr.port.ssl=8443

### BPM Engine ###
system.workflow.engine.jbpm.enabled=false

ho letto sul forum di disabilitare jodconverter ma l'ho fatto su questo file ma pare che non funzioni
inoltre ho configurato manualmente il file /opt/alfresco/tomcat/webapps/alfresco/WEBINF/classes/alfresco/subsystems/thirdparty/default/imagemagick-transform.properties
come suggerito sul forum

# External executable locations
img.root=/usr
img.dyn=${img.root}/lib64
img.exe=${img.root}/bin/convert
img.coders=${img.dyn)/ImageMagick-6.5.4/modules-Q16/coders
img.config=${img.root}/ImageMagick-6.5.4/config
img.gslib=${img.root}/lib64

ma il risultato non cambia…..

Outcomes