|Atomik Xport SE: Reference > Chapter 10 Working With DTDs||<< >>|
Atomik Xport will automatically extract image references from InDesign documents. The chapter ‘Extracting Images’ explains in more detail how Atomik Xport extracts image information, and provides the two image content models recognized by Atomik Xport.
Whichever image element you use, it must always have an empty element declaration with an attribute list. An example of a basic image declaration for use with Atomik Xport is as follows:
<!ELEMENT img EMPTY>
In the basic image declaration above, only the src attribute is used. This means that Atomik Xport will extract only the path (including filename) of images in the InDesign document. The flexibility of the image declaration comes in the choice of attributes that are available to you. The table below lists the attribute names you can use along with a description of the metadata they will cause Atomik Xport to extract.
|alt||‘Description’ field from XMP metadata.|
|apagenum||Absolute page number in InDesign (see also pagenum)|
|colourmodel||Image colour model (RGB, CMYK, LAB)|
|imgHeight||Height of InDesign image box (see also imgWidth)|
|imgName||Image filename only|
|imgPath or src||The full image path and filename|
|imgType||Image file format|
|imgWidth||Width of InDesign image box (see also imgHeight)|
|offsetX||Horizontal offset of image within picture box|
|offsetY||Vertical offset of image within picture box|
|origImgName||The original image filename only, when ‘Extract Web-Friendly Images’ is enabled in the ruleset|
|origImgPath||The original full image path and filename, when ‘Extract Web-Friendly Images’ is enabled in the ruleset|
|pagenum||Displayed page number in InDesign (see also apagenum)|
|scaleX||Horizontal image scaling (%)|
|scaleY||Vertical image scaling (%)|
The following is an example of an image element which uses several of the available attributes:
<!ELEMENT Image EMPTY>
The image element can be present in various ways within your publication data structure. Here is an example of an Image element paired with a Caption as part of a Graphic element’s content model.
<!ELEMENT Graphic (Image, Caption?)>