/** * @param Item\BasicItem $item */ public function renderTextItem(Item\BasicItem $item) { $format = $item->getFormat(); $bounds = $item->getBounds(); $this->doc->text->drawTextBox(implode("\n", $format['text']), $bounds['x'], $bounds['y'], $bounds['width'], $bounds['height'], $this->buildTextStyles($item->exportStyles())); }