How to set password to a document using OOo API

Java, C++, C#, Delphi... - Using the UNO bridges
Post Reply
gopusrinivas
Posts: 6
Joined: Mon Nov 07, 2011 5:29 pm

How to set password to a document using OOo API

Post 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.
window7 open office 3.3
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

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

Post 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
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply