Hi
On 12/17/09 17:14, Mikhail Voytenko wrote:
Hi,
an Impress document can just be exported to PNG using the related filter.
Writer and Spreadsheet documents do not have such export filter. I would
suggest to use ::com::sun::star::datatransfer::XTransferable interface
implemented by the model. Please see the following link for details.
http://api.openoffice.org/docs/common/ref/com/sun/star/datatransfer/XTransferable.html
You could just request the list of the supported formats ( represented
by DataFlavor object ) using XTransferable::getTransferDataFlavors()
call of the interface, and use the one supporting "image/png" mimetype
with XTransferable::getTransferData() call.
Sorry, I have only now recognized that the current XTransferable
implementation generates the image based on the visual area of the
document. So only the visible part of the document will be represented
by the result PNG-image.
Best regards,
Mikhail.
Hope that helps.
Best regards,
Mikhail.
On 12/17/09 14:22, Jos van den Oever wrote:
Hi all,
I'd like to export odt, ods and odp files to stacks of png files. Is
there a method in UNO to do this?
Best regards,
Jos
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]