Page 1 of 1

OpenKM problem with preview files pdf, doc and images

PostPosted:Fri Apr 21, 2017 9:42 am
by Florentin
Hi!
I'm using OpenKM 6.2 with a Mysql database. At first I used it with the default database (Hsql) and then following the tutorial: https://www.openkm.com/wiki/index.php/M ... OpenKM_6.2
This is my configuration:
Image
I was able to move it On a Mysql database. When I was on Hsql the preview worked well but since I'm on Msql it does not work anymore.
Can you help me?
Thanks in advance!

Re: OpenKM problem with preview files pdf, doc and images

PostPosted:Sat Apr 22, 2017 9:42 am
by jllort
Try to preview some document, and then share with us the catalina.log file to see if there's some error ( please try uploading the catalina.log file section with error, is not necessary you send us the full log file ) .

Re: OpenKM problem with preview files pdf, doc and images

PostPosted:Fri Apr 28, 2017 8:33 am
by Florentin
Hi i have this error in catalina.log
Code: Select all
2017-04-28 08:29:00,367 [http-bio-0.0.0.0-8080-exec-10] WARN  com.openkm.util.ExecutionUtils- Abnormal program termination: 1
2017-04-28 08:29:00,367 [http-bio-0.0.0.0-8080-exec-10] WARN  com.openkm.util.ExecutionUtils- CommandLine: [/usr/bin/pdf2swf, -f, -T, 9, -t, -s, storeallcharacters, /opt/openkm-6.3.2-community/tomcat/temp/okm7821634268099211346.pdf, -o, /opt/openkm-6.3.2-community/tomcat/repository/cache/swf/0e06ac5f-89eb-4e2e-969b-5ace027b93f7.swf]
2017-04-28 08:29:00,367 [http-bio-0.0.0.0-8080-exec-10] WARN  com.openkm.util.ExecutionUtils- STDERR: Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

2017-04-28 08:29:00,368 [http-bio-0.0.0.0-8080-exec-10] ERROR com.openkm.servlet.frontend.ConverterServlet- Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table

com.openkm.core.ConversionException: Error: May not be a PDF file (continuing anyway)
Error: PDF file is damaged - attempting to reconstruct xref table...
Error: Couldn't find trailer dictionary
Error: Couldn't read xref table
Thanks in advance

Re: OpenKM problem with preview files pdf, doc and images

PostPosted:Fri Apr 28, 2017 11:32 am
by alexkcy
Hi,

What is your configuration of openoffice and OCR ?

Alex

Re: OpenKM problem with preview files pdf, doc and images

PostPosted:Fri Apr 28, 2017 4:48 pm
by Florentin
Hi i just install libreoffice and tesseract.
Thanks in advance!

Re: OpenKM problem with preview files pdf, doc and images

PostPosted:Sat Apr 29, 2017 11:16 am
by jllort
If you are user of the latest OpenKM version 6.3.3 there's a bug with previewer, we are working in source code to solve it. I think next week will be available the solution, really in the source code there's the patch yet ready to be merged.

Re: OpenKM problem with preview files pdf, doc and images

PostPosted:Sun Apr 30, 2017 2:20 pm
by Florentin
Hi
i am using openkm 6.3.2.
Thanks in advance!

Re: OpenKM problem with preview files pdf, doc and images

PostPosted:Sun Apr 30, 2017 5:44 pm
by jllort
In your case should now have problems with preview. Ensure openoffice / libreoffice start up correctly ( watch catalina.log file at start up for error ). Browser will need Adobe Flash Player plugin installed and running ( check for it )

Re: OpenKM problem with preview files pdf, doc and images

PostPosted:Fri Jul 07, 2017 3:12 pm
by alexkcy
If u use chrome, u may meed to disable hardware accelaration to make preview works

Re: OpenKM problem with preview files pdf, doc and images

PostPosted:Tue Jul 18, 2017 12:45 pm
by Florentin
Hi! thanks for all. i solved my issue. thanks!

Re: OpenKM problem with preview files pdf, doc and images

PostPosted:Sat Aug 12, 2017 6:32 pm
by alexkcy
Would you like to share what the problem exactly is and how you solved it ? ^^