cancel
Showing results for 
Search instead for 
Did you mean: 

Document Previews Not Working

anuvatec
Champ in-the-making
Champ in-the-making
I get the "This document can't be previewed" error message when viewing a document on Alfresco Share (even with .TXT files). I checked the log file and it says:


13:49:03,797 ERROR [org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerWorker] Failed to start a runtime executable content transformer:
Execution result:
   os:         Linux
   command:    [/opt/Alfresco/bin/pdf2swf, -V]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "/opt/Alfresco/bin/pdf2swf": java.io.IOException: error=2, No such file or directory
13:49:04,506 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformerWorker] ImageMagickContentTransformerWorker not available: 10250000 Failed to perform ImageMagick transformation:
Execution result:
   os:         Linux
   command:    [/usr/local/bin/convert, /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_source_5696908661278525485.gif[0], /opt/Alfresco/tomcat/temp/Alfresco/ImageMagickContentTransformerWorker_init_target_7265319320976865362.png]
   succeeded:  false
   exit code:  1
   out:       
   err:        Cannot run program "/usr/local/bin/convert": java.io.IOException: error=2, No such file or directory
13:49:06,060 WARN  [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.

The weird thing is I configure ImageMagick, convertd, pdf2swf, etc. in /opt/Alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/repository.properties but the paths to those programs in the errors log are different.

How do I fix this issue? Am I configuring the wrong config file?
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
Yes you are configuring the wrong file.   You should never touch any of the the files within the WEB-INF folder.

mikeh
Star Contributor
Star Contributor
First of all, never modify the .properties files within the WEB-INF folder directly - they'll get overwritten next time you upgrade or Tomcat re-deploys the war file.

As of v3.2, all customisation is via the alfresco-global.properties file. Please see this wiki article for more information.

Thanks,
Mike

rakeshs
Champ in-the-making
Champ in-the-making
I am running alfresco on centos 5. I have check the path for ImageMagick, convertd, pdf2swf in global properties and they are all correct. Yet the document preview is not working. All the pre-requisite i.e latest flash player, are fulfilled by the client system for running alfresco. Would really appreciate if anyone can reply soon. Smiley Happy

Regards,
Rakesh