[Libreoffice-bugs] [Bug 48413] : Command line bulk conversion from doc to odf not working

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Apr 29 10:05:03 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=48413

--- Comment #12 from Jacopo Tedeschi <jhack89 at gmail.com> ---
I can confirm on LibreOffice version  6.4.3.2 (x64) for Windows 10 Pro x64 the
bug is still there. Wildcards should be definitely handled nicely by the
soffice executable in headless mode.

Example of not working command:
"C:\Program Files\LibreOffice\program\soffice.exe" -ArgumentList "--headless
--convert-to pdf *.odt

Workaround: if anyone is in search of a temporary solution, you may use a
powershell or batch script. Here is a simple example Powershell script I wrote
to convert all odt documents inside a folder to pdf:

Get-ChildItem *.odt | Foreach {
  Write-Host "Converting `"$_`" ..."
  Start-Process -Wait -FilePath "C:\Program
Files\LibreOffice\program\soffice.exe" -ArgumentList "--headless --convert-to
pdf `"$_`""
}

You may:
- change "Get-ChildItem *.odt" to your favourite input format. Ex.
"Get-ChildItem *.docx"
- add -Recurse to it if you need to convert files in nested folders. Ex.
"Get-ChildItem *.odt -Recurse"
- change "--convert-to pdf" to your needed output format. Ex. "--convert-to
docx"

Hope this issue gets addressed.
Good luck everyone!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200429/951f2b9b/attachment.htm>


More information about the Libreoffice-bugs mailing list