1、BS ISO 19444-1:2016Document management XML Forms Data FormatPart 1: Use of ISO 32000-2 (XFDF 3.0)BSI Standards PublicationWB11885_BSI_StandardCovs_2013_AW.indd 1 15/05/2013 15:06BS ISO 19444-1:2016 BRITISH STANDARDNational forewordThis British Standard is the UK implementation of ISO 19444-1:2016.Th
2、e UK participation in its preparation was entrusted to Technical Committee IDT/1, Document Management Applications.A list of organizations represented on this committee can be obtained on request to its secretary.This publication does not purport to include all the necessary provisions of a contract
3、. Users are responsible for its correct application. The British Standards Institution 2016.Published by BSI Standards Limited 2016ISBN 978 0 580 86942 6 ICS 35.240.30 Compliance with a British Standard cannot confer immunity from legal obligations.This British Standard was published under the autho
4、rity of the Standards Policy and Strategy Committee on 31 December 2016.Amendments/corrigenda issued since publicationDate T e x t a f f e c t e dBS ISO 19444-1:2016 ISO 2016Document management XML Forms Data Format Part 1: Use of ISO 32000-2 (XFDF 3.0)Gestion de documents Format de Donnes des Formu
5、laires XML Partie 1: Utilisation de lISO 32000-2 (XFDF 3.0)INTERNATIONAL STANDARDISO19444-1First edition2016-12-15Reference numberISO 19444-1:2016(E)BS ISO 19444-1:2016ISO 19444-1:2016(E)ii ISO 2016 All rights reservedCOPYRIGHT PROTECTED DOCUMENT ISO 2016, Published in SwitzerlandAll rights reserved
6、. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior written permission. Permission can be requested from either ISO at
7、 the address below or ISOs member body in the country of the requester.ISO copyright officeCh. de Blandonnet 8 CP 401CH-1214 Vernier, Geneva, SwitzerlandTel. +41 22 749 01 11Fax +41 22 749 09 47copyrightiso.orgwww.iso.orgBS ISO 19444-1:2016ISO 19444-1:2016(E)Foreword viIntroduction vii1 Scope . 12 N
8、ormative references 13 Terms and definitions . 14 Notation . 15 Introduction to XFDF 15.1 General . 15.2 Forms data and annotations 15.3 How to use this specification 35.4 PDF, FDF and XFDF 35.4.1 General 35.4.2 Sample form in FDF and XFDF . 55.4.3 Sample annotation in FDF and XFDF 65.5 Writing XFDF
9、 75.5.1 General 75.5.2 Encoding and Namespace 75.6 Understanding forms . 75.6.1 General 75.6.2 Simple XFDF form . 75.6.3 Hierarchical XFDF form . 85.7 Understanding annotations . 95.7.1 General 95.7.2 Simple XFDF annotation . 105.7.3 Annotation with popup text 115.7.4 Annotation with comment . 115.8
10、 Implementation notes . 135.8.1 General. 135.8.2 String encoding conventions 135.8.3 Rich text strings .135.8.4 XML content model syntax . 146 XFDF reference 156.1 General 156.2 XFDF elements . 156.2.1 Elements 156.2.2 xfdf 156.2.3 f 156.2.4 ids .166.3 Form field elements . 166.3.1 Fields . 166.3.2
11、Field176.3.3 value . 176.3.4 value-richtext .176.4 Annotation elements . 186.4.1 annots . 186.4.2 text 186.4.3 highlight 196.4.4 underline . 206.4.5 strikeout . 206.4.6 squiggly . 216.4.7 line .226.4.8 circle 23 ISO 2016 All rights reserved iiiContents PageBS ISO 19444-1:2016ISO 19444-1:2016(E)6.4.9
12、 square . 246.4.10 caret .256.4.11 polygon 266.4.12 polyline 276.4.13 stamp 286.4.14 ink 296.4.15 freetext 306.4.16 fileattachment .316.4.17 sound. 326.4.18 link 336.4.19 redact 336.4.20 projection 346.5 Annotation sub-elements . 356.5.1 Action 356.5.2 appearance . 356.5.3 BorderStyleAlt .356.5.4 co
13、ntents 366.5.5 contents-richtext .366.5.6 data .376.5.7 defaultappearance .376.5.8 defaultappearance .386.5.9 defaultstyle 386.5.10 Dest .386.5.11 File .396.5.12 gesture . 396.5.13 Fit .396.5.14 FitB 406.5.15 FitBH 406.5.16 FitBV 416.5.17 FitH .416.5.18 FitR 416.5.19 FitV 426.5.20 GoTo .426.5.21 GoT
14、oR . 436.5.22 inklist 436.5.23 Launch 436.5.24 Named 446.5.25 Named 446.5.26 OnActivation . 446.5.27 overlayappearance 456.5.28 popup 456.5.29 resource 466.5.30 URI .466.5.31 vertices 476.5.32 XYZ 476.6 Annotation attributes . 476.6.1 Overview 476.6.2 FDF annotation attributes 486.6.3 Common annotat
15、ion attributes 486.6.4 Markup annotation attributes . 496.6.5 Text markup annotation attributes . 506.6.6 Text annotation attributes 516.6.7 Line annotation attributes 526.6.8 Circle and Square annotation attributes 546.6.9 Caret annotation attributes . 556.6.10 Polygon and Polyline annotation attri
16、butes 566.6.11 Freetext annotation attributes 576.6.12 Stamp annotation attributes. 58iv ISO 2016 All rights reservedBS ISO 19444-1:2016ISO 19444-1:2016(E)6.6.13 Fileattachment annotation attributes 596.6.14 Sound annotation attributes . 596.6.15 Popup annotation attributes 606.6.16 Link annotation
17、attributes . 606.6.17 Redaction annotation attributes . 616.6.18 Border effect attributes . 616.6.19 Border style attributes .626.6.20 Border array attributes . 626.6.21 Embedded file parameter attributes .636.6.22 Stream attributes 636.6.23 File specification attributes . 646.6.24 Destination synta
18、x attributes 646.6.25 Remote go-to attributes 646.6.26 Launch attributes .646.6.27 Named action attributes . 656.6.28 URI attributes 656.6.29 Mac OS file information attributes 656.6.30 Miscellaneous attributes 66Bibliography .67 ISO 2016 All rights reserved vBS ISO 19444-1:2016ISO 19444-1:2016(E)Fo
19、rewordISO (the International Organization for Standardization) is a worldwide federation of national standards bodies (ISO member bodies). The work of preparing International Standards is normally carried out through ISO technical committees. Each member body interested in a subject for which a tech
20、nical committee has been established has the right to be represented on that committee. International organizations, governmental and non-governmental, in liaison with ISO, also take part in the work. ISO collaborates closely with the International Electrotechnical Commission (IEC) on all matters of
21、 electrotechnical standardization.The procedures used to develop this document and those intended for its further maintenance are described in the ISO/IEC Directives, Part 1. In particular the different approval criteria needed for the different types of ISO documents should be noted. This document
22、was drafted in accordance with the editorial rules of the ISO/IEC Directives, Part 2 (see www.iso.org/directives).Attention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO shall not be held responsible for identifying any or all such pa
23、tent rights. Details of any patent rights identified during the development of the document will be in the Introduction and/or on the ISO list of patent declarations received (see www.iso.org/patents).Any trade name used in this document is information given for the convenience of users and does not
24、 constitute an endorsement.For an explanation on the meaning of ISO specific terms and expressions related to conformity assessment, as well as information about ISOs adherence to the World Trade Organization (WTO) principles in the Technical Barriers to Trade (TBT) see the following URL: www.iso.or
25、g/iso/foreword.html.The committee responsible for this document is ISO/TC 171, Document management applications, Subcommittee SC 2, Document file formats, EDMS systems and authenticity of information.A list of all parts in the ISO 19444 series can be found on the ISO website.vi ISO 2016 All rights r
26、eservedBS ISO 19444-1:2016ISO 19444-1:2016(E)IntroductionThis document describes the XML Forms Data Format, which is used to represent form data from PDF (ISO 32000-2) in an XML tagset.This format is derived from the Forms Data Format in PDF and is intended to be a more interchangeable format for fo
27、rms data. ISO 2016 All rights reserved viiBS ISO 19444-1:2016BS ISO 19444-1:2016Document management XML Forms Data Format Part 1: Use of ISO 32000-2 (XFDF 3.0)1 ScopeThis document specifies an XML format for representing forms data and annotations in the Portable Document Format, ISO 32000-2 (PDF 2.
28、0).This document does not change or add any definitions for any components of ISO 32000-2.2 Normative referencesThere are no normative references in this document.3 Terms and definitionsFor the purposes of this document, the terms and definitions given in ISO 32000-2 apply.ISO and IEC maintain termi
29、nological databases for use in standardization at the following addresses: IEC Electropedia: available at http:/www.electropedia.org/ ISO Online browsing platform: available at http:/www.iso.org/obp4 NotationAll XFDF element names, XFDF attributes names and examples (XFDF and PDF) are written in fix
30、ed width font. All inline PDF and FDF operators, keywords and the names of keys in PDF dictionaries are written in bold font. All inline words that denote operands of PDF and FDF operators or values of PDF dictionary keys are written in italic sans serif font.Ellipses () are used within XFDF example
31、s to indicate omitted detail.5 Introduction to XFDF5.1 GeneralXML Forms Data Format (XFDF) is a format for representing forms data and annotations in a PDF document. This specification describes XFDF compatible with ISO 32000-2. XFDF is the XML version of Forms Data Format (FDF), a simplified versio
32、n of PDF for representing forms data and annotations.5.2 Forms data and annotationsForm fields in a PDF document may include many interactive elements (see ISO 32000-2:, 12.7). Figure 1 shows a sample PDF which utilizes edit boxes, buttons, and radio buttons:INTERNATIONAL STANDARD ISO 19444-1:2016(E
33、) ISO 2016 All rights reserved 1BS ISO 19444-1:2016ISO 19444-1:2016(E)Figure 1 Sample PDF utilizing edit boxes, buttons and radio buttonsThe XFDF exported from this PDF document might look like the following example:.XFDF is often used as the format to send and receive PDF form data from a server. F
34、orm data are submitted to a server, modifications are made and sent back; the new form data are imported into the interactive PDF form. XFDF is also often used as a format to export form data to stand-alone files that can be stored, transmitted electronically, and imported back into the correspondin
35、g PDF interactive form.Annotations (see ISO 32000-2:, 12.5) are attached to a PDF document. Figure 2 shows an example PDF which includes text notes, highlights, stamps, and file attachments:2 ISO 2016 All rights reservedBS ISO 19444-1:2016ISO 19444-1:2016(E)Figure 2 Example PDF shown with text notes
36、, highlights, stamps and file attachments5.3 How to use this specificationThis specification documents the correspondence between an XFDF element or attribute and its equivalent PDF dictionary and key. A short description is provided for each element and attribute; for complete information, see the
37、description of the corresponding dictionary and key in ISO 32000-2. There are also a few attributes that do not correspond to a specific PDF dictionary and key.5.4 PDF, FDF and XFDF5.4.1 GeneralPDF, FDF, and XFDF are related specifications with PDF as the parent format for representing documents, in
38、cluding interactive forms and annotations. FDF and XFDF contain the subset of a PDF document that describes interactive forms and annotations. Complete information on PDF and FDF may be found in ISO 32000-2.FDF is a simplified version of PDF. PDF and FDF represent information with a key/value pair,
39、also referred to as an entry. This example shows the T and V keys with values enclosed in parentheses:/T (Street) /V (345 Park Ave.)XFDF, on the other hand, represents an entry with an XML element/content or attribute/value pair, as shown in the corresponding XFDF:345 Park Ave.XFDF implements a subs
40、et of FDF containing forms and annotations. There are XFDF equivalents for the Annots, Fields, F, and ID keys of the FDF dictionary. There are no XFDF equivalents for the other entries in the FDF dictionary such as the Status, Encoding, JavaScript, EmbeddedFDFs, Differences, Target, and Pages keys.X
41、FDF conforms to the XML standard (see W3C, Extensible Markup Language 1.0).In the simplest case, an XFDF element or attribute maps directly to a key in a particular dictionary of PDF. For example, the creationdate attribute is documented as corresponding to the CreationDate key ISO 2016 All rights r
42、eserved 3BS ISO 19444-1:2016ISO 19444-1:2016(E)in the markup annotation dictionary. This specification provides a description of the creationdate attribute, but more detailed information can be found in ISO 32000-2.An example creationdate attribute in XFDF:creationdate=”D:20030425095243-0700”An equi
43、valent entry in PDF or FDF would look like:/CreationDate (D:20030425095243-0700)In the example above, the underlying data stored within XFDF or PDF is identical. However, in other cases, the name and value differ. For example, the flags attribute corresponds to the F key in the annotation dictionary
44、. The value of the flags attribute is a comma separated list of the descriptive names of the flags, while the value of the F key is an integer with each bit representing a flag.This is the XFDF flags attribute:flags=”print,nozoom,norotate”This is the equivalent F entry in PDF or FDF:/F 28Finally, an
45、 element with multiple attributes can map to a single key with multiple values. The ids element in XFDF has attributes original and modified that map to the ID key in the FDF dictionary.Below is an example ids element in XFDF:This is the corresponding ID entry in FDF:/ID 4 ISO 2016 All rights reserv
46、edBS ISO 19444-1:2016ISO 19444-1:2016(E)5.4.2 Sample form in FDF and XFDFBoth FDF and XFDF for forms contain the same information: field name and value. In this FDF example, with line returns added for readability, the Fields key contains two fields named Street and City:%FDF-1.2%1 0 obj/Fields endo
47、bjtrailer%EOFThis is the XFDF version of the same form fields. The fields element contains two field elements with attribute name set to Street and City:345 Park Ave.San Jose ISO 2016 All rights reserved 5BS ISO 19444-1:2016ISO 19444-1:2016(E)5.4.3 Sample annotation in FDF and XFDFXFDF and FDF conta
48、in similar information but XFDF is represented in the XML format. This is a snippet of an FDF file containing a note annotation (line breaks added for readability):%FDF-1.2%1 0 obj/Annots 4 0 R 3 0 R endobj3 0 objendobj4 0 obj endobjtrailer%EOFThis is the same data in XFDF format:.5.5 Writing XFDF5.
49、5.1 GeneralThis clause describes XML implementation details specific to XFDF.5.5.2 Encoding and NamespaceThe encoding in the XFDF file shall be UTF-8. Each XFDF file shall begin with the line:The namespace for XFDF shall be:http:/ XML shall always specify that space is preserved in the XFDF files as follows:xml:space=”preserve”Therefore, an XFDF document shall always begin with the following two lines:5.6 Understanding forms5.6.1 GeneralAn XFDF file with form data contains form f
copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
备案/许可证编号:苏ICP备17064731号-1