There's https://help.libreoffice.org/7.1/en-US/text/shared/guide/start_parameters.html as help for starting LO from command line.
But bugs shows it should be improved, example bug 63324 and bug 132558.
All info from https://stackoverflow.com/questions/30349542/command-libreoffice-headless-convert-to-pdf-test-docx-outdir-pdf-is-not should be addded.
(In reply to Timur from comment #0)
> All info from
> convert-to-pdf-test-docx-outdir-pdf-is-not should be addded.
... even that is wrong, like "your --convert-to pdf is not sufficient. It needs to be: --convert-to pdf:writer_pdf_Export"? ;-P
Actually, it would be nice to discuss some patch in gerrit: what should be added, and what needs to be changed...
Ok, even I wrote "all from page" I didn't mean discussion but parameters.
What I think needs be added is See Also bug.
I don't know why this wasn't confirmed, spoiling stats, I'll do it myself.
Also should be added Windows: Command line bulk conversion including wildcards (*?) from bug 48413.
Information about using user profiles, and its effects (what happens when two instances use the same profile: the second instance does not work itself, but passes its arguments to the first one, which may lead to headless secondary instance bring dialogs in the primary GUI instance). See tdf#141960.
Hi Mike. I have a need/question that I hope you may answer and somewhat is related to this bug, could be added at least as a tip.
Can number of pages be read in headless mode? I guess it would depend on filetype.
I'm inspired by finding a number in PDF as explained in https://stackoverflow.com/questions/14704274/how-to-write-shell-script-for-finding-number-of-pages-in-pdf#.
(In reply to Timur from comment #6)
There's no command line facility in LibreOffice for that. It would be possible to use macros for that; or to control soffice process from external script using UNO, but that's not a command line interface. Or to export to PDF, and then use one of the suggestions on the StackOverflow ;-)
Thanks. One (or two) more questions, if you may:
UNO is unoconv? What's the general comparison between LO headless and unoconv?
(In reply to Timur from comment #8)
> UNO is unoconv?
unoconv is a third-party utility, using UNO to control soffice.
> What's the general comparison between LO headless and unoconv?
No idea :-)
Another improvement in bug 135762 for export to CSV, should also be documented.