PDF Preview Problem

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.
Post Reply
syrac
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Mon May 04, 2015 5:12 pm

PDF Preview Problem

Post by syrac » Mon May 04, 2015 5:17 pm

Hi,

im using the community windows version of OpenKM.
Trying to have a look at the previe of an pdf i get the following error:

Code: Select all

IO exception executing command: /opt/openkm/bin/pdf2swf -f -T 9 -t -s storeallcharacters C:\DMS\tomcat\temp\okm3617154031557869597.pdf -o C:\DMS\tomcat\repository\cache\swf\53d85e7c-fdc7-4dd5-89e3-0db9ea8df039.swf
Updated the pdf2swf.exe. dosnt help.


Logfile attached.
Attachments
serverlog.zip
(17.04 KiB) Downloaded 32 times

jllort
Moderator
Moderator
Posts: 10452
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: PDF Preview Problem

Post by jllort » Wed May 06, 2015 11:20 am

Exists this file in your files system /opt/openkm/bin/pdf2swf ?
Does the user who's executing openkm grants to execute this file ?

Try utility from command line to see if exists some problem ? download the pdf you're trying to preview and then from command line execute the same command.
/opt/openkm/bin/pdf2swf -f -T 9 -t -s storeallcharacters in.PDF -o out.swf

I suspect for the output path you're on windows ( then this path has no sense and should be modified to your $Tomcat/bin folder ). Also you can install http://www.swftools.org/ and change on administration -> configuration parameters the path of the tool -> looking for system.pdf2swf property

syrac
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: Mon May 04, 2015 5:12 pm

Re: PDF Preview Problem

Post by syrac » Thu May 07, 2015 12:37 pm

Thanks for your reply,

i dont think there is an problem with the conversion to swf. The previe for xls, doc and docx isn't working too.
not even a preview of a .txt file can be created. (Conversion: Error in text/plain to PDF conversion)


I just installed openkm directly on C: and run the "Start OpenKM" as Administrator. Accessing via localhost:8080 = no preview.


Greetz,
Sy

jllort
Moderator
Moderator
Posts: 10452
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: PDF Preview Problem

Post by jllort » Sat May 09, 2015 10:09 am

You must check from command line, the same command line internally is executed by openkm to see if there's some problem or not.

Is quite dificult explain conversion process because distinct mime-type have distinc process. But xls, doc and docx first are converted to pdf, and then from pdf to swf. Then you must doing two checks ( first can be done from OpenKM UI -> download document as pdf, and the second from command line ).

Finally, be sure your browser has installed flashplayer and is running correctly ( test flash player support ).

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests