Adobe
製品
Acrobat
Creative Cloud
Creative Suite
Digital Marketing Suite
Digital Publishing Suite
Elements
Photoshop
Touch Apps
その他の製品一覧
ソリューション
デジタルマーケティング
デジタルメディア
教育
金融機関
Web Experience Management
その他のソリューション
ラーニング サポート ダウンロード 会社情報
ご購入
アドビストア 安心のサポート& サービス
アカデミックストア 学生、教職員、個人向け
アドビライセンスストア 中小企業向け
ボリュームライセンスについて 企業、教育機関、官公庁向け
販売パートナー
キャンペーン情報
検索
 
情報 サインイン
ようこそ、 さん カート 注文状況 マイアカウント
マイアカウント
注文状況
アカウント情報の変更
コミュニケーションの設定を変更
サインアウト
サインインの目的 お客様のアカウントや体験版ダウンロード、製品の拡張機能、コミュニティエリアへのアクセスなどを管理するため
Adobe
製品 セクション ご購入   検索  
ソリューション 会社情報
サポート ラーニング
サインイン サインアウト 注文状況 マイアカウント
先行予約の提供開始予定日Date. 商品が発送されるまで、クレジットカードには課金されません。提供開始の予定日は変更される場合があります。 先行予約の提供開始予定日Date. ダウンロードの準備が整うまで、クレジットカードには課金されません。提供開始の予定日は変更される場合があります。
個数:
ご購入には学生・教職員個人版の購入資格の確認が必要です。
小計
カートの中身を見る
Adobe Developer Connection / LiveCycleデベロッパーセンター /

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

著者 Paul Guerette

Paul Guerette
  • Adobe

Created

18 November 2007

ページ ツール

Facebookでシェア
Twitterでツイート
LinkedInでシェア
ブックマーク
印刷

タグ

必要条件

この記事に必要な予備知識

  • 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.

ユーザーレベル

中級

必要な製品

  • 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

  • What's new in Adobe LiveCycle Designer ES2
  • Foundation Form Creation excerpt: Getting into advanced form design
  • Introduction to tab order in LiveCycle Designer ES Update 1
  • Generating and working with hashes in dynamic PDF forms
  • Authoring LiveCycle forms for the iPhone
  • LiveCycle Designer ES form fragment tutorial
  • Using dot leaders in LiveCycle Designer ES Update 1
  • Creating form rendering ASP.NET applications
  • Introduction to typography enhancements in LiveCycle Designer ES Update 1
  • Binding an XML Schema Document (XSD) to repeating subform elements using Adobe LiveCycle Designer

製品

  • Acrobat
  • Creative Cloud
  • Creative Suite
  • Digital Marketing Suite
  • Digital Publishing Suite
  • Elements
  • モバイルアプリ
  • Photoshop
  • Touch Apps

ソリューション

  • デジタルマーケティング
  • コンテンツオーサリング
  • Web Experience Management

業種別ソリューション

  • 教育
  • 金融機関

サポート

  • ヘルプ&サポート
  • 注文と返品
  • ダウンロードに関するヘルプ
  • ユーザー登録に関するヘルプ

ラーニング

  • ADC: Adobe Developer Center
  • Adobe TV
  • Design Magazine
  • Photoshop Magazine
  • Focus In

ご購入方法

  • アドビストア
  • アカデミックストア
  • アドビライセンスストア
  • ボリュームライセンスについて
  • 販売パートナー
  • キャンペーン情報

ダウンロード

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

会社情報

  • プレスルーム
  • パートナープログラム
  • 企業の社会的責任(英語)
  • 採用情報
  • 投資家の皆様へ(英語)
  • イベント&セミナー
  • Legal(英語)
  • セキュリティ
  • お問い合わせ
国・地域および言語の選択 日本(変更)
国・地域および言語の選択 閉じる

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.

利用条件 | プライバシーポリシーとCookie (更新)

Reviewed by TRUSTe: site privacy statement