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

works in linux mint #23

Open
zurimc opened this issue Sep 3, 2020 · 1 comment
Open

works in linux mint #23

zurimc opened this issue Sep 3, 2020 · 1 comment

Comments

@zurimc
Copy link

zurimc commented Sep 3, 2020

i tried this code ...but i have some error i don't know if is for mi server lampp add my code and error

convertTo('Documento2.pdf'); // $result->saveFiles('Documento2.pdf'); header('Content-Type: application/pdf'); header("Content-Disposition: attachment; filename=".$id_fol."_".$newNom.".pdf; charset=iso-8859-1"); echo file_get_contents('Documento2.pdf'); ?>

Fatal error: Uncaught NcJoes\OfficeConverter\OfficeConverterException: Convertion Failure! Contact Server Admin. in /opt/lampp/htdocs/sefaureo2.5/vendor/ncjoes/office-converter/src/OfficeConverter/OfficeConverter.php:54 Stack trace: #0 /opt/lampp/htdocs/sefaureo2.5/sources/ajax/generar_Word.php(301): NcJoes\OfficeConverter\OfficeConverter->convertTo('Documento2.pdf') #1 {main} thrown in /opt/lampp/htdocs/sefaureo2.5/vendor/ncjoes/office-converter/src/OfficeConverter/OfficeConverter.php on line 54

@fd6130
Copy link

fd6130 commented Jul 19, 2022

Do you have libreoffice installed in your system? Can you convert it by using terminal?

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