• Problem with preview in Windows

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #6006  by shylva
 
I'm using Windows XP SP2, OpenKM 4.1 and JBoss 4.2.3.GA, OpenOffice.Org and pdf2swf. Alls lastest version.

Preview function working perfectly until I add a new "large document" (about 1MB) (I tried .doc, .pdf, .ppt,... files). The preview tab generates a blank page.

half a hour later --> No new file created in /cache/swf, no log added in /server/default/log/server.txt

I tried restart the Jboss server --> a new file created in /cache/swf --> preview for the "large file" work perfectly once again

Anyone know the problem here? How can I make the preview function woking without restarting server?

Thank you so much.

P/s: Sorry for my bad English
 #6011  by jllort
 
could you try using sfwtools directly from cmd ? runs well always ?

Could be some memory problem (increase jvm params heap and others )... any error in server.log while converting ?
 #6024  by shylva
 
jllort wrote:could you try using sfwtools directly from cmd ? runs well always ?

Could be some memory problem (increase jvm params heap and others )... any error in server.log while converting ?
Please tell me how to use sfwtools directly from cmd.

I Just add the command "system.pdf2swf=c:\programfiles\swftools\pdf2swf.exe" to OpenKM.cfg ("system.pdf2swf=/bin/pdf2swf" did not work) (the pdf2swf file locate in "D:\OpenKM\bin")

While converting there no error in log file (no single text added in the server.log)
Working fine in OpenKM 5.0 (under development) under Ubuntu Linux. Can you try to reproduce the issue at http://demo.openkm.com ?
No, I can't. OpenKM 5.0 woking fine

Could you please tell me to config the OpenKM.cfg?

More information:
- OpenKM root folder: D:\OpenKM (swftools dir: d:\OpenKM\bin\pdf2swf)
- swftools installed folder: c:\program files\swftools
- OpenOffice.org command: "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" -nologo -headless –nofirststartwizard
 #6031  by jllort
 
better if you put pdftoold folder in default environment path and in openkm.cfg only point to .exe file without path.

Take a look at your server.log there's information about what could be wrong. There's no mistery on it. Try first converting file to pdf, and then try preview tab ... because preview needs two actions -> convert pdf and then convert to swf ( doing it you'll identify which of two process goes wrong )
 #6036  by shylva
 
jllort wrote:better if you put pdftoold folder in default environment path and in openkm.cfg only point to .exe file without path.
Did you mean add new environment variables in "system properties/advance"

I dont know how to do. Below is what I have done:
- Go to "system properties/advance >> environment variables"
- Add new variable:
variable: pdf2swf.exe
value: c:\programfiles\swftools\pdf2swf.exe
Am I correct?
 #6041  by jllort
 
NO I was thinking in put your path with other default path windows looking for when is searching for something
 #6052  by shylva
 
jllort wrote:NO I was thinking in put your path with other default path windows looking for when is searching for something
Where can I put the swftools folders?

I tried "%OpenKM Home%/server/" and "%OpenKM Home%/server/default". None of them work.

the log file is something like: "cannot file the specific patch for pdf2swf.exe"
 #6057  by jllort
 
if you're in windows must install swftools because what comes with OpenKM release ( jboss etc... ) is for linux. You must install the swftools in your OS.

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.