-
Notifications
You must be signed in to change notification settings - Fork 95
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
Doesn't work in windows #32
Comments
what happens if you run soffice.exe with th the same convert arguments as it is called with this lib?
|
I manually remove // change
let command = `${results.soffice} -env:UserInstallation=file://${installDir.name} --headless --convert-to ${format}`;
// to
let command = `${results.soffice} --headless --convert-to ${format}`; I don't know what happened under the hood but it actually works. what's the meaning of -env argument? |
// line 16
const posixInstallDir = installDir.name.split(path.sep).join(path.posix.sep); // line 49
let command = `-env:UserInstallation=file://${posixInstallDir} --headless --convert-to ${format}`; |
From Pull-request #47 (comment)
Not changing the // line 50
`soffice.exe -env:UserInstallation=file://C:\Users\<USER>\AppData\Local\Temp\soffice-5568-<XXXX>` causing the error @kennylbj mentioned above. I couldn´t find any good documentation to the headless soffice converter and the available parameterization. I believe that the // line 50
let command = `-env:UserInstallation=file://${posixInstallDir} --headless --convert-to ${format}`;` has to be changed to three trailing slashes // line 50
let command = `-env:UserInstallation=file:///${posixInstallDir} --headless --convert-to ${format}`;` |
I have stumbled across the "file URI scheme" which explains why this is working: https://en.wikipedia.org/wiki/File_URI_scheme |
As of Feb 21, running on the same error, a variant of @kennylbj solution worked for me: index.js L46 // let command = `-env:UserInstallation=file://${installDir.name} --headless --convert-to ${format}`;
command = `--headless --convert-to ${format}`; |
Please try #51 |
1.3.3 does not fix this issue? |
This is still an issue on windows 10 with version 1.3.5 |
Converting paths to a file, fixing #32
Came across the same issue on windows. Installed LibreOffice and checked the file path mentioned in the node module to make it work. And then I proceeded with using the buffer according to my use case. Thank you for sharing the resources in the above comments, it helped a lot! |
It works well in OSX but when I deploy it to windows(both in win10 and win7) it failed, and the error is something like:
I do check the bootstrap.ini file and find that content is well defined.
However, I can open soffice.exe and lanch LibreOffice by clicking the file Icon.
LibreOffice version: V7.0 (lastest)
The text was updated successfully, but these errors were encountered: