https://bugs.freedesktop.org/show_bug.cgi?id=45026
Bug #: 45026
Summary: Command Line invokes empty document if LibreOffice
Writer already running
Classification: Unclassified
Product: LibreOffice
Version: unspecified
Platform: x86 (IA32)
OS/Version: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
AssignedTo: [email protected]
ReportedBy: [email protected]
I use LibreOffice to create PDF files from writer .odt files for my product
build process. As such, I do the equivalent of the following command from my
build scripts...
swriter -invisible -nodefault -nolockcheck -headless -writer
--convert-to pdf -outdir "%outdir%" "%tofile%"
It works just fine standalone, good stuff!!! But...
If I have a "manually run" LibreOffice writer instance running with an open
document (whether it's minimised or not), I always get a new empty "Untitled
<nnn>" window for each document I convert in my build process.
This is rather frustrating because it works fine if there's no window already
open when I invoke the build.
I've even tried "soffice -writer" instead and it doesn't seem to make a
difference... Standalone works fine, already open window get's an "Untitled
<nnn>" window for each document.
Note: I substitute a Window's full path for %outdir% and a pathless
filename in %tofile%, running with the "current directory" set
to the directory the file %tofile% is in.
Note: I've tried all the combinations of "-headless" "-invisible"
"-nodefault" and everything else I can think of in different
combinations.
Note: I use Window's kernel32.dll CreateProcess to invoke the swriter
instead of invoking it from cmd.exe, so it's not a problem having
to do with cmd.exe -- I control the process invocation in my own
C++ code, so there's no other code involved here except my code,
LibreOffice, Java runtime, and Windows itself!!!
Please help.
Thanks,
Bruce Ferris
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs