|
|
To remove usage rights from a rights-enabled PDF document using the web service API, perform the following tasks:
•
• Using the Microsoft .NET client assembly, create a ReaderExtensionsServiceService object by invoking its default constructor.
• Create a BLOB object by using its constructor. The BLOB object is used to store the rights-enabled PDF document from which usage rights are removed.
• Create a System.IO.FileStream object by invoking its constructor and passing a string value that represents the file location of the PDF document and the mode in which to open the file.
• Create a byte array that stores the content of the System.IO.FileStream object. You can determine the size of the byte array by getting the System.IO.FileStream object’s Length property.
• Populate the byte array with stream data by invoking the System.IO.FileStream object’s Read method and passing the byte array, the starting position, and the stream length to read.
• Remove usage rights from the PDF document by invoking the ReaderExtensionsServiceService object’s removeUsageRights method and passing the BLOB object that contains the rights-enabled PDF document. This method returns a BLOB object that contains a PDF document that does not have usage rights.
• Create a System.IO.FileStream object by invoking its constructor and passing a string value that represents the PDF file location.
• Create a byte array that stores the data content of the BLOB object that was returned by the removeUsageRights method. Populate the byte array by getting the value of the BLOB object’s binaryData data member.
• Create a System.IO.BinaryWriter object by invoking its constructor and passing the System.IO.FileStream object.
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/usageRightsRemovingUsageRights.58.4.html