• Preview issues (new I think)

  • 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.
 #29873  by opensourced
 
I've done a search on the forums, but not found anything quite like my issue. I'm on 6.3 with Libreoffice 4. After solving issues with soffice by adding path variables to the environment, I can successfully "download as pdf". The pdf works, looks good, and sits in the cache/pdf directory.

However, as soon as I click preview, the pdf is regenerated in cache/pdf but not as a valid pdf. I can watch the datestamp and filesize change (but not the file name). Needless to say, pdf2swf then fails (I've also confirmed this from the command line).

After this point "download as pdf" then downloads the bad file. If I delete the pdf from the cache, I can then create it and download it again.

Ideas? Thanks.
 #29874  by opensourced
 
As an addendum. If I create the pdf via "download as pdf", then run the pdf2swf command in the command line, I can then successfully preview the file. For some reason, clicking preview is causing the pdf to be recreated, but not as a valid one. Now there is a valid swf, I can flick backwards and forwards between properties and preview with no problem.
 #29897  by jllort
 
First of all, what openkm version are we talking about.
Explain with detail in a nutshell. For what I understood:
1- .doc file -> download as pdf goes right
2- previewing goes wrong ( you consider pdf file in cache is wrong )

is that ?
 #29926  by opensourced
 
6.3 community version

Yes, in essence:

1. Upload a new file (therefore there's no pdf in the cache directory)
2. Download as pdf - correct conversion, and working pdf in cache directory
3. Click Preview tab - pdf in cache gets replaced by a non-working pdf (always 4kb), resulting in pdf2swf failing
4. Download as pdf - downloads same non-working pdf until I go and delete the pdf from cache
5. I can manually use pdf2swf from the command line to create the flash file - this results in preview working

As I click the preview tab, for some reason it is recreating the pdf, except it's a corrupt version
 #29991  by jllort
 
The video is clear, but is quite strange we've cannot reproduce it. Do you got some crypt feature or similar installed in this computer ( folder, etc... ) ?
 #30043  by opensourced
 
Could someone provide some help with using that nightly release .war in my system please? I have data in the system already, so I can't risk losing that.

Many thanks
 #30322  by opensourced
 
Just getting back to this. How do I run:

DELETE FROM OKM_CONFIG WHERE CFG_KEY='system.ghostscript.ps2pdf';

when OpenKM is not running?

EDIT: I guess the "restart openkm" is missing - upgraded fine
 #30324  by opensourced
 
Okay, I'm now on 8173 latest dev version - the issue is exactly the same as before with the bad file replacing the good one in cache...

I was really hoping that would help
 #30337  by jllort
 
After the upgrade did you removed all the contents into cache folder ? I suggest doing it

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.