-
Notifications
You must be signed in to change notification settings - Fork 75
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
Conversion from docx to pdf not working on v.1.0.0 #12
Comments
Hi, Can you write all of your code ? If you want an example, in the v1.0.0:
Hope this will help you ! |
Thanks for your help. This is my code on index.php file.
I put require "_assets/libs/vendor/autoload.php"; on _header.php. |
I try your code in my server and it's working fine. Do you have access to the error_log of the webserver ? Maybe Libreoffice is not find, for example the binary is not in your $PATH. |
Thanks You.
I also check libreoffice install dir and found no libreoffice file (exe/bin). Only filename soffice (exe & bin). I tried commandline convert from example
and its not working. Only after I changed libreoffice to soffice the conversion works.
Also does this mean on windows system environment variables?
Thanks for helping me. I'm new to php and web development, I'm sorry if I'm slow to check on errors. |
Maybe Libreoffice is soffice on Windows. I really dont know the Windows env so I couldn't say... Dont worry, we all started one day ! Tell me if you want more info about your issue ! |
Thank you for the advise. I'm planning to learn linux too, just waiting for a moment after I finished sorting what i've learned on php. Any good advise what linux package is good for web server? I'm really new with all this stuff. |
Hi..
convertTo('output-file.pdf'); ?>i'm using office-converter v.1.0.0 installed from composer.
I installed Libre Office 6.2.5.2 x64 on win 10.
Installed ncjoes/office-converter via composer.
Add this code to my php page (for testing) :
and nothing happend. Code seems to stop on "$converter->convertTo('output-file.pdf'); " because all my codes after that not working (not shown on my web page). I tried convert from cmd and it works.
Can U please help. Thanks.
The text was updated successfully, but these errors were encountered: