Page 1 of 1

PDF Preview Problem

PostPosted:Mon May 04, 2015 5:17 pm
by syrac
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.

Re: PDF Preview Problem

PostPosted:Wed May 06, 2015 11:20 am
by jllort
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

Re: PDF Preview Problem

PostPosted:Thu May 07, 2015 12:37 pm
by syrac
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

Re: PDF Preview Problem

PostPosted:Sat May 09, 2015 10:09 am
by jllort
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 ).