XML Publisher .pdf password
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.
&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.
0