Please use 'indent_left' parameter on texts and 'indent_left' on images.
Example 1:
$text = 'Lorem ipsum dolor sit amet.';
$paramsText = array(
'b' => 'single',
'font' => 'Arial',
'indent_left' => 300
);
$docx->addText($text, $paramsText);
Example 2:
$paramsImg = array(
'name' => '../../files/img/image.png',
'scaling' => 50,
'spacingTop' => 100,
'spacingBottom' => 0,
'spacingLeft' => 100,
'spacingRight' => 0,
'textWrap' => 0,
'border' => 1,
'borderDiscontinuous' => 1,
);
$docx->addImage($paramsImg);
Regards.