Page 1 of 1

Problem with preview in Windows

PostPosted:Fri Jul 30, 2010 8:30 am
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

Re: Problem with preview in Windows

PostPosted:Fri Jul 30, 2010 11:16 am
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 ?

Re: Problem with preview in Windows

PostPosted:Sat Jul 31, 2010 2:26 am
by ilagi
I have a very similar problem - have a look at : http://forum.openkm.com/viewtopic.php?f=4&t=3910

Re: Problem with preview in Windows

PostPosted:Sun Aug 01, 2010 9:45 am
by pavila
Working fine in OpenKM 5.0 (under development) under Ubuntu Linux. Can you try to reproduce the issue at http://demo.openkm.com ?

Re: Problem with preview in Windows

PostPosted:Mon Aug 02, 2010 2:20 am
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

Re: Problem with preview in Windows

PostPosted:Mon Aug 02, 2010 1:02 pm
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 )

Re: Problem with preview in Windows

PostPosted:Tue Aug 03, 2010 11:01 am
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?

Re: Problem with preview in Windows

PostPosted:Tue Aug 03, 2010 4:56 pm
by jllort
NO I was thinking in put your path with other default path windows looking for when is searching for something

Re: Problem with preview in Windows

PostPosted:Thu Aug 05, 2010 3:04 am
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"

Re: Problem with preview in Windows

PostPosted:Thu Aug 05, 2010 10:25 am
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.