Bug 133932 - Improve help for headless / starting LO from command line
Summary: Improve help for headless / starting LO from command line
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
(earliest affected)
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://help.libreoffice.org/7.1/en-U...
Depends on:
Blocks: Commandline
  Show dependency treegraph
Reported: 2020-06-12 14:42 UTC by Timur
Modified: 2022-03-04 14:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:


Note You need to log in before you can comment on or make changes to this bug.
Description Timur 2020-06-12 14:42:08 UTC
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.
Comment 1 Mike Kaganski 2020-06-12 15:36:13 UTC
(In reply to Timur from comment #0)
> All info from
> https://stackoverflow.com/questions/30349542/command-libreoffice-headless-
> 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...
Comment 2 Timur 2020-06-12 16:14:09 UTC
Ok, even I wrote "all from page" I didn't mean discussion but parameters. 
What I think needs be added is See Also bug.
Comment 3 Timur 2020-09-19 06:59:30 UTC Comment hidden (obsolete)
Comment 4 Timur 2020-11-30 09:57:59 UTC
Also should be added Windows: Command line bulk conversion including wildcards (*?) from bug 48413.
Comment 5 Mike Kaganski 2021-04-29 11:55:05 UTC
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.
Comment 6 Timur 2021-06-11 12:44:36 UTC
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#.
Comment 7 Mike Kaganski 2021-06-11 12:57:22 UTC
(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 ;-)
Comment 8 Timur 2021-06-11 13:50:52 UTC Comment hidden (obsolete)
Comment 9 Mike Kaganski 2021-06-13 14:55:19 UTC
(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 :-)
Comment 10 Timur 2021-07-15 11:48:11 UTC
Another improvement in bug 135762 for export to CSV, should also be documented.