In command-line interface, --convert-to prints some diagnostics. E.g., this command: > soffice --convert-to "txt:Text (encoded):UTF8" myfile would produce this diagnostic: > convert /path/to/myfile -> /path/to/myfile.txt using filter : Text (encoded):UTF8 If 'myfile' happens to be opened in a module other than Writer (say, it's a PDF or ODS), then conversion would fail like this: > Error: Please verify input parameters... (SfxBaseModel::impl_store > <file:///path/to/myfile.txt> failed: 0xc10(Error Area:Io Class:Write Code:16)) And there is no hint to user, what the problem was. See e.g. https://ask.libreoffice.org/t/convert-to-txt-text-encoded-utf8-fails/88123. The proposal is to print the module that is used to import the source document, which defines which export filters are available. This could look like: > convert /path/to/myfile -> /path/to/myfile.txt as a Draw document > using filter : Text (encoded):UTF8 and should be done in desktop/source/app/dispatchwatcher.cxx [1] by examining the implemented service of xModel. [1] https://opengrok.libreoffice.org/xref/core/desktop/source/app/dispatchwatcher.cxx?r=1f59cbe6&mo=29729&fi=667#667
Reproduced: Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 008488789092ce980ae9ba029ae375556cfca78f CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded Start working on this.
Baole Fang committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/80d5d2eb70fd84e98cbe19cd4363d12d50ec31f6 tdf#153683: Show the used module in --convert-to It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Baole Fang committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/70b8adb100499178ad52f23f7c0a1b7a31129921 tdf#153683: Refactor fix It will be available in 7.6.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.