Glad this got you started in the right direction. See inline for more...
On Thu, 10 Apr 2014 19:06:51 -0500
Joe B <email@example.com> wrote:
This bug desperately needs to be fixed.
Yes, I agree. Should someone open a bug report, or is there one
already? Anybody know more about this? I haven't actually gotten as far
as registering an account for the bugtrack system before...
Also, and most importantly, it appears to me that this command cannot
run in batch mode? In the example given at the website I linked
above, the format of the command only takes one file at a time. How
would it process multiple files at a time, if the final parameter is
a file name? Wouldn't it need to be a directory name?
Well, no. It does take a filename, but according to the help you can use
wildcard characters, like in my example in the previous mail. So for
example to convert all the ".htm" files in a directory, you would use
"*.htm" as the file name, like so
soffice.exe --convert-to pdf *.htm
And, as commented before, you might want to give an output
directory with "--outdir", and might need to specify "--headless".
Note that according to the URL you gave, not using --headless will open
a blank LO window and not finish until you close that, and using
--headless when LO is already open will *silently do nothing*.
Also, according to the URL you gave, wildcard characters don't
actually work in the filename, so you have to use a batch script. An
example is given in the second last answer. Note that the example given
is supposed to be run straight from the command line, but could also be
placed in a batch file, although you may have to make the change
recommended in the answer, and you will *have* to change the "(*.odg)"
to "(*.htm)" in your case. To make a batch file, simply copy and
paste the commands into a plain text file, save it, then rename
it to change the ".txt" extension to ".bat". Then you should be able to
run the file (either by double clicking or from the command line), and
it will process all the .htm files in the same directory as the batch
You could also write the same batch file in python, as I seem to recall
you stating you were at least a little familiar with python.
You'll have to experiment to see if you can use wildcard characters or
not, as they would be by far the easiest solution. And if they don't
work, a bug should *definitely* be filed.
Hope this gets you all the way to a solution.
To unsubscribe e-mail to: firstname.lastname@example.org
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
Impressum (Legal Info)
: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (MPLv2
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our trademark policy