One thing I tried was do do a convert of a DOCX file to ODT using this method and all I got in the ODT was an XML looking file. bit if I take the same file and open the DOCX in LO then save as ODT it works . Any ideas?

On 12/27/2011 3:02 PM, Luuk wrote:

good to know you got it...

command-line options are:  (from linux)

~>   soffice -help
LibreOffice 3.3  330m19(Build:6)

Usage: soffice [options] [documents...]

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 but no userinteraction at all.
-help/-h/-?   show this message and exit.
-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 are 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 an UNO connect-string to create an UNO acceptor through which
      other programs can connect to access the API
-unaccept=<accept-string>
      Close an acceptor that was created with -accept=<accept-string>
      Use -unnaccept=all to close all open acceptors
-infilter=<filter>
      Force an input filter type if possible
      Eg. -infilter="Calc Office Open XML"
-convert-to output_file_extension[:output_filter_name] [-outdir
ouput_dir] files
      Batch convert files.
      If -outdir is not specified then current working dir is used as
output_dir.
      Eg. -convert-to pdf *.doc
          -convert-to pdf:writer_pdf_Export -outdir /home/user *.doc
-print-to-file [-printer-name printer_name] [-outdir ouput_dir] files
      Batch print files to file.
      If -outdir is not specified then 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

Remaining arguments will be treated as filenames or URLs of documents to
open.



On 27-12-2011 19:25, Scott Jones wrote:

Ah Got it!

CD /D S:\ProgramFiles\LibreOfficePortable

LibreOfficePortable.exe --headless --convert-to PDF --outdir c:\temp
c:\document.rtf

On 12/26/2011 8:56 AM, Luuk wrote:

On 26-12-2011 14:31, Miros?aw Zalewski wrote:

On 26/12/2011 at 14:04, Luuk<[email protected]>   wrote:

Is however 'strange'  that the options on a Windows computer need two
'--'  (i.e. --headless), and on linux just need one '-' (i.e. -headless)

Should this not be more standardized?
As far as I remember, options for Windows command-line programs are
delimited
by slash (e.g. del /f some_file).

So, either way, LO behavior is non-standard for Windows apps. But, on the
other hand, most of Windows users does not use terminal mode - those
who do
perhaps have some experience with Linux shells as well.
You are right, so there are 2 options:
1) Do it the Windows-way, and make LO use the '/' for this stuff.

2) Do it the LO-way, and make sure the parameters are accepted the same
way on every implemented platform.






--
For unsubscribe instructions e-mail to: [email protected]
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Reply via email to