libreoffice5.0--invisible--convert-to pdf:writer_pdf_export--outdir "/root/" "Bb.xls"
Nine domain technology Zhu Liangliang 2015/12/1 10:11:57
Options:
--minimized Keep startup bitmap minimized.
--invisible no startup screen, no default document and no UI.
--norestore suppress Restart/restore after fatal errors.
--quickstart Starts the QuickStart service
--nologo don ' t show startup screen.
--nolockcheck don ' t check for remote instances using the installation
--nodefault don ' t start with an empty document
--headless like invisible and no user interaction at all.
--help/-h/-? Show this message and exit.
--version Display the version information.
--writer Create new text document.
--CALC Create new Spreadsheet document.
--draw create new Drawing.
--impress Create new presentation.
--base Create new database.
--math Create new formula.
--global Create new global document.
--web Create new HTML document.
-O open documents regardless whether they is templates or not.
-N always open documents as new files (use as template).
--display <display>
Specify x-display to use in unix/x11 versions.
-P <documents...>
Print the specified documents on the default printer.
--pt <printer> <documents...>
Print the specified documents on the specified printer.
--view <documents...>
Open the specified documents in viewer-(readonly-) mode.
--show <presentation>
Open the specified presentation and start it immediately
--accept=<accept-string>
Specify a UNO connect-string to create a Uno acceptor through which
Other programs can connect to access the API
--unaccept=<accept-string>
Close an acceptor that is created with--accept=<accept-string>
Use--unnaccept=all to close all open acceptors
--infilter=<filter>[:filter_options]
Force an input filter type if possible
Eg. --infilter= "Calc Office Open XML"
--infilter= "Text (encoded): UTF8,LF,,,"
--convert-to output_file_extension[:output_filter_name[:output_filter_options] [--outdir output_dir] Files
Batch convert files (implies--headless).
If--outdir is not specified then the current working dir is used as Output_dir.
Eg. --convert-to PDF *.doc
--convert-to Pdf:writer_pdf_export--outdir/home/user *.doc
--convert-to "html:xhtml Writer File:utf8" *.doc
--convert-to "Txt:text (encoded): UTF8" *.doc
--print-to-file [-printer-name printer_name] [--outdir output_dir] Files
Batch print files to file.
If--outdir is not specified then the current working dir is used as Output_dir.
Eg. --print-to-file *.doc
--print-to-file--printer-name nasty_lowres_printer--outdir/home/user *.doc
--cat files
Dump text content of the files to console
Eg. --cat *.odt
--pidfile file
Store soffice.bin pid to file.
-env:<var>[=<value>]
Set a bootstrap variable.
Eg. -env:userinstallation=file:///tmp/test to set a Non-default the user profile path.
Remaining arguments is treated as filenames or URLs of documents to open.
LibreOffice to Office documents as PDF documents