I had used below code, but in resulted doc i am not getting the margins
$docx->modifyPageLayout('custom', array('marginTop' => '30', 'marginRight' => '30', 'marginBottom' => '30', 'marginLeft' => '30',));
can anyone please let me know where am i going wrong ?