Adobe
Products
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
Student and Teacher Editions
More products
Solutions
Creative tools for business
Digital marketing
Digital media
Education
Financial services
Government
Web Experience Management
More solutions
Learning Help Downloads Company
Buy
Home use for personal and home office
Education for students, educators, and staff
Business for small and medium businesses
Licensing programs for businesses, schools, and government
Special offers
Search
 
Info Sign in
Welcome,
My cart
My orders My Adobe
My Adobe
My orders
My information
My preferences
My products and services
Sign out
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out My orders My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Review and Checkout
Adobe Developer Connection / LiveCycle Developer Center /

Extending your forms for use inside of Adobe LiveCycle Workspace ES by adding reader rights

by Paul Guerette

Paul Guerette
  • Adobe

Created

18 November 2007

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
forms LiveCycle

Requirements

Prerequisite knowledge

  • A working Adobe LiveCycle ES system complete with Adobe LiveCycle Process Management ES and LiveCycle Reader Extensions ES
  • A working Adobe LiveCycle Workbench ES development environment configured to communicate with the LiveCycle ES system
  • Access to the Adobe LiveCycle Administration Console to be able to import the sample and set an appropriate endpoint

You should be knowledgeable about building processes in LiveCycle Workbench ES and understand how to get forms to render in LiveCycle Workspace ES.

User level

Intermediate

Required products

  • LiveCycle (Download trial)

Additional Requirements

LiveCycle ES

  • Try
  • Buy

LiveCycle Workbench ES

  • Try
  • Learn

LiveCycle Reader Extensions ES

  • Try
  • Learn

In many cases users want to be able to render a PDF form (with advanced functionalities) inside of Adobe LiveCycle Workspace ES, but they are limited to using Adobe Reader to view the form. Adobe LiveCycle Reader Extensions ES enables form designer to extend the use of Adobe Reader to allow for any advanced functionalities that they put into their forms. In this article I will show you how to extend your forms for use inside of LiveCycle Workspace ES.

The concept of the renderer

When a user-based process is created, the process creator will declare an input variable that is used to hold the inbound transmission when the user clicks Submit. This variable also will contain a pointer to the location of the template file that will be used to show the form to the user as well as a link to a special process (sometimes called an orchestration) that will tell the system how to combine that data and template together to show the form to the user. This special process is called a renderer, because it tells the system how to render the form to the user. Different renderers will be used depending on the type of template (XDP versus PDF), data format to be merged, and type of form being generated (PDFForm, Guide, or HTML). Adobe provides numerous samples and standard renderers for your use. Figure 1 shows an example:

Example of a simple form renderer
Figure 1. Example of a simple form renderer

All of the renderers follow the same format. They start with a SetValue service, which will modify parameters that are fed into the render operation. This is followed by the RenderForm operation, which is the actual call to LiveCycle Forms ES (which creates the form). Finally, there is an optional step (if the form is being used with LiveCycle Workspace ES) that will inject the FormBridge code into the form to enable it to communicate with the workspace application.

Creating your own render orchestration

Now that you understand how to render a form, you can create your own renderer. A number of excellent examples ship with the product that you can use as a base. In this case, I will assume that you are starting with an XDP form template and will use the renderPDFForm service that is in the Samples/Forms category.

  1. In LiveCycle Workbench ES, locate the Samples-Forms category in the Process view. Note that there are many different Render and Submit services for different form types. You will want to use the RenderPDFForm service as your base.
  2. Make sure the Samples-Forms category is selected and right-click it and choose the New Process option. The New Process wizard will start.
  3. Choose the Copy an existing process option and click Next. Give your new process a name (I chose MyRenderer_RE). Change the category name wherein your orchestration is to reside, if you like.
  4. Browse to the process that you want to copy (Samples – Forms/Render PDF Form/Render PDF Form – 1.0) (see Figure 2).
  5. Click OK, and then click Finish.
The New Process wizard
Figure 2. The New Process wizard
  1. Your new process has been created. Locate your new process and edit it. You will need to add the Reader Extensions (RE) step to the renderer.
  2. Open the Services view and navigate to the Reader Extensions category.
  3. Open that category and drag the Apply Usage Rights operation onto your canvas (after LiveCycle Workspace ES enables form operation).
  4. Connect the Workspace enable form operation to the Apply Usage Rights operation. Now you are ready to define the properties for your Apply Usage Rights operation.
  5. Click the Apply Usage Rights operation. Open the Properties view. You are now viewing properties for the Apply Usage Rights service (see Figure 3).
