Ability to select a specific office suite with unoconv #273
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added a new --office-version option which allows the unoconv script to ignore versions of office which do not have a soffice --version output that matches the given regular expression. So unoconv can be used on a machine with LibreOffice 4.3 and 5.x and the user can select which version to use to run the conversion.
Sorry about the whitespace in there, I'm happy to clean that up and other things if the idea of the patch looks ok. I'm also not liking my current parseEarlyOptions duplicating the getopt.getopt() call. I'm not sure if this is the optimal way to do this. If a --list-versions option with a --use-version option might be more logical.
I am looking to use this with OfficeShots.org to allow LibreOffice 4.3.x and 5.x to both be installed and to let officeshots select which of those versions should be used for a specific conversion.