This document is about how to set up and use a Content object.

Table of contents

First steps

Create a content object and give it some static objects which are always needed:


use IDML\Content\BackingStory;
use IDML\Content\Container;
use IDML\Content\DesignMap;
use IDML\Content\Tag;

$content = new IDML\Content();
    ->addBackingStory(new BackingStory())
    ->addContainer(new Container())
    ->addDesignMap(new DesignMap())
    ->addTag(new Tag())


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


use IDML\Content\Enum\Content\Language;

 * This will set the language to german.