Hello!
I have a macro which I want to be executed whenever a Writer document is
being converted to a PDF. So I wrote my macro and assigned it to the
appropriate event. And it works. At least, from within a running
GUI-Session.
If I try to do the conversion via command line, I get this error message:
<----- snip ----->
BASIC runtime error.
Property or method not found: CurrentController
<----- snap ----->
The command I use to invoke LibreOffice is:
<----- snip ----->
lowriter --convert-to pdf:writer_pdf_Export test.odt
<----- snap ----->
It is later planned to have it run in headless mode on a machine with no X
server, but I removed those options to get an error message.
I assume that in this mode, there is no "CurrentController" (because there
is no Writer window?) and hence, the error. But what can I do about it?
Create one myself? How?
System is Kubuntu 13.04 with LibreOffice 4.0.2.