Interestingly enough, -print-to-file supports space-separated lists of all parameters, which means that different printers can print different files to different directories all at the same time. Still another option is -print-to-file PRINTERNAME OUTPUTDIRECTORY FILES, which is useful for generating PostScript files (as long as the printer supports PostScript, of course). Neither returns any output to the command-line prompt. Alternatively, you can specify a printer with -pt PRINTERNAME to print a space-separated list of files wherever you want. Using -p, you can print a space-separated list of files to the default print. Other options let you print files without opening the editing window. All users might be interested in the -nologo option to start LibreOffice or OpenOffice without a splash screen or -norestore to disable file recovery after a crash to ensure a slightly faster – or at least less annoying – startup time. Similarly, you can start a slide show directly – instead of opening it to edit – with -show FILENAME.odp.ĭevelopers might be interested in -headless, which opens the application without a GUI, or at least -invisible, which opens the application so its features are open only via the API. Alternatively, if you know the template you want to use, -n TEMPLATE opens a new document using the template specified. If you want to start work directly, you can open an existing file with -o FILENAME or a read-only copy with -view FILENAME. Less obvious is -web, which opens Writer in the Web Layout view, and -global, which opens a new master document in Writer. The most obvious way to modify this basic command is with options that start with a specific module: -writer for Writer, -calc for Calc, -draw for Draw, -impress for Impress, and -math for Math. Others, like -display, are useful only on Linux, but many of the others are useful on any platform. Some of the options listed by the -help option are obsolete, such as -quickstart and -nofirststartwizard, which refer to features no longer in recent versions.
Openoffice linux command code#
LibreOffice and OpenOffice Command Optionsīoth LibreOffice and Apache OpenOffice start with the command soffice, which is short for StarOffice, the name of the application before Sun Microsystems released the code in July 2000. Like many command-line tools, they allow you to perform functions more easily than on the desktop or do things that are not even options in the editing window. Still, whether you are a home user or a developer who wants to summon LibreOffice as part of a more elaborate script, these tools can be worth hunting down. You may need to search for these utilities, because they are not packaged for all distributions. Additionally, of the various supplementary scripts that have been written for their predecessor, at least two sets of utilities continue to be useful for manipulating their files from the command line. You can also print and convert files from the command line, in some cases more easily than from the desktop. However, you might not know that the way these applications open is determined by command-line options. LibreOffice and Apache OpenOffice are primarily desktop applications.