Giuseppe Castagno wrote:

Hi Giuseppe,

[... snip ...]
> I had a look at the documentation, but I could not make out how to use > the service Package. I didn't find anything regarding the arguments
> that should be used when instantiating the Package service or using
> its XInitialization interface.

> Besides it uses a deprecated XSingleServiceFactory interface, is it
> safe to use it?

Sorry here, I never tried those UNO Packages myself I am more involved with odf4j.

I had a look to the ODF toolkit, but we need to access all the ODF component, the embedded pictures as well, for example, and not only the xml components, so using UNO stuff should be better.

The ODFPackage class in odf4j is capable of doing so Images can be access as java.awt.Image instance (getImage method) as well as as byte array (getData method).


The goal is to sign the ODF file with a different signature method than the one available in OOo.


Support for signing tough is not yet there in odf4j but if it´s your own method of signing anyway you could add that on top of what is there in odf4j.

Kind regards,
Bernd Eilers

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to