The Property Page for the Apply Usage Rights service
Figure 3. The Property Page for the Apply Usage Rights service
  1. You can rename your operation to a more meaningful name if you wish (I chose Apply Rights).
  2. Expand the Input options by clicking the triangle to the left of the tag.
  3. In the Input PDF parameter, you need to indicate which variable contains the document to which you want to apply rights. This is the output variable from the previous step (outFormDoc). To set this, you need to change the parameter to accept a variable instead of a literal value (the default). Click the downward – pointing arrow to open the list of Input options. Choose variable (see Figure 4). You have now indicated that your input document is contained with a system variable.
Input parameter for the Apply Usage Rights service
Figure 4. Input parameter for the Apply Usage Rights service
  1. To indicate which variable is to be used, pick outFormDoc from the dropdown list for Input.
  2. Next, you need to indicate which Credential Alias will be used. When LiveCycle Reader Extensions ES was installed, a certificate was installed and a Credential Alias referring to this certificate was established. You need to indicate that name in the Credential Alias parameter (in my case it is ARES_CERT). Note that this is a literal value.
  3. Now you can choose the appropriate rights that you want to apply.
  4. You need to store the resultant document in a variable for use in your process. You will simply overwrite the variable you used for the input (as you do not need it anymore). Repeat for the Output PDF parameter the steps that you did for Input PDF.

     The properties should look like Figure 5:

Figure 5. Completed Input properties for the Apply Usage Rights service
Figure 5. Completed Input properties for the Apply Usage Rights service
  1. Finally, edit the render Form step. In the Input Properties, set Render At Client to No.

Save your process and activate it. Note that if you do not reference the correct Credential Alias or you try to turn on rights for which you do not have the associated server product (for instance, 2D Barcode), then your process will fail and an error message will be written to the application server log file.

Calling the renderer

Now that you know how to render your forms, how do you call it in your process? When designing your process, you need to create a variable that will hold the data that is merged with the form. If you are using XDPs from Designer, then you need to define a variable of type xfaForm. The xfaForm variable gets associated with a particular template that is in the repository. This association is held in the definition of the xfaForm variable's template URI parameter. You can create the variable by hand and associate the template by browsing to the appropriate template (using the Browse button), or you can simply drag the desired template onto the variables view and it will create the variable and make the association for you (see Figure 6).

Definition of an xfaForm variable
Figure 6. Definition of an xfaForm variable

If this is the variable that will be used as the first step in your process, it must be set as an input variable. Now that you have defined a variable to hold your data and associated it with a template, you must tell it how to render this form and associate it to a renderer. This is done under the Advanced Settings button.

  1. There are two tabs at the top of the dialog box that reflect the Render service to use as well as the Submit service to use. In this case, choose the Render service tab.
  2. Make sure that the Enable Render Service checkbox is checked.
  3. Now you can browse to the render service that you have created and set it to be used by this variable.

Where to go from here

The ability to customize renderers is not limited to adding LiveCycle Reader Extensions ES. You can modify the renderer to certify forms before delivery to the user. The beginning of the renderer can also be modified to get additional data to merge onto the form (database lookups, web service calls or LDAP queries, to name a few).

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

More Like This

  • Pre-populating dropdown lists in dynamic PDF forms from a back-end data source using LiveCycle ES2.5
  • Binding an XML Schema Document (XSD) to repeating subform elements using Adobe LiveCycle Designer
  • Using dot leaders in LiveCycle Designer ES Update 1
  • Introduction to hyphenation in Adobe LiveCycle Designer ES Update 1
  • Introduction to typography enhancements in LiveCycle Designer ES Update 1
  • What's new in Adobe LiveCycle Designer ES2
  • What's new in Adobe LiveCycle Designer ES
  • Creating an XML electronic forms solution with an Adobe PDF form and IBM DB2 pureXML
  • Foundation Form Creation excerpt: Getting into advanced form design
  • Creating form rendering ASP.NET applications

Products

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • Mobile Apps
  • Photoshop
  • Touch Apps
  • Student and Teacher Editions

Solutions

  • Digital marketing
  • Digital media
  • Web Experience Management

Industries

  • Education
  • Financial services
  • Government

Help

  • Product help centers
  • Orders and returns
  • Downloading and installing
  • My Adobe

Learning

  • Adobe Developer Connection
  • Adobe TV
  • Training and certification
  • Forums
  • Design Center

Ways to buy

  • For personal and home office
  • For students, educators, and staff
  • For small and medium businesses
  • For businesses, schools, and government
  • Special offers

Downloads

  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR
  • Adobe Shockwave Player

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2012 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy Policy and Cookies (Updated)

Ad Choices

Reviewed by TRUSTe: site privacy statement