Convert-to isn't working in Debian 9, Libreoffice 7.3

Convet-to command execute perfectly with no error but it generate no output, it doesn’t perform any conversion, I’ve used 5.x it was running fine and suddenly stopped working and i updated libre to 7.3 hoping that it would work but still it is not working…

Something stopped working, and continues to fail across new versions. Sounds like a persistent setting or an OS thing. Can you give the exact convert-to command you are using?

Every command has failed to work.

These are the commands:

libreoffice --headless --convert-to {$outputExtension} {$oriFile} --outdir {$outputDirectory}

libreoffice --headless --infilter=‘impress_pdf_import’ --convert-to {$outputExtension}:‘Impress MS PowerPoint 2007 XML’ {$oriFile} --outdir {$outputDirectory}

libreoffice --headless --infilter=‘writer_pdf_import’ --convert-to {$outputExtension}:‘MS Word 97’ {$oriFile} --outdir {$outputDirectory}

It doesn’t convert any file

Sorry I don’t know my way around Debian, but if install directory is the same as Ubuntu, I have this working for 7.2.5.X:

/opt/libreoffice7.2/program/soffice --headless --convert-to xlsx Filteres.ods

Not sure why a bad link or path wouldn’t give you an error message, but you might try directly referencing soffice like this if you haven’t already? You didn’t by chance install via a snap or appimage at some point? (Not to insult your intelligence…).

Install directory is the same and i also have experience with ubuntu, it’s working on ubuntu, i know the commands, i’m using on ubuntu but on debian it just doesn’t convert, other commands are working fine just the convert one isn’t working…

I could likely get a chance to install Debian 9 fresh with LO 7.3 this weekend and at least see if it is a direct conflict that causes things to fail silently. Then you’d have enough confirmation for a bug report, I think.

Can you give me the exact versions of Debian and LO that you are using? Also, give me a couple specific conversions you are doing. I get that they all fail, but for a bug report it might get addressed all the quicker if the conditions are ideally controlled.

Ftr: tdf#147652

pdf to doc, docx to pdf and pdf to pptx conversions and Debian 9, LO 7.3.0…

Converting within a directory everything works as expected for me in Debian 11 and LO 7.2.5. That is, this works with source and target in current directory:

/usr/bin/soffice --headless --convert-to xlsx HelloWorld.ods

HelloWorld.xlsx pops up in the directory as expected.

In Debian 9 it isn’t working…

What exactly is not working?
For example this

libreoffice --headless --convert-to {$outputExtension} {$oriFile} --outdir {$outputDirectory}

isn’t even a valid command line for two reasons,

  • the environment variables shouldn’t be {$...} but ${...} instead
  • all option parameters should go before the file name(s) to convert

So this instead

libreoffice --headless --convert-to ${outputExtension} --outdir ${outputDirectory} ${oriFile}

might work.

I’ve tried a lot of commands and the commands i referred are used in the ncjoes package in laravel, which were working fine in LO 5 before but suddenly it stopped working and never worked again despite i’ve updated LO to 7.3…

Whatever ncjoes might do… did you try the example I gave on the command line?

Yes i did, but the issue didn’t solved with that the server support have uninstalled LO and Installed LO 5 and now its running…

Ok. So we’ll never know what the actual problem was.

Support said libreoffice isn’t well supported in debian…

LOL. Rene will be happy to learn that.
FTR: the Debian maintainer of LibreOffice package is one of the most active community members and contributors to the project, who makes great effort to keep LibreOffice well-supported on all supported Debian versions and architectures. If only all distros had that level of support!
(But those words from your support might tell something about their level…)

Maybe they are busy preparing to update debian, as V9 reaches even end of LTS at end of June - only 3 month left…