Hello everyone,
we need to apply policies to PDFs using LiveCycle web services. We
first have tried with the API and we got the same problem with both
approach:
(for it to be easier i'll display the API code)
when we use the example it works just fine:
policy set: Global Policy Set
policy name: Restrict to All Principals
Document protectPDF = documentManager.applyPolicy(
inPDF,
"LoanPDF",
"Global Policy Set",
"Restrict to All Principals",
null,null);
so we have created custom policies with the LC Gui (EDC)
and when we try to use them with our client we get this error:
Document protectPDF = documentManager.applyPolicy(
inPDF,
"LoanPDF",
"MyPolicies",
"antoinetest",
"PCW","antoine.blanchard");
=>adobe.edc.sdk.SDKException: Failed to retrieve policy
[MyPolicies:antoinetest] -- Permission denied(error code bin: 1296,
hex: 0x510)
does anyone have a solution, explanation or whatever?
Thanks for your help
Solved! Go to Solution.
Views
Replies
Total Likes
Just a thought .... try leaving the parameter for policy set (where you have "MyPolicies") as null
Haven't called this through the API only used it in an orchestration and I know that parameter is optional in general .... required if policy is in a Policy Set and optional if it is not.
Views
Replies
Total Likes
Does antoine.blanchard from the domain PCW have permissions as a document publisher.
That is in the property of the custom policy set you created there should be a tab for publishers. Any users listed in that area are allowed to apply a policy from that set. Did you add antoine.blanchard from PCW into this area? If so is the spelling of the domain and username correct?
Views
Replies
Total Likes
I didn't create any custom policy set. The policy is located under MyPolicies which are the user policies. The creator and the publisher are the same person. There is no possibility to change the publishers for the "MyPolicies", is there?
What's the problem?
Christoph
Views
Replies
Total Likes
Just a thought .... try leaving the parameter for policy set (where you have "MyPolicies") as null
Haven't called this through the API only used it in an orchestration and I know that parameter is optional in general .... required if policy is in a Policy Set and optional if it is not.
Views
Replies
Total Likes
That's the solution! The parameter must be null!
Thx!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies