Page 1 of 1

How to set password to a document using OOo API

PostPosted: Tue Feb 28, 2012 10:26 am
by gopusrinivas
Hi All,

I need help and my requirement is setting password to my open office document with out opening using OOo API using java program.

Re: How to set password to open office document using OOo AP

PostPosted: Tue Feb 28, 2012 11:16 am
by Villeroy
http://www.openoffice.org/api/docs/comm ... entFromURL
Parameter Arguments
these arguments specify component or filter specific behavior

For example, "ReadOnly" with a boolean value specifies whether the document is opened read-only. "FilterName" specifies the component type to create and the filter to use, for example: "Text - CSV". For more information see ::com::sun::star::document::MediaDescriptor.

http://www.openoffice.org/api/docs/comm ... l#Password