This document is about how to set up and use the DesignMap object.

First steps

Every IDML file needs a DesignMap. Create one and set it to the Content object:


use IDML\Content\DesignMap;

$designMap = new DesignMap();



The document language can be set with the help of the Content Language Enum.


use IDML\Content\Language\Language;
use IDML\Content\Enum\Content\Language as LanguageEnum;

 * This will set the language to german and danish. 
        new Language(LanguageEnum::DE_DE_2006()),
        new Language(LanguageEnum::DANISH())

Color Profiles

The document's color profiles can be set like that:


use BitAndBlack\ICCProfile\ICCProfile;

        new ICCProfile('/path/to/PSOcoated_v3.icc'),
        new ICCProfile('/path/to/eciRGB_v2.icc')

You can use the ICC profiles as PHP dependency! IDML-Creator makes use of bitandblack/iccprofile which comes with a huge folder of profiles. If you want to use them, you'll find them under /vendor/bitandblack/iccprofile/data.