Spread

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

Table of contents

First steps

Set up a Spread object and add it to the Content object like that:

<?php 

use IDML\Content\Spread\Spread;

$spread = new Spread();

$content->add($spread);

If you want to set your own unique identifier, set up the Spread like that: new Spread('UniqueName');

Since IDML-Creator version 4.0, you can use the Factory to create and register the Spread:

$spread = $factory->createSpread();

Every Spread can hold multiple pages.