src/Pdf/PdfWriter.php
public function setTemplate(string $template): self
    {
        $projectDir = System::getContainer()->get('huh.utils.container')->getProjectDir();

        $this->template = $projectDir.\DIRECTORY_SEPARATOR.ltrim(preg_replace('#^'.$projectDir.'#', '', $template), \DIRECTORY_SEPARATOR);

        return $this;
    }
public function setTemplate(string $template): self
    {
        $projectDir = System::getContainer()->get('huh.utils.container')->getProjectDir();

        $this->template = $projectDir.\DIRECTORY_SEPARATOR.ltrim(preg_replace('#^'.$projectDir.'#', '', $template), \DIRECTORY_SEPARATOR);

        return $this;
    }
public function setTemplate ( string $ template ) : self { $ projectDir = System :: getContainer ( ) -> get ( 'huh.utils.container' ) -> getProjectDir ( ) ; $ this -> template = $ projectDir . \ DIRECTORY_SEPARATOR . ltrim ( preg_replace ( '#^' . $ projectDir . '#' , '' , $ template ) , \ DIRECTORY_SEPARATOR ) ; return $ this ; }
Set the master template path.

@param string $template

@return PdfWriter Current pdf writer instance
Set the master template path .