File preview

OpenKM a de nombreuses fonctionnalités interessantes, mais demande un minimum de configuration pour être pleinement exploité.

Moderator: dedisoft

Forum rules
Avant de poser une question, merci de regarder la documentation du wiki ou d'utiliser la fonction recherche du forum. Et rappelez vous que nous n'avons ni boule de cristal ni possibilité de lire dans les pensées, aussi pensez à spécifier quelle version d'OpenKM vous utilisez ainsi que la version du navigateur web et du système d'exploitation. Pour de plus amples informations lisez Comment reporter un bug efficacement (anglais).
Post Reply
kouadio
Expert Boarder
Expert Boarder
Posts: 89
Joined: Wed Jan 09, 2019 9:26 am

File preview

Post by kouadio »

Hello everyone,
I have installed OpenKM 6.3.11. But when I want to preview Microsoft excel and JPG image files for example, I get the following error message:
There was a problem with the conversion generation.
Please, contact your OpenKM administrator.

However, the preview of PDF and Microsoft Word files works perfectly.
Thank you for your assistance.
Attachments
Error_preview.PNG
jllort
Moderator
Moderator
Posts: 11598
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: File preview

Post by jllort »

In the openkm.log will be the full stack trace of the error, please share the section with the error.
Does the problem happen only with XLS files and JPG?
kouadio
Expert Boarder
Expert Boarder
Posts: 89
Joined: Wed Jan 09, 2019 9:26 am

Re: File preview

Post by kouadio »

I have installed the following applications ruby-roo libspreadsheet-read-perl and I see that the preview of Excel files works perfectly.
However, the preview does not work for all image files (png, jpeg, ...)
In the openkm.log file, I have the following error lines:

2021-09-22 12:06:21,989 [http-nio-0.0.0.0-8080-exec-10] [] WARN com.openkm.util.ExecutionUtils - CommandLine: [/usr/bin/convert, /home/openkm/tomcat-8.5.34/temp/okm4701715522986042890.jpeg, /home/openkm/tomcat-8.5.34/repository/cache/pdf/2fd2f24b-a0a1-4892-945b-32ebade3a5a9.pdf]
2021-09-22 12:06:21,989 [http-nio-0.0.0.0-8080-exec-10] [] WARN com.openkm.util.ExecutionUtils - STDERR: convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/421.

2021-09-22 12:06:21,989 [http-nio-0.0.0.0-8080-exec-10] [] ERROR c.o.s.frontend.ConverterServlet - convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/421.

com.openkm.core.ConversionException: convert: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/421.
jllort
Moderator
Moderator
Posts: 11598
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: File preview

Post by jllort »

I think this section of the documentation can help https://docs.openkm.com/kcenter/view/ok ... ge412.html
kouadio
Expert Boarder
Expert Boarder
Posts: 89
Joined: Wed Jan 09, 2019 9:26 am

Re: File preview

Post by kouadio »

Hello jllort,

Thanks a lot, it works perfectly.
Post Reply