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

LibreOffice not fund on windows #41

Closed
CMAraujo87 opened this issue Jul 19, 2019 · 10 comments · Fixed by #52
Closed

LibreOffice not fund on windows #41

CMAraujo87 opened this issue Jul 19, 2019 · 10 comments · Fixed by #52
Labels
P: Low S: on hold The issue is on hold until further notice T: bug Functionality that does not work as intended/expected

Comments

@CMAraujo87
Copy link
Contributor

CMAraujo87 commented Jul 19, 2019

When trying to convert to pdf file, I got an error telling me that LibreOffice is not installed.

Scenario:
OS: Windows 7 SP1 (x64)
LibreOffice Version: 6.2.5.2 (x64)
soffice.exe Path: 'C:/Program Files/LibreOffice/program/soffice.exe'

The current filter cannot find this path: (Line 497 of file "converter.js")
var _windowsDirnamePattern = /^LibreOffice \d+(?:\.\d+)?$/i;

I could correct it locally by changing it to:
var _windowsDirnamePattern = /^LibreOffice( \d+(?:\.\d+)?)?$/i;

@marcquesmouton
Copy link

THANK you soooo much @CMAraujo87 you saved me

@buster95
Copy link

buster95 commented Sep 5, 2019

I don't like idea that depends on LibreOffice

@dgrelaud
Copy link
Member

dgrelaud commented Sep 5, 2019

I should fix it on Windows. Sorry for that.

I don’t like idea that depends on LibreOffice

Libreoffice is not mandatory if you do not convert the template to another format.

At the beginning, I tried to avoid LibreOffice because I wanted a tool really light and highly performant. But after many researches, I have never found a solution to convert a document more reliable than LibreOffice and which can run everywhere.

@buster95
Copy link

buster95 commented Sep 5, 2019

I should fix it on Windows. Sorry for that.

I don’t like idea that depends on LibreOffice

Libreoffice is not mandatory if you do not convert the template to another format.

At the beginning, I tried to avoid LibreOffice because I wanted a tool really light and highly performant. But after many researches, I have never found a solution to convert a document more reliable than LibreOffice and which can run everywhere.

yes I know but, I believe that it possible change file type buffer into another file type buffer, for example exists a library word2pdf that convert docx files into pdf, too carbone should be add possibility for use dataUri with base64 format

@buster95
Copy link

buster95 commented Sep 5, 2019

Do you research if you can included LibreOffice libraries for each OS?? without had LibreOffice installation

@steevepay steevepay added P: Low S: on hold The issue is on hold until further notice T: bug Functionality that does not work as intended/expected labels Oct 8, 2019
@steevepay
Copy link
Member

@buster95 If you don't want library installation, you should use Docker by using our "ideolys/carbone-env-docker" image, check out. It's a Carbone environment ready to use: node 8 image with Libreoffice installed. Reach me if you need help to setup.
Also, feel free to Fork the project and submit Pull Requests to make improvements !

@MohammedHafiz
Copy link

can we use carboneoio with out LibreOffice ?? I want to use this in my project , so there any issues if I use carboneio without LibreOffice

@QuantumSolver
Copy link

can we use carboneoio with out LibreOffice ?? I want to use this in my project , so there any issues if I use carboneio without LibreOffice

From what i understand, yes. LibreOffice from the readme states is mainly for document conversion. example from docx to pdf. so if u want a docx report you have to use a dock template.

@MohammedHafiz
Copy link

I didn't want docx report. For my use, I need only PDFs. So is it necessary to install LibreOffice ??

@CMAraujo87
Copy link
Contributor Author

can we use carboneoio with out LibreOffice ?? I want to use this in my project , so there any issues if I use carboneio without LibreOffice

Carboneio uses LibreOffice to convert the document into PDF. You won't need it if you don't want to convert or if you'll use another tool for the conversion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P: Low S: on hold The issue is on hold until further notice T: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants