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

Not working under windows #34

Open
shangyanjin opened this issue Jun 18, 2021 · 2 comments
Open

Not working under windows #34

shangyanjin opened this issue Jun 18, 2021 · 2 comments

Comments

@shangyanjin
Copy link

Not working under windows.

@Raja-Omer-Mustafa
Copy link

Raja-Omer-Mustafa commented Jul 30, 2021

Works with WAMP 3.2.5 Php 8.0.7
Need to Add C:\Program Files\LibreOffice\program" in environmental Variable after installing LibreOffice
use this code to initialize a converter $converter = new OfficeConverter("sample.docx", "sample.pdf", "soffice.bin ", false);
Still having problem using XAMP and down php versions
use can use this command on CMD on windows to check if LibreOffice configure successfully soffice.bin --headless --convert-to pdf "369772.docx" --outdir "369772.pdf"

@drsoong
Copy link

drsoong commented Dec 29, 2022

Re. XAMPP I believe the issue is that the Windows user may not have write rights. I changed user rights for the specific folder.
In addition (not related to the issue here but still imporant) add the libre office path to your environmental variables e. g. something like this C:\Program Files\LibreOffice\program and initialize the converter as said above like $converter = new OfficeConverter("sample.docx", "sample.pdf", "soffice.bin ", false); This worked for me.

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