cannot I use terminal convert pdf to xlsx?

I have tried many times
/Applications/LibreOffice.app/Contents/MacOS/soffice --infilter=“writer_pdf_import” --invisible --quickstart --convert-to xlsx --outdir app/public/convert/pptx app/public/convert/pptx/d80ee8d0-ea15-11ea-8405-930e85100a7b.pdf

But it tell’s my don’t have filter

What do you expect from a PDF → XLSX conversion? That sounds pretty weird for me.

I must agree with @anon73440385 on this one.

Also, the folder in use (designated as both source and target) has a name which suggests graphical content (pptx is the filename extension for powerpoint presentations) for which a spreadsheet will usually be exactly the wrong tool.