Create policy from template operation (deprecated)

Creates a policy based on the specified policy template. This operation is deprecated in LiveCycle ES2. Use Create policy from existing policy operation instead.

For information about the General and Route Evaluation property groups, see Common operation properties.

Input properties

Properties to specify the PDF document for which to apply the policy, the document name, and the policy to apply to the PDF document. Optionally, you can specify the user profile and group profile of the publisher.

New Policy Set Name

(Optional) A string value that represents the policy set used to secure the policy with. The value of My Policies is used if a policy set name is not provided.

If you provide a literal value, type a new name for the policy set.

New Policy Name

A string value that contains the new name of the policy. This value can have a maximum length of 50 characters.

If you provide a literal value, type the name of the document.

Policy Set Name

(Optional) A string value that specifies the name of the policy set to be used as a template for securing the PDF document. The value of My Policies is used if a policy set name is not provided.

If you provide a literal value, type the name of the policy set.

Policy Name

A string value that specifies the name of the policy template to use to create a policy.

If you provide a literal value, type the name of the policy template.

Offline Lease Period

(Optional) A string value that represents the number of days a recipient can take the document offline and use it without a network connection. The default is 30.

If you provide a literal value, type the number of days.

Principals To Add

(Optional) A list of Principal Reference values that represent the principals to add. Each principal is given the following permissions:

Open online:
Users can view the document while connected to the internet.

Open offline:
Users can view the document while disconnected from the internet.

Accessible:
Enables screen reader devices for visually impaired users to access the text in documents.

You cannot configure the actions or permissions of the principals. If a value is not provided, only the principals from the template are used.

If you provide a literal value, click the plus sign button  to display the Add Users and Groups dialog box to add principals. You can also select a principal from the list and click the minus sign button  to remove it.

Principals To Remove

(Optional) A list of Principal Reference values (com.adobe.idp.um.api.infomodel.PrincipalReference) that represent the principals to remove. The principals that you specify are removed from the set of principals that are in the template policy that you are copying from.

If you provide a literal value, click the plus sign button to display the Add Users and Groups dialog box to add principals. You can also select a principal from the list and click the minus sign button to remove it. (See Add users and groups.)

Watermark Name

(Optional) A string value that represents the name of the watermark to add to the PDF document.

If you provide a literal value, type the name of the watermark as configured in Rights Management in Administration Console. (See Rights Management Administration Help.)

Exceptions

This operation can throw an SDKException exception.

// Ethnio survey code removed