Hello,
When creating a blank document and inserting an image through addImage as the first command, the image appears to be inserted in the header. I'm using the following code which specifies the image to be inserted into the document body, but it ends up in the header:
$docx = new CreateDocx();
$docx->addImage(array(
'name' => $cover_file,
'textWrap' => 1,
'horizontalOffset' => $horizontal_offset,
'verticalOffset' => $vertical_offset,
'target' => 'document'
));