On 05/10/2013 05:51 AM, José Expósito wrote:
Hi list!
I want to write a OpenOffice extension, preferably in Java, to read an
encrypted document from disk (docx, pptx and xlsx), decrypt them in memory and
load them from a byte array, and of course disable the required menu actions to
avoid export the document decrypted.
Somebody could say me it is possible to do that with an OpenOffice extension
for all types of documents please?
Thank you very much in advance!
I attempted to do this using OpenOffice 2.x with a stream that I
obtained from a database (this is from AndrewBase.odt), and I wrote the
following:
?? Open a document directly into OOo!
To open a document directly in OOo, I must obtain an appropriate file
stream. Unfortunately, the file stream returned from my query is not
sufficient – it does not support all of the required interfaces. I can
accomplish this in Java by creating my own class that supports all of
the requisite interfaces, but I am using Basic in this document.
So, I assume based on what I found then, that yes, you can do it. In
fact, it might even be easy to do, but I have not tested it; well, I
don't really use Java to manipulate OO.
--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
Info: http://www.pitonyak.org/oo.php
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org