01.01.2015 Views

XML Forms Data Format (XFDF) Specification - Adobe Partners

XML Forms Data Format (XFDF) Specification - Adobe Partners

XML Forms Data Format (XFDF) Specification - Adobe Partners

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Introduction to <strong>XFDF</strong><br />

<strong>XML</strong> <strong>Forms</strong> <strong>Data</strong> <strong>Format</strong> <strong>Specification</strong> Implementation Notes 27<br />

<br />

<br />

<br />

Implementation Notes<br />

This section contains implementation specific notes:<br />

● Importing and exporting <strong>XFDF</strong><br />

● Double byte characters<br />

● String encoding conventions<br />

● The border element<br />

● Rich text strings<br />

● The contents and contents-richtext elements in annotations<br />

● The value and value-richtext elements in fields<br />

● Stream encoding<br />

● <strong>XML</strong> content model syntax<br />

Importing and exporting <strong>XFDF</strong><br />

<strong>XFDF</strong> files can be imported to and exported from Acrobat 6.0 using the following menu items.<br />

● To import and export <strong>XFDF</strong> annotations, use the Document > Import Comments... and Export<br />

Comments... menu items.<br />

● To import and export <strong>XFDF</strong> form fields, use the Advanced > <strong>Forms</strong> > Import <strong>Forms</strong> <strong>Data</strong>... and Export<br />

<strong>Forms</strong> <strong>Data</strong>... menu items.<br />

Double byte characters<br />

Although <strong>XFDF</strong> is encoded in UTF-8, double byte characters are encoded as character references when<br />

exported from Acrobat.<br />

For example, the Japanese double byte characters , , and are exported to <strong>XFDF</strong> using<br />

three character references. Here is an example of double byte characters in a form field:<br />

...<br />

<br />

<br />

Here are 3 UTF-8 double byte<br />

characters: &#x3042;&#x3044;&#x3046;<br />

<br />

<br />

...<br />

Acrobat can import an <strong>XFDF</strong> file with double byte UTF-8 characters. The characters do not have to be<br />

encoded as character references:<br />

...

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!