public function getPhpWordObjFromTemplate($templateobj)
    {
        $fileName = $templateobj->save();

        $phpWordObject = IOFactory::load($fileName);

        unlink($fileName);

        return $phpWordObject;
    }