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

Convertion Failure! Contact Server Admin. #30

Open
ppavezh opened this issue May 7, 2021 · 2 comments
Open

Convertion Failure! Contact Server Admin. #30

ppavezh opened this issue May 7, 2021 · 2 comments

Comments

@ppavezh
Copy link

ppavezh commented May 7, 2021

Another solution guys?

i followed all steps and it keep saying Convertion Failure! Contact Server Admin. W10 ,LibreOffice 6.4 and the last version

@fd6130
Copy link

fd6130 commented Oct 15, 2021

I believe it is because the command fail to execute.

Try go to public function convertTo($filename) in OfficeConverter.php and locate $shell = $this->exec($this->makeCommand($outdir, $outputExtension));

You can try to debug that command output in your terminal.

EDIT

Possibly duplicate #29

@ijohnson-TCR
Copy link

ijohnson-TCR commented Jan 30, 2023

@ppavezh Instead of using this repo, do yourself a favor and just use this code:

`<?php

$output=null;
$retval=null;
$command = 'soffice --convert-to pdf "C:\htdocs\temp\TEST.doc" --outdir "C:\htdocs\temp"';
exec($command, $output, $retval);
echo "Returned with status $retval and output:\n";
print_r($output);

?>`

You will need an installation of libreoffice. You will also need to add this path to the PATH environment variables:
C:\Program Files\LibreOffice\program
Or just use the full path to the soffice.exe file in your command. Since this repo doesn't give any good errors, and this will give you much better feedback.
The fact that the error message doesn't even spell "conversion" correctly should be a good clue something's off.

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

3 participants