• OpenKM Preview Problem

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #16872  by manasj
 
Dear Sir,

I am getting the following error while configuring the configuration file for previwing the documents.

system.swftools.pdf2swf
Can't read or execute: C:\Program
system.imagemagick.convert
Can't read or execute: C:\Program
system.ocr
Can't read or execute: C:\ProgramFiles\Tesseract-OCR\tesseract.exe
system.openoffice.path
OK - C:\Program Files\OpenOffice.org 3\program\soffice.bin

:shock:
 #16873  by shaardu
 
manasj wrote:Dear Sir,

I am getting the following error while configuring the configuration file for previwing the documents.

system.swftools.pdf2swf
Can't read or execute: C:\Program
system.imagemagick.convert
Can't read or execute: C:\Program
system.ocr
Can't read or execute: C:\ProgramFiles\Tesseract-OCR\tesseract.exe
system.openoffice.path
OK - C:\Program Files\OpenOffice.org 3\program\soffice.bin

:shock:
Make sure your path is accurate.
use the following way.
Code: Select all
system.openoffice.path=C:/Program Files/OpenOffice.org 3
system.swftools.pdf2swf=C:/Users/^/Desktop/swftools/pdf2swf.exe ${fileIn} ${fileOut}
system.openoffice.dictionary=C:/Users/^/Desktop/dict-en.oxt
system.imagemagick.convert=C:/Users/^/Desktop/imagemagick/convert.exe
 #16875  by manasj
 
Dont Know how should I thank you. You are truly a life saver!!

Thank You very much

I have simply added ${fileIn} ${fileOut} part after the C:\\Program Files\\SWFTools\\pdf2swf.exe
Code: Select all
C:\\Program Files\\SWFTools\\pdf2swf.exe ${fileIn} ${fileOut}
One More Help All Files are viewable in preview mode except image files. should i try the same line for it.

Manas
 #16876  by manasj
 
A little addition. Even though I am being able to see all the files in preview format but the configuration error remains the same. This configuration was working perfectly with the 5.1.7 version. I have deleted the previous version and installed the 5.1.9 version with same configuration but still its not working. Need Your Suggestion.

system.swftools.pdf2swf
Can't read or execute: C:\Program
system.imagemagick.convert
Can't read or execute: C:\Program
system.ocr
Can't read or execute: C:\Program
system.openoffice.path
OK - C:\Program Files\OpenOffice.org 3\program\soffice.bin

The configuration is as follows:
Code: Select all
Key	Type	Value 	 
application.url	String 	http://localhost:8080/OpenKM/index.jsp 	Edit   Delete
cache.home	String 	C:\jboss-4.2.3.GA\cache 	Edit   Delete
default.admin.role	String 	AdminRole 	Edit   Delete
default.lang	String 		Edit   Delete
default.script	Text 	print("UserId: "+session.getUserID()); print("EventType: "+eventType); print("EventNode: "+eventNode.getPath()); print("ScriptNode: "+scriptNode.getPath()); 	Edit   Delete
default.user.role	String 	UserRole 	Edit   Delete
experimental.mobile.context	String 	mobile 	Edit   Delete
experimental.plugin.debug	Boolean 	Inactive 	Edit   Delete
experimental.text.extraction	Boolean 	Inactive 	Edit   Delete
kea.automatic.keyword.extraction.number	Integer 	0 	Edit   Delete
kea.automatic.keyword.extraction.restriction	Boolean 	Inactive 	Edit   Delete
kea.model.file	String 		Edit   Delete
kea.stopwords.file	String 		Edit   Delete
kea.thesaurus.base.url	String 		Edit   Delete
kea.thesaurus.owl.file	String 		Edit   Delete
kea.thesaurus.skos.file	String 		Edit   Delete
kea.thesaurus.tree.childs	Text 		Edit   Delete
kea.thesaurus.tree.root	Text 		Edit   Delete
kea.thesaurus.vocabulary.serql	Text 		Edit   Delete
logo.login	File 		Edit   Delete
logo.mobile	File 		Edit   Delete
logo.report	File 		Edit   Delete
logo.text	String 	  	Edit   Delete
max.file.size	Long 	64 	Edit   Delete
max.search.results	Integer 	261006 	Edit   Delete
notification.message.body	Text 	<b>Document: </b><a href="${documentUrl}">${documentPath}</a><br/><b>User: </b>${userId}<br/><b>Message: </b>${notificationMessage}<br/> 	Edit   Delete
notification.message.subject	Text 	OpenKM - NOTIFICATION - ${documentName} 	Edit   Delete
notify.twitter.password	String 		Edit   Delete
notify.twitter.status	Text 	OpenKM - ${documentUrl} - ${documentPath} - ${userId} - ${eventType} 	Edit   Delete
notify.twitter.user	String 		Edit   Delete
principal.adapter	String 	com.openkm.principal.DatabasePrincipalAdapter 	Edit   Delete
principal.database.filter.inactive.users	Boolean 	Active 	Edit   Delete
principal.ldap.mail.attribute	String 		Edit   Delete
principal.ldap.mail.search.base	String 		Edit   Delete
principal.ldap.mail.search.filter	String 		Edit   Delete
principal.ldap.referral	String 		Edit   Delete
principal.ldap.role.attribute	String 		Edit   Delete
principal.ldap.role.search.base	String 		Edit   Delete
principal.ldap.role.search.filter	String 		Edit   Delete
principal.ldap.roles.by.user.attribute	String 		Edit   Delete
principal.ldap.roles.by.user.search.base	String 		Edit   Delete
principal.ldap.roles.by.user.search.filter	String 		Edit   Delete
principal.ldap.security.credentials	String 		Edit   Delete
principal.ldap.security.principal	String 		Edit   Delete
principal.ldap.server	String 		Edit   Delete
principal.ldap.user.attribute	String 		Edit   Delete
principal.ldap.user.search.base	String 		Edit   Delete
principal.ldap.user.search.filter	String 		Edit   Delete
principal.ldap.users.by.role.attribute	String 		Edit   Delete
principal.ldap.users.by.role.search.base	String 		Edit   Delete
principal.ldap.users.by.role.search.filter	String 		Edit   Delete
registered.text.extractors	Text 	org.apache.jackrabbit.extractor.PlainTextExtractor org.apache.jackrabbit.extractor.MsWordTextExtractor org.apache.jackrabbit.extractor.MsExcelTextExtractor org.apache.jackrabbit.extractor.MsPowerPointTextExtractor org.apache.jackrabbit.extractor.OpenOfficeTextExtractor org.apache.jackrabbit.extractor.RTFTextExtractor org.apache.jackrabbit.extractor.HTMLTextExtractor org.apache.jackrabbit.extractor.XMLTextExtractor org.apache.jackrabbit.extractor.PngTextExtractor org.apache.jackrabbit.extractor.MsOutlookTextExtractor com.openkm.extractor.PdfTextExtractor com.openkm.extractor.AudioTextExtractor com.openkm.extractor.ExifTextExtractor com.openkm.extractor.CuneiformTextExtractor com.openkm.extractor.SourceCodeTextExtractor com.openkm.extractor.MsOffice2007TextExtractor 	Edit   Delete
repository.config	String 	C:\jboss-4.2.3.GA\repository.xml 	Edit   Delete
repository.home	String 	\\Icml-ho-nas\repository 	Edit   Delete
restrict.file.extension	String 	*~,*.bak 	Edit   Delete
restrict.file.mime	Boolean 	Inactive 	Edit   Delete
schedule.dashboard.refresh	Long 	30 	Edit   Delete
schedule.mail.importer	Long 	0 	Edit   Delete
schedule.repository.info	Long 	1440 	Edit   Delete
schedule.session.keepalive	Long 	15 	Edit   Delete
subscription.message.body	Text 	<b>Document: </b><a href="${documentUrl}">${documentPath}</a><br/><b>User: </b>${userId}<br/><b>Event: </b>${eventType}<br/><b>Comment: </b>${subscriptionComment}<br/> 	Edit   Delete
subscription.message.subject	Text 	OpenKM - ${eventType} - ${documentPath} 	Edit   Delete
system.antivir	String 		Edit   Delete
system.apache.request.header.fix	Boolean 	Inactive 	Edit   Delete
system.demo	Boolean 	Inactive 	Edit   Delete
system.document.name.mismatch.check	Boolean 	Active 	Edit   Delete
system.dwg2dxf	String 		Edit   Delete
system.ghostscript.ps2pdf	String 		Edit   Delete
system.imagemagick.convert	String 	C:\\Program Files\\ImageMagick-6.7.2-Q16\\convert.exe ${fileIn} ${fileOut} 	Edit   Delete
system.keyword.lowercase	Boolean 	Inactive 	Edit   Delete
system.login.lowercase	Boolean 	Inactive 	Edit   Delete
system.maintenance	Boolean 	Inactive 	Edit   Delete
system.ocr	String 	C:\\Program Files\\Tesseract-OCR\\tesseract.exe 	Edit   Delete
system.openoffice.dictionary	String 		Edit   Delete
system.openoffice.path	String 	C:\\Program Files\\OpenOffice.org 3 	Edit   Delete
system.openoffice.port	Integer 	2002 	Edit   Delete
system.openoffice.server	String 		Edit   Delete
system.openoffice.tasks	Integer 	200 	Edit   Delete
system.pdf.force.ocr	Boolean 	Inactive 	Edit   Delete
system.previewer	String 	zviewer 	Edit   Delete
system.readonly	Boolean 	Inactive 	Edit   Delete
system.swftools.pdf2swf	String 	C:\\Program Files\\SWFTools\\pdf2swf.exe ${fileIn} ${fileOut} 	Edit   Delete
system.webdav.fix	Boolean 	Inactive 	Edit   Delete
system.webdav.server	Boolean 	Inactive 	Edit   Delete
update.info	Boolean 	Active 	Edit   Delete
user.assign.document.creation	Boolean 	Active 	Edit   Delete
user.item.cache	Boolean 	Active 	Edit   Delete
user.keywords.cache	Boolean 	Inactive 	Edit   Delete
validator.password	String 	com.openkm.validator.password.NoPasswordValidator 	Edit   Delete
validator.password.max.length	Integer 	0 	Edit   Delete
validator.password.min.digits	Integer 	0 	Edit   Delete
validator.password.min.length	Integer 	0 	Edit   Delete
validator.password.min.lowercase	Integer 	0 	Edit   Delete
validator.password.min.uppercase	Integer 	0 	Edit   Delete
validator.password.mini.special	Integer 	0 	Edit   Delete
workflow.run.config.form	String 	run_config 	Edit   Delete
workflow.start.task.auto.run	Boolean 	Active 	Edit   Delete
zoho.api.key	String 		Edit   Delete
zoho.password	String 		Edit   Delete
zoho.secret.key	String 		Edit   Delete
zoho.user	String 		Edit   Delete
 #16879  by shaardu
 
Ok that problem is due to "program files"!! there is a gap after "program" in program files hence you are getting that error. So you should copy the installed folder into desktop and place that location to configuration. It ll work

Also regarding image previews, put /your location/ imagemagick/convert.exe! No "$fileIn $fileOut!!!
 #16890  by jllort
 
About pdf2swf parameter should be like it pdf2swf.exe -T 9 -f ${fileIn} -o ${fileOut}

I suggest concentrate openoffice ( after set parameter should restart jboss application ) and pdf2swf. With first should convert.doc to pdf ( it runs correctly ) then concentrate in preview pdf document is converted to swf to be previewed.
 #19586  by raiko
 
I guess this is the problem - Windows version should use soffice.exe instead of soffice.bin. However, even I specified system.openoffice.path to use soffice.exe still not working. I assumed openKM has hard code to use the .bin file.
Last edited by raiko on Tue Dec 04, 2012 5:29 am, edited 1 time in total.
 #19605  by jllort
 
raiko code is right. You got other kind of problem. I suggest you continue with you actual post and revise in administration ( configuration -> there's a top icon at right on table to test configuration -> be sure you pass it, and then restart openkm , we continue talking in the other post)
 #19641  by pavila
 
You don't need to specify the path to the soffice.exe in the system.openoffice.path configuration property. In this property you should configure the directory where OpenOffice / LibreOffice is installed.
 #19673  by raiko
 
pavila, preview is working except TIFF (see my another post). I have reinstall my Windows for a few times from scratch, but still not quiet work out what fix the problem, either/combination of:
- install JAVE 1.7
- install JRE 1.7 (but keeps OpenKM uses it's own bundled version of JRE)
- add office.bin into Windows Firewall
- wait for a day!

Thanks!
 #28013  by writeaditya.jain
 
hey plz help frnds...
i am using openkm 5.1.8 war with jboss 4.2.3 .
all my configuration are correct ...preview is working fine but my issue is that whenever i upload any excel files that has 10-15 colums so openkm divides it into 3 pdf pages lyk 5 colums on each page . i want to upload my excel sheet as it is doesnt matter if i need to zoom in preview to read the content but i want the proper structure of my file that means i do not want to break in into frames instead i want my complete excel sheet in one page so that data remains in its proper structure...
please anyone help as soon as possible...
thank you much in advance ....:)
 #28051  by jllort
 
This is a problem with OpenOffice version take a look when you open with OpenOffice or LibreOffice and convert to pdf what you gets ( I suggest update to latest version )
 #28186  by GregR
 
Dear friends,
I do really have a hard time struggling against errors in previewing Office documents. I have installed OpenKM 6.2.5 first on my Ubuntu laptop and configured it properly. Everything worked perfectly fine. And later I have installed it on my Mac server, configured it exactly in the same way, but it cannot preview any Office documents like .xls or .doc files. However it can preview jpeg pictures and pdf documents. The error it rises is “Conversion: Error in application/vnd.ms-excel to PDF conversion”. In debugging mode it states the same only starts with UnknownException(Conversion)...
I have tried it with both OpenOffice and LibreOffice but still without any progress.
I used the following path for system.openoffice.path = “/Applications/OpenOffice.app/Contents/MacOS”
where soffice is located. I tried everything, only specifying /Applications/OpenOffice.app or /Applications/OpenOffice.app/Contents/ but everything was useless.
Could you please help me and lead me to the right solution?
I would really appreciate if you answer as soon as possible
 #28196  by jllort
 
you must set folder path into what there's a folder called program ( into there's soffice ) but the correct path is the parent of program folder
 #28199  by GregR
 
I'm very sorry, but it is still not clear for me which path should I indicate. In my case soffice file is located in the folder "/Applications/LibreOffice.app/Contents/MacOS". I tried this folder, I tried it's parent folder which is "/Applications/LibreOffice.app/Contents" but I get the error every time. Could you please tell me the exact solution for my case?

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.