xml forms architecture (xfa) specification version 2 · pdf filecontent types ... prototypes...

1123
June 8, 2007 b c XML Forms Architecture (XFA) Specification Version 2.5

Upload: docong

Post on 26-Mar-2018

251 views

Category:

Documents


9 download

TRANSCRIPT

  • June 8, 2007

    bbc

    XML Forms Architecture (XFA) SpecificationVersion 2.5

  • NOTICE: All information contained herein is the property of Adobe Systems Incorporated.

    Any references to company names in the specifications are for demonstration purposes only and are not intended to refer to any actual organization.

    Adobe is a registered trademark of Adobe Systems Incorporated in the United States and/or other countries.

    Microsoft, Windows, and ActiveX are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Mac OS is a trademark of Apple Computer, Inc., registered in the United States and other countries. JavaScript is a registered trademark of Netscape Communications Corporation. Unicode is a registered trademark of Unicode, Inc. SAP is the trademark or registered trademark of SAP AG in Germany and in several other countries.

    All other trademarks are the property of their respective owners.

    This publication and the information herein are furnished AS IS, are furnished for informational use only, are subject to change without notice, and should not be construed as a commitment byAdobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or inaccuracies that may appear in the informational content contained in this guide, makes no warranty of any kind (express, implied, or statutory) with respect to this publication, and expressly disclaims any and all warranties of merchantability, fitness for particular purposes, and noninfringement of third-party rights.

    This limited right of use does not include the right to copy other copyrighted material from Adobe, or the software in any of Adobes products that use the Portable Document Format, in whole or in part, nor does it include the right to use any Adobe patents, except as may be permitted by an official Adobe Patent Clarification Notice (see [Adobe-Patent-Notice]in the Bibliography).

    Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA. Notice to U.S. Government End Users. The Software and Documentation are Commercial Items, as that term is defined at 48 C.F.R. 2.101, consisting of Commercial Computer Software and Commercial Computer Software Documentation, as such terms are used in 48 C.F.R. 12.212 or 48 C.F.R. 227.7202, as applicable. Consistent with 48 C.F.R. 12.212 or 48 C.F.R. 227.7202-1 through 227.7202-4, as applicable, the Commercial Computer Software and Commercial Computer Software Documentation are being licensed to U.S. Government end users (a) only as Commercial Items and (b) with only those rights as are granted to all other end users pursuant to the terms and conditions herein. Unpublished-rights reserved under the copyright laws of the United States. Adobe Systems Incorporated, 345 Park Avenue, San Jose, CA 95110-2704, USA. For U.S. Government End Users, Adobe agrees to comply with all applicable equal opportunity laws including, if appropriate, the provisions of Executive Order 11246, as amended, Section 402 of the Vietnam Era Veterans Readjustment Assistance Act of 1974 (38 USC 4212), and Section 503 of the Rehabilitation Act of 1973, as amended, and the regulations at 41 CFR Parts 60-1 through 60-60, 60-250, and 60-741. The affirmative action clause and regulations contained in the preceding sentence shall be incorporated by reference.

  • iii

    Contents

    .................................................................................................................................................................................................................i

    Preface ....................................................................................................................................... viiiIntellectual Property................................................................................................................................................................... viiiDocument Contents..................................................................................................................................................................... ixIntended Audience ....................................................................................................................................................................... ixPerspective Used in Describing Processing Guidelines................................................................................................... ixAssociated Schemas.......................................................................................................................................................................xRelated Documentation................................................................................................................................................................xWhats New........................................................................................................................................................................................xConventions ......................................................................................................................................................................................x

    Part 1: XFA Processing Guidelines

    1 Introduction to XML Forms Architecture (XFA) ...................................................................... 15Key Features ...................................................................................................................................................................................15Scenarios for Using a Form Described by XFA...................................................................................................................15Family of XFA Grammars ...........................................................................................................................................................17Major Components of an XFA Form: XFA Template and Data ....................................................................................20Data Binding: Making the Connection Between XFA Template and Data ..............................................................24Lifecycle of an XFA Form ...........................................................................................................................................................25Static versus Dynamic Forms ...................................................................................................................................................27

    2 Template Features for Designing Static Forms....................................................................... 29Form Structural Building Blocks..............................................................................................................................................29Basic Composition........................................................................................................................................................................33Content Types ...............................................................................................................................................................................36Formatting Text That Appears as Fixed or Variable Content .......................................................................................39Basic Layout ...................................................................................................................................................................................45Appearance Order (Z-Order) ....................................................................................................................................................57Extending XFA Templates ........................................................................................................................................................58Connecting the PDF to the XFA Template ..........................................................................................................................59

    3 Object Models in XFA ................................................................................................................ 62XFA Names......................................................................................................................................................................................62Document Object Models .........................................................................................................................................................63Scripting Object Model ..............................................................................................................................................................73

    4 Exchanging Data Between an External Application and a Basic XFA Form ........................108Creating, Updating, and Unloading a Basic XFA Data DOM...................................................................................... 108Localization and Canonicalization ...................................................................................................................................... 138Loading a Template to Produce the XFA Template DOM .......................................................................................... 154Basic Data Binding to Produce the XFA Form DOM ..................................................................................................... 155Form Processing ........................................................................................................................................................................ 187Data Output....................................................................................................................................................................