Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only Fail convert images and XLS, DOCS WORK (Convertion Failure! Contact Server Admin.) #37

Closed
LiThaM opened this issue Jan 9, 2022 · 3 comments

Comments

@LiThaM
Copy link

LiThaM commented Jan 9, 2022

Hi people,

I am getting this error when I select an image or excel, the rest works like DOCS.
I attach the code that I use.
ERROR:

exception: "NcJoes\\OfficeConverter\\OfficeConverterException"
file: "/Users/alejandrocastronantes/Documents/Trabajo/gestor-documental/vendor/ncjoes/office-converter/src/OfficeConverter/OfficeConverter.php"
line: 54
message: "Convertion Failure! Contact Server Admin."

ME CODE:

 use NcJoes\OfficeConverter\OfficeConverter;
 
  function convertToPdf($pathDocument, $newNameDocument)
     {
         $newNameFile = str_replace(' ', '_', $newNameDocument);
         $converter = new OfficeConverter($pathDocument);
       $converter->convertTo($newNameFile);
       return $newNameFile;
     }
@LiThaM
Copy link
Author

LiThaM commented Jan 26, 2022

Any one help Me?

@gabrielsperezz
Copy link

gabrielsperezz commented Feb 22, 2022

You need to install libreoffice on its sever

@LiThaM LiThaM closed this as completed May 21, 2022
@LiThaM
Copy link
Author

LiThaM commented May 21, 2022

Nice tip, need apt-get install libreoffice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants