Skip navigation
Currently Being Moderated

Programmatically modifying policy protected document

Nov 22, 2011 9:16 AM

Tags: #livecycle #ppl #adobe_portable_protection_library #adobe_ppl #rights_management #modify_policy_protected_document #unlock_document

Hi,

I was playing around with adobe portable protection library (Adobe PPL) and policy protected documents. I could protect documents with policies, also unlock policy protected document in order to obtain the original file.

But I would like to modify a policy protected file.

 

I tried to use the method unProtectDoc to obtain a unlock version of the document

 

virtual void PPKPackager::unProtectDoc(PPKPublisherPtr publisher,


const std::string outFileName = "",


bool shouldLogEvent = true

)
[pure virtual]

 

virtual void PPKPackager::protectDoc(PPKPublisherPtr publisher,


const std::string policyId,


const std::string docName,


const std::string outFileName = ""

)
[pure virtual]

 

And after I modified the file I tried to protect the file again with the same name and same policyId using the protectDoc method, but Livecycle Server created another instance of that file at EDC (like a new file).

 

NewFiles.PNG

The goal was to modify a policy protected file and keep the protection after the modification without create another file instance at EDC.

 

The Adobe Portable Protection Library is the best approach to accomplish this behavior?

If not, what do I do?

 

PS: I used the PPKSample project to test this behavior.

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points