-
Notifications
You must be signed in to change notification settings - Fork 288
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 (X)HTML to ODT does not produce 'real' ODT documents, but HTML documents that don't behave like 'regular' ODT documents in LibreOffice #297
Comments
The problem reproduces the same with xhtml files. |
Maybe some extra parameters need to be passed to the converter in order to obtain a correct result? |
With some debug help, I managed to guess that what would be needed would be to force the filter that is used when converting from Apparently this needs to be set in the converter builder, like this:
However, I don't really know what are the implications of this, what does it actually mean to make this change:
|
So IMO this should be fixed there: https://github.com/sbraconnier/jodconverter/blob/master/jodconverter-core/src/main/resources/document-formats.json#L11 |
@lucaa @surli In order to be able to manage this in the document-formats.json, I will have to add a new DocumentFamily to seperate text documents from web documents. I plan to release a new jodconverter version in the next few days. I'll try to implement this before the release. |
It will be included in the next version |
Steps to reproduce:
In my case, my locally installed libreoffice is LibreOffice 7.3.3.2 but it happens the same with older versions of LibreOffice - I can find which versions if it's relevant.
Expected result:
Actual result:
Note: When converting using libreoffice (the same one) in command line, the result is correct:
Result basic.odt .
The text was updated successfully, but these errors were encountered: