SUMMARY Not able to "cat" the text contents of .ppt or .odp files to stdout. STEPS TO REPRODUCE: Installed the LibreOffice dev 7.5 version Download test files from https://bugs.kde.org baloo_test_Libreoffice_7.4.2.3.doc https://bugs.kde.org/attachment.cgi?id=153915 baloo_test_libreoffice.ppt https://bugs.kde.org/attachment.cgi?id=153918 baloo_test_libreoffice.xls https://bugs.kde.org/attachment.cgi?id=153919 And try to stream the contents the file to stdout, in this case focussing on the .ppt: $ libreofficedev7.5 --cat baloo_test_Libreoffice_7.4.2.3.doc $ libreofficedev7.5 --cat baloo_test_libreoffice.ppt OBSERVED RESULTS: $ libreofficedev7.5 --cat baloo_test_Libreoffice_7.4.2.3.doc This works, the text contents were displayed: It also works when the .doc file was saved as an .odt $ libreofficedev7.5 --cat baloo_test_libreoffice.ppt Failed with: javaldx: Could not find a Java Runtime Environment! Warning: failed to read path from javaldx warn:sd:3337:3337:sd/source/ui/framework/tools/FrameworkHelper.cxx:210: DBG_UNHANDLED_EXCEPTION in lcl_getViewShell exception: com.sun.star.uno.RuntimeException message: "unsatisfied query for interface of type com.sun.star.lang.XUnoTunnel! at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/include/com/sun/star/uno/Reference.hxx:85" warn:sd:3337:3337:sd/source/ui/framework/tools/FrameworkHelper.cxx:210: DBG_UNHANDLED_EXCEPTION in lcl_getViewShell exception: com.sun.star.uno.RuntimeException message: "unsatisfied query for interface of type com.sun.star.lang.XUnoTunnel! at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/include/com/sun/star/uno/Reference.hxx:85" warn:sd:3337:3337:sd/source/ui/framework/tools/FrameworkHelper.cxx:210: DBG_UNHANDLED_EXCEPTION in lcl_getViewShell exception: com.sun.star.uno.RuntimeException message: "unsatisfied query for interface of type com.sun.star.lang.XUnoTunnel! at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/include/com/sun/star/uno/Reference.hxx:85" warn:sd:3337:3337:sd/source/ui/framework/tools/FrameworkHelper.cxx:210: DBG_UNHANDLED_EXCEPTION in lcl_getViewShell exception: com.sun.star.uno.RuntimeException message: "unsatisfied query for interface of type com.sun.star.lang.XUnoTunnel! at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/include/com/sun/star/uno/Reference.hxx:85" warn:sd:3337:3337:sd/source/ui/framework/tools/FrameworkHelper.cxx:210: DBG_UNHANDLED_EXCEPTION in lcl_getViewShell exception: com.sun.star.uno.RuntimeException message: "unsatisfied query for interface of type com.sun.star.lang.XUnoTunnel! at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/include/com/sun/star/uno/Reference.hxx:85" warn:sd:3337:3337:sd/source/ui/framework/tools/FrameworkHelper.cxx:210: DBG_UNHANDLED_EXCEPTION in lcl_getViewShell exception: com.sun.star.uno.RuntimeException message: "unsatisfied query for interface of type com.sun.star.lang.XUnoTunnel! at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/include/com/sun/star/uno/Reference.hxx:85" warn:sfx.doc:3337:3337:sfx2/source/doc/sfxbasemodel.cxx:3166: Storing has failed, no error is set! Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///tmp/lu3337b5u3v.tmp/lu3337b5u3w.tmp> failed: 0xc10(Error Area:Io Class:Write Code:16) at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/sfx2/source/doc/sfxbasemodel.cxx:3215 at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/sfx2/source/doc/sfxbasemodel.cxx:1789) Opening the file and saving as an .odp did not help, it gave the same error EXPECTED RESULTS: That it is possible to "cat" a .ppt or .odp file in the same way as a .doc or .odt VERSION: $ libreofficedev7.5 --version LibreOfficeDev 7.5.0.0.alpha1 8f34b0d40e149b7274a1aa4ce0b33ddbf825ee52 This dev version was used after following the discussion in Bug 150846 ADDITIONAL INFORMATION The attachments are part of a reported KDE free text indexing issue https://bugs.kde.org/show_bug.cgi?id=438455 The indexing normally uses catdoc (for .doc files) and catppt (for .ppt) to extract the text contents. The possibility of using libreoffice was investigated in: https://bugs.kde.org/show_bug.cgi?id=438455#c34 Attempting to convert to a text file, as opposed to streaming it, also fails: $ libreofficedev7.5 --headless --convert-to "txt:Text (encoded):UTF8" baloo_test_libreoffice.ppt javaldx: Could not find a Java Runtime Environment! Warning: failed to read path from javaldx warn:sd:4298:4298:sd/source/ui/framework/tools/FrameworkHelper.cxx:210: DBG_UNHANDLED_EXCEPTION in lcl_getViewShell exception: com.sun.star.uno.RuntimeException message: "unsatisfied query for interface of type com.sun.star.lang.XUnoTunnel! at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/include/com/sun/star/uno/Reference.hxx:85" warn:sd:4298:4298:sd/source/ui/framework/tools/FrameworkHelper.cxx:210: DBG_UNHANDLED_EXCEPTION in lcl_getViewShell exception: com.sun.star.uno.RuntimeException message: "unsatisfied query for interface of type com.sun.star.lang.XUnoTunnel! at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/include/com/sun/star/uno/Reference.hxx:85" warn:sd:4298:4298:sd/source/ui/framework/tools/FrameworkHelper.cxx:210: DBG_UNHANDLED_EXCEPTION in lcl_getViewShell exception: com.sun.star.uno.RuntimeException message: "unsatisfied query for interface of type com.sun.star.lang.XUnoTunnel! at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/include/com/sun/star/uno/Reference.hxx:85" warn:sd:4298:4298:sd/source/ui/framework/tools/FrameworkHelper.cxx:210: DBG_UNHANDLED_EXCEPTION in lcl_getViewShell exception: com.sun.star.uno.RuntimeException message: "unsatisfied query for interface of type com.sun.star.lang.XUnoTunnel! at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/include/com/sun/star/uno/Reference.hxx:85" warn:sd:4298:4298:sd/source/ui/framework/tools/FrameworkHelper.cxx:210: DBG_UNHANDLED_EXCEPTION in lcl_getViewShell exception: com.sun.star.uno.RuntimeException message: "unsatisfied query for interface of type com.sun.star.lang.XUnoTunnel! at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/include/com/sun/star/uno/Reference.hxx:85" warn:sd:4298:4298:sd/source/ui/framework/tools/FrameworkHelper.cxx:210: DBG_UNHANDLED_EXCEPTION in lcl_getViewShell exception: com.sun.star.uno.RuntimeException message: "unsatisfied query for interface of type com.sun.star.lang.XUnoTunnel! at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/include/com/sun/star/uno/Reference.hxx:85" convert /home/test/Downloads/baloo_test_libreoffice.ppt -> /home/test/Downloads/baloo_test_libreoffice.txt using filter : Text (encoded):UTF8 warn:sfx.doc:4298:4298:sfx2/source/doc/sfxbasemodel.cxx:3166: Storing has failed, no error is set! Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///home/test/Downloads/baloo_test_libreoffice.txt> failed: 0xc10(Error Area:Io Class:Write Code:16) at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/sfx2/source/doc/sfxbasemodel.cxx:3215 at /home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/sfx2/source/doc/sfxbasemodel.cxx:1789) However converting to a .pdf works so there's no problem importing the file, the issue is the export to text. This is a parallel report to Bug 152446, refering to .ppt rather than .xls files.
Note that the initial implementation of --cat in bug 70625 only handled the text files; that is reflected in the help [1] explicitly mentioning *text* files; and the original issue is open with the comment: > This needs extending to spreadsheet & impress formats [1] https://help.libreoffice.org/7.4/en-US/text/shared/guide/start_parameters.html?DbPAR=SHARED *** This bug has been marked as a duplicate of bug 70625 ***