Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

tcluno and OpenOffice

117 views
Skip to first unread message

Matthias Meier

unread,
Mar 12, 2012, 5:20:53 AM3/12/12
to
Hello,

how do i get an OpenOffice Document exported as pdf-File by tcluno?

The OpenOffice-Basic code is:

-----
dim args3(1) as new com.sun.star.beans.PropertyValue

args3(0).Name = "URL"
args3(0).Value = "file:///tmp/test1.pdf"
args3(1).Name = "FilterName"
args3(1).Value = "writer_pdf_Export"

dispatcher.executeDispatch(document, ".uno:ExportDirectToPDF", "", 0, args3())
-----




How do i get this 'translated' into tcluno?


Thanks,
Matthias

Matthias Meier

unread,
Mar 12, 2012, 11:11:45 AM3/12/12
to
Finaly i've got it:



...
set UNO(OOoapp) [::tcluno_soffice::initDesktop]

set DocFilterSequence [$UNO(OOoapp) tcluno::createUnoSequence Any]
set UNO(Writer,doc) [$UNO(OOoapp) loadComponentFromURL "file:///tmp/in.doc" "_default" 0 $DocFilterSequence]

set filterSequence [$UNO(OOoapp) tcluno::createUnoSequence Any]



set filter [$UNO(OOoapp) tcluno::createUnoStructHelper \
com.sun.star.beans.PropertyValue [list FilterName -1 writer_pdf_Export 0]]

$UNO(OOoapp) tcluno::appendUnoSequence $filterSequence $filter
$UNO(Writer,doc) storeToURL "file:/tmp/test.pdf" $filterSequence



Is there a 'easy' way to find Information about the OpenOffice-Interface?
(Right now it's more guessing then developing)



Matthias





Matthias Meier schrieb:

DDG

unread,
Mar 15, 2012, 11:34:47 AM3/15/12
to
Which version of OpenOffice and tcluno you are using??

As far as I know development stopped with OpenOffice 1.1 and
tcluno0.2.1 6 years ago.

regards,
Detlef

Matthias Meier

unread,
Mar 16, 2012, 4:54:59 AM3/16/12
to DDG
tcluno is 0.25
tclurtp is 0.25
OpenOffice is 2.0 but i also tested with 3.2.0



Matthias


DDG schrieb:

Arnulf Wiedemann

unread,
Mar 28, 2012, 4:24:59 AM3/28/12
to
tcluno should also run with OpenOffice version 2.x and 3.x
With LibreOffice there is a problem in LibreOffice, which also appears
for pyuno (same interface), so I hope there will be a fix there.
You may need the source code from cvs, as there are some fixes there,
which are not in the latest official version

Arnulf
0 new messages