This document is about how to set up and use the DesignMap object.
Every IDML file needs a DesignMap. Create one and set it to the Content object:
<?php use IDML\Content\DesignMap; $designMap = new DesignMap(); $content ->setDesignMap($designMap) ;
The document language can be set with the help of the Content Language Enum.
<?php use IDML\Content\Language\Language; use IDML\Content\Enum\Content\Language as LanguageEnum; /** * This will set the language to german and danish. */ $designMap ->addLanguage( new Language(LanguageEnum::DE_DE_2006()), new Language(LanguageEnum::DANISH()) ) ;
The document's color profiles can be set like that:
<?php use BitAndBlack\ICCProfile\ICCProfile; $designMap ->addColorProfile( 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