17.06.2013 Views

XMP Specification Part 3: Storage in Files - Adobe

XMP Specification Part 3: Storage in Files - Adobe

XMP Specification Part 3: Storage in Files - Adobe

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.

% The third step is replaced with one that associates the <strong>XMP</strong> metadata<br />

% with the image. S<strong>in</strong>ce this must be located after both the image and<br />

% <strong>XMP</strong> streams, it might not be adjacent to the other <strong>XMP</strong> parts. See the<br />

% order<strong>in</strong>g issues discussed <strong>in</strong> “Order<strong>in</strong>g of Content”.<br />

% Third: Attach the <strong>XMP</strong> metadata stream to the image.<br />

[{myImage_123} /PUT pdfmark<br />

The approach shown here is compatible with all PostScript devices. That is, no additional changes are needed<br />

to ensure that level 1 devices will properly ignore the <strong>XMP</strong> beyond those already mentioned, and Distiller 5 and<br />

later will attach the <strong>XMP</strong> to the associated object <strong>in</strong> the PDF file.<br />

Although Distiller 5 will attach the <strong>XMP</strong> to the associated object <strong>in</strong> the PDF file, the <strong>XMP</strong> stream <strong>in</strong> the PDF will<br />

be Flate-compressed. This makes the object <strong>XMP</strong> packet <strong>in</strong> the PDF <strong>in</strong>visible to external packet scanners. The<br />

<strong>XMP</strong> will be visible to software process<strong>in</strong>g the PDF format and decompress<strong>in</strong>g the stream. Distiller 6 and later<br />

do not compress the <strong>XMP</strong> packet stream.<br />

2.6.3 UCF (Universal Conta<strong>in</strong>er Format)<br />

UCF is a general-purpose conta<strong>in</strong>er technology. As a general conta<strong>in</strong>er format, UCF collects a related set of<br />

files <strong>in</strong>to a s<strong>in</strong>gle-file conta<strong>in</strong>er. UCF can be used to collect files <strong>in</strong> various document and data formats and for<br />

classes of applications. The s<strong>in</strong>gle-file conta<strong>in</strong>er enables easy transport of, management of, and random<br />

access to, the collection.<br />

UCF def<strong>in</strong>es rules for how to represent an abstract collection of files (the “abstract conta<strong>in</strong>er”) <strong>in</strong>to physical<br />

representation with<strong>in</strong> a Zip archive (the “physical conta<strong>in</strong>er”). The rules for Zip conta<strong>in</strong>ers build upon and are<br />

backward compatible with the Zip technology used by Open Document Format (ODF) 1.0. UCF is designed to<br />

provide a set of lightweight constra<strong>in</strong>ts on the use of Zip.<br />

The position of <strong>XMP</strong> with<strong>in</strong> UCF is def<strong>in</strong>ed <strong>in</strong> part 3.5 of the specification:<br />

3.5 META-INF<br />

All valid UCF Conta<strong>in</strong>ers MAY <strong>in</strong>clude a directory called “META-INF” at the root level of the conta<strong>in</strong>er file system.<br />

This directory conta<strong>in</strong>s the files specified below that describe the contents, metadata, signatures, encryption,<br />

rights and other <strong>in</strong>formation about the conta<strong>in</strong>ed publication.<br />

Specifically, the META-INF/metadata.xml file conta<strong>in</strong>s <strong>XMP</strong> metadata:<br />

3.5.3 Metadata – META-INF/metadata.xml (Optional)<br />

A file with the reserved name “metadata.xml” with<strong>in</strong> the “META-INF” directory at the root level of the conta<strong>in</strong>er file<br />

system may appear <strong>in</strong> a valid UCF conta<strong>in</strong>er. This file, if present, MUST be used for conta<strong>in</strong>er-level metadata. In<br />

version 1.0 of OCF, no such conta<strong>in</strong>er-level metadata is specified.<br />

If the “META-INF/metadata.xml” file exists, its contents MUST be valid XML with namespace-qualified elements to<br />

avoid collision with future versions of OCF that MAY specify a particular grammar and namespace for elements<br />

and attributes with<strong>in</strong> this file.<br />

<strong>Adobe</strong>-def<strong>in</strong>ed formats based on UCF MUST use <strong>XMP</strong> to specify metadata.<br />

For further <strong>in</strong>formation about UCF, see:<br />

http://labs.adobe.com/technologies/mars/?tab:details=1#documentation<br />

50 ©<strong>Adobe</strong> Systems Incorporated, 2010

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

Saved successfully!

Ooh no, something went wrong!