Some command-line functions ...
Use LibreOffice to setup your browser home page
So one way that I use portable LibreOffice conversion is to create a dynamic home page that opens up everytime I start my browser so that I always have important tools and topics right in front of me. I used to leverage
KompoZer for this, but more recently I switched to
SeaMonkey's editor and then finally (because I use it for everything else)
LibreOffice. I then convert via batch file:
Code: Select all
C:\Temp\PortableApps\LibreOfficePortablePrevious\LibreOfficePortable.exe --headless --convert-to HTML --outdir .\web C:\Temp\Homepage.odt
This process converts the ODT file into HTML format, saved under the
web subfolder in the temp directory. That auto-updates the existing
Homepage.html file currently there. From there I just reload or restart my browser to see the latest-and-greatest homepage.
Use LibreOffice to batch convert files
One key element is the way you can use LO to convert things in batch, but it takes some doing. Note that I've had mixed results using this with the Portable install, meaning you may need to install the program. Below is a batch file created for Writer files (ODT) to PDF.
Code: Select all
set path=%path%;C:\Program Files (x86)\LibreOffice 4\program
for %%f in (*.odt) do (
soffice.exe --headless --convert-to pdf --outdir "C:\tmp" %%f
)
Source: scroll down to the post by the user rafik:
https://ask.libreoffice.org/en/question ... parameter/
Feedback on this is very welcome.