You cannot use the LiveCycle Policy Server API to attach a policy to a PDF document. However, you can programmatically apply a policy to a document by using the LiveCycle Document Security APIs. For information, see the Adobe LiveCycle Document Security Developers Guide.
But how can I get document security developers guide