Closed Olusiji closed 6 years ago
Same problem here.
@Olusiji not sure if it's still relevant to you, but in the end i only used this line:
"{$libreoffice} --headless --convert-to {$outputExtension} {$oriFile} --outdir {$outputDirectory}";
$libreoffice should be the path to the "soffice" file, inside the LibreOffice installation folder/program
Working converting docx to pdf. If you need any further help, let me know.
@RodrigoZanotta Thanks. It seems the command in the library was not matching my version of libreoffice installed, so I modified the class's construct to run the command as libreoffice6.0
as opposed to libreoffice
public function __construct($filename, $tempPath = null, $bin = 'libreoffice6.0')
@Olusiji not sure if it's still relevant to you, but in the end i only used this line:
"{$libreoffice} --headless --convert-to {$outputExtension} {$oriFile} --outdir {$outputDirectory}";
$libreoffice should be the path to the "soffice" file, inside the LibreOffice installation folder/program
Working converting docx to pdf. If you need any further help, let me know.
I have a list of URLs, how can I do sth like this? Please help me, I want to convert from .doc to plain text or HTML. but what I need is something like PHP code. Thank you!
Hi, I installed LibreOffice on my windows 10. But when I try to convert a Docx to Pdf. I get the "Conversion Failure! Contact Server Admin." error. I have changed libreoffice to libreoffice6.0.6 but it's not working. I am using libreoffice 6.0.6. Please help me what are the possible causes of the error. And how to overcome it. Thanks in Advance
Hi, I installed LibreOffice on my windows 10. But when I try to convert a Docx to Pdf. I get the "Conversion Failure! Contact Server Admin." error. I have changed libreoffice to libreoffice6.0.6 but it's not working. I am using libreoffice 6.0.6. Please help me what are the possible causes of the error. And how to overcome it. Thanks in Advance
Can you post your code?
Please was this later solved?
Hi, I installed LibreOffice on my Linux Centos VM and installed office-converter. But when i try to convert a docx to Pdf I get the "Convertion Failure! Contact Server Admin." error.
Please what are the possible causes of this error