Accessibility
Scott Macdonald

Scott Macdonald

Adobe

Table of Contents

Created:
6 July 2009
User Level:
Intermediate
Products:
LiveCycle

Encrypting PDF documents using Remoting

Adobe LiveCycle ES provides the means to directly invoke its services using LiveCycle Remoting. Typically, it is recommended that you invoke processes created in Workbench ES using Remoting. (The Remoting section in Programming with LiveCycle ES recommends that you invoke processes created in Workbench ES). However, you can directly invoke a LiveCycle ES service. As discussed in this article, when invoking a service directly, you map ActionScript objects to LiveCycle ES complex data types.

Assume, for example, that you want a client application created with Flex to encrypt a PDF document. Using LiveCycle Remoting, you can directly invoke the Encryption service without having to create a process in Workbench ES. You can create a client application that invokes the Encryption service and encrypts a PDF document with a password, as shown in the following illustration.

A Flex client application invoking the LiveCycle ES Encryption service

Figure 1. A Flex client application invoking the LiveCycle ES Encryption service

This article describes how to create a client application that invokes the Encryption service and encrypts a PDF document with a password. A user of the application is able to select a PDF file. The PDF file is sent to the Encryption service's encryptUsingPassword operation. Once done, the user can access a link in the client that opens the encrypted PDF document, as shown in the following illustration.

A graphical user interface of an application built with Flex

Figure 2. A graphical user interface of an application built with Flex

Note: It is recommended that you be familiar with encrypting a PDF document with a password before reading this development article. (See Encrypting PDF Documents with a Password.)

Requirements

LiveCycle ES

Sample files:

Creative Commons License
This work is licensed under a Creative Commons Attribution-Noncommercial 3.0 Unported License.

About the author

Scott Macdonald is a senior SDK technical writer at Adobe Systems with more than 10 years in the software industry working with Java, C/C++/C#, as well as other programming languages.