Page 1 of 2
pdf2swf issue
PostPosted:Fri Jul 23, 2010 5:38 pm
by ilagi
Hi All,
I found an interesting pdf2swf issue. I have a Windwos 2003 machine with OpenKM 4.1, OpenOffice 3.2 and latest pwdf2swf.
The whole seems to work fine, I uploade microsoft office documents (doc, xls, etc) and they are avilable in the Preview, except that some bigger files don't show.
I looked into the server log and I see that it connects to OpenOffice and then disconnect and then I see that pdf2swf.exe starts, but never stops and the swf file is not created. The pdf2swf.exe just hangs there.
What is interesting that when I shut down OpenKM the swf file gets created and pdf2swf closes and after I start OpenKM the preview is available.
Anybody has any idea what's going on here? It seems like some issue between pdf2swf and OpenKM.
Thanks
Ilagi
Re: pdf2swf issue
PostPosted:Fri Jul 23, 2010 6:38 pm
by jllort
big files are not converted with pdf2swf.exe, how big are ? could you try it from cmd ? take the pdf generated in cache/pdf folder and execute with that file the pdf2swf to take a look about some error etc...
Re: pdf2swf issue
PostPosted:Fri Jul 23, 2010 10:40 pm
by ilagi
Thank you, actually they are not that big. For example there is this doc file is a 21 page file which is 355Kb (399Kb as swf when finally get generated).
I have checked, there is nothin in the cache/pdf folder, but still when I stop OpenKM it shows up in the swf folder (and the hanging pdf2swf.exe exitst).
Which is interesting, because it got disconnected from OpenOffice but the pdf is somehow not created (or at least not in the cache/pdf folder)
Any other idea?
Re: pdf2swf issue
PostPosted:Sat Jul 24, 2010 8:40 am
by pavila
Can you attach a document which generate this issue? I can't reproduce it.
Re: pdf2swf issue
PostPosted:Wed Jul 28, 2010 11:06 pm
by ilagi
Sorry, I took some time to find an example document. The one which I originally had was a sensitive corporate document.
While I was looking for an other one it felt like those documents tend to have this issue - at least in case of Microsoft Word - which are longer in the meaning of having many pages. The file size actually less important. For example a big word document with some huge print screens in it went through ok, while other smaller ones with many pages of text failed.
Please find below a document which regularly failed. I couldn't upload a .doc to this forum, so I uploaded it to elsewhere, you can download it through the link:
http://planetzoltan.com/Installation_in ... g_2002.doc
Re: pdf2swf issue
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: pdf2swf issue
PostPosted:Sun Aug 01, 2010 11:47 pm
by ilagi
I've tested with this document and couldn't reproduce it on
http://demo.openkm.com.
Did the 5.0 version change the inegration with pdf2swf?
Re: pdf2swf issue
PostPosted:Mon Aug 02, 2010 12:58 pm
by jllort
Really no. Normaly problems are caused by bad configuration.
Re: pdf2swf issue
PostPosted:Fri Aug 06, 2010 8:59 pm
by ilagi
So far I could eliminate OpenOffice being the source of the problem, as the exact same thing is happening when I convert the doc to a pdf and then upload the pdf to my OpenKM and try to preview it - pdf2swf starts but never finish, so the preview does not show up only after full server restart.
Also I tried pdf2swf in command line and it has no problem to turn this pdf to an swf file.
Based on the above, everything seems to be working, still big office or pdf files don't show up in the preview.
Does anybody have any other idea what should I check?
Re: pdf2swf issue
PostPosted:Mon Aug 09, 2010 2:38 pm
by jllort
Could be a memory problem, try increasing jvm heap and xms memory
Re: pdf2swf issue
PostPosted:Mon Aug 09, 2010 9:56 pm
by ilagi
Am I correct, that the jvm heap and XMS is one and the same setting?
I already had a pretty high XMS and now I increased it further but no difference;
1. This is what I used to have:
set JAVA_OPTS=%JAVA_OPTS% -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=128m
2. And now I increase XMS from 256m to 384m but no difference.
set JAVA_OPTS=%JAVA_OPTS% -Xms384m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=128m
This is already very high, I don't think that any further increase in XMS could help.
Any other idea?
Re: pdf2swf issue
PostPosted:Tue Aug 10, 2010 2:59 am
by joshvette001
Was wondering if you figured this out? I seem to be having the exact same issue running on server 2008 Enterprise.... This is a brand new install all i did was add into the config the directory of the pdf2swf location.
Re: pdf2swf issue
PostPosted:Tue Aug 10, 2010 3:20 am
by shylva
This issue can be fixed temporarily by restarting the Jboss.
While the server is restarting, It said (in the log file): "INFO [StandardWrapper] Waiting for 1 instance(s) to be deallocated"
The number of instance(s) will change if you have more "big documents" which cannot be previewed. Right after the server's restarted, pdf2swf.exe task(s) run in the background (Try adding some "really big document", about 50MB, you will see it in the task manager). When the task(s) is finished, the file(s) can be previewed.
Any solution?
Re: pdf2swf issue
PostPosted:Tue Aug 10, 2010 3:33 am
by joshvette001
not to sure because that is exactly what is happening to me also but it is happening on like 500kb files also...?
Re: pdf2swf issue
PostPosted:Tue Aug 10, 2010 9:41 am
by jllort
Some problem that we're trying to solve in 5.0 is put more information about what's happening while converting in flash ( some text that will says we're converting to pdf, to swf because user now has no information about what's happening ... and conversion is really done in background until has finished user can be totally on confusion, I know ! )