OpenKM problem with preview files pdf, doc and images

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.
Post Reply
Florentin
Junior Boarder
Junior Boarder
Posts: 21
Joined: Wed Apr 05, 2017 9:24 am

OpenKM problem with preview files pdf, doc and images

Post by Florentin » Fri Apr 21, 2017 9:42 am

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!

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

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

Post by jllort » Sat Apr 22, 2017 9:42 am

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 ) .

Florentin
Junior Boarder
Junior Boarder
Posts: 21
Joined: Wed Apr 05, 2017 9:24 am

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

Post by Florentin » Fri Apr 28, 2017 8:33 am

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

alexkcy
Junior Boarder
Junior Boarder
Posts: 20
Joined: Tue Feb 14, 2017 6:17 am

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

Post by alexkcy » Fri Apr 28, 2017 11:32 am

Hi,

What is your configuration of openoffice and OCR ?

Alex

Florentin
Junior Boarder
Junior Boarder
Posts: 21
Joined: Wed Apr 05, 2017 9:24 am

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

Post by Florentin » Fri Apr 28, 2017 4:48 pm

Hi i just install libreoffice and tesseract.
Thanks in advance!

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

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

Post by jllort » Sat Apr 29, 2017 11:16 am

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.

Florentin
Junior Boarder
Junior Boarder
Posts: 21
Joined: Wed Apr 05, 2017 9:24 am

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

Post by Florentin » Sun Apr 30, 2017 2:20 pm

Hi
i am using openkm 6.3.2.
Thanks in advance!

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

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

Post by jllort » Sun Apr 30, 2017 5:44 pm

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 )

alexkcy
Junior Boarder
Junior Boarder
Posts: 20
Joined: Tue Feb 14, 2017 6:17 am

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

Post by alexkcy » Fri Jul 07, 2017 3:12 pm

If u use chrome, u may meed to disable hardware accelaration to make preview works

Florentin
Junior Boarder
Junior Boarder
Posts: 21
Joined: Wed Apr 05, 2017 9:24 am

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

Post by Florentin » Tue Jul 18, 2017 12:45 pm

Hi! thanks for all. i solved my issue. thanks!

alexkcy
Junior Boarder
Junior Boarder
Posts: 20
Joined: Tue Feb 14, 2017 6:17 am

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

Post by alexkcy » Sat Aug 12, 2017 6:32 pm

Would you like to share what the problem exactly is and how you solved it ? ^^

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests