• pdf2swf issue

  • 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.
 #5944  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
 #5946  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...
 #5950  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?
 #5955  by pavila
 
Can you attach a document which generate this issue? I can't reproduce it.
 #5992  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
 #6020  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 ?
 #6022  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?
 #6029  by jllort
 
Really no. Normaly problems are caused by bad configuration.
 #6080  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?
 #6091  by jllort
 
Could be a memory problem, try increasing jvm heap and xms memory
 #6100  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?
 #6101  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.
 #6102  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?
 #6103  by joshvette001
 
not to sure because that is exactly what is happening to me also but it is happening on like 500kb files also...?
 #6109  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 ! )

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.