add new contract design
This commit is contained in:
@@ -315,7 +315,11 @@ class ContractController extends Controller {
|
||||
public function actionContract($id){
|
||||
$model = $this->findModel($id);
|
||||
|
||||
$mpdf=new \mPDF('utf-8', 'A4');
|
||||
//$mpdf=new \mPDF('utf-8', 'A4');
|
||||
$mpdf=new \mPDF('utf-8','A4','','','15','15','26','18','3');
|
||||
|
||||
$mpdf->SetHTMLHeader("<div style='height: 80px; text-align: right; ' ><img height='80px' src='" . \Yii::getAlias("@webroot") . DIRECTORY_SEPARATOR. "images" . DIRECTORY_SEPARATOR . "cutler_contract_pdf_header.jpg'></div>");
|
||||
$mpdf->setFooter('{PAGENO} / {nb}');
|
||||
$mpdf->WriteHTML($this->renderPartial('_contract', [
|
||||
'model' => $model,
|
||||
]));
|
||||
|
||||
Reference in New Issue
Block a user