This question has been asked many times, but I haven’t found an answer that works for me on my Mac.
/Applications/LibreOffice.app/Contents/MacOS/soffice --convert-to "txt:Text (encoded):UTF8" --headless Test.pdf
gets the response:
convert /path/to/Test.pdf -> /path/to/Test.txt using filter : Text (encoded):UTF8
Error: Please verify input parameters... (SfxBaseModel::impl_store <file:///path/to/Test.txt> failed: 0xc10(Error Area:Io Class:Write Code:16))
- I’ve tried with and without
--headless
, with and without LibreOffice already running. (When not initially running, it temporarily appears in my task bar, then disappears after printing the error.) - I’ve also tried with and without an
--outdir <dir>
to which I have write permissions - The command line arguments all match those printed by
soffice --help
, including the specific output filter,"txt:Text (encoded):UTF8"
Given that the variants I’ve tried are included in already-provided answers to this question, I’m hoping somebody can tell me some missing part of the incantation.
MacOS 12.5 (Monterey)
LibreOffice 7.1.6.2 0e133318fcee89abacd6a7d077e292f1145735c3