PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

XML Publisher .pdf password

edited Sep 4, 2012 9:39AM in PeopleTools and Lifecycle Management - PSFT (MOSC) 3 commentsAnswered
We are creating a .pdf output using .rtf template and have set the .pdf security as follows:

&pwd is a randomly generated password.
   Local array of string &XMLP_Prop, &XMLP_PropValue;
   &XMLP_Prop = CreateArrayRept("", 0);
   &XMLP_PropValue = CreateArrayRept("", 0);
   &XMLP_Prop.Push("pdf-security");
   &XMLP_PropValue.Push("true");
   &XMLP_Prop.Push("pdf-open-password");
   &XMLP_PropValue.Push(&pwd);
   &XMLP_Prop.Push("pdf-encryption-level");
   &XMLP_PropValue.Push("1");
   &XMLP_Prop.Push("pdf-permissions-password");
   &XMLP_PropValue.Push(&pwd);
   &XMLP_Prop.Push("pdf-no-printing");
   &XMLP_PropValue.Push("true");
   &XMLP_Prop.Push("pdf-no-changing-the-document");
   &XMLP_PropValue.Push("true");
   &XMLP_Prop.Push("pdf-compression");
   &XMLP_PropValue.Push("true");
   
   &XMLP_Prop.Push("pdf-printing-allowed");
   &XMLP_PropValue.Push("0");

When the document is opened, the system asks for the password. So far so good.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center