fix footer
This commit is contained in:
		@@ -309,38 +309,24 @@ class UserCardController extends Controller
 | 
				
			|||||||
        $pdf = new Pdf();
 | 
					        $pdf = new Pdf();
 | 
				
			||||||
        $mpdf = $pdf->api;
 | 
					        $mpdf = $pdf->api;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (!pathinfo($resumeTemplate->header_image, PATHINFO_EXTENSION)) {
 | 
					 | 
				
			||||||
            $mpdf->SetHeader($headerText);
 | 
					 | 
				
			||||||
        } else {
 | 
					 | 
				
			||||||
            $imagePath = Yii::getAlias('@frontend') . '/web' . $resumeTemplate->header_image;
 | 
					 | 
				
			||||||
        $mpdf->setAutoTopMargin='stretch';
 | 
					        $mpdf->setAutoTopMargin='stretch';
 | 
				
			||||||
            $mpdf->SetHTMLHeader(
 | 
					        $mpdf->SetHTMLHeader("
 | 
				
			||||||
                "<div style='border-bottom: 1px solid #999;'>
 | 
					                <div><table style='width:100%; height:100%; border-bottom: 1px solid #999;  font-family: serif; font-size: 8pt; color:
 | 
				
			||||||
                    <p><img src=$imagePath style='width: 100px; height: 40px; margin: 0; vertical-align: middle;'/>$headerText</p>
 | 
					                #000000; font-weight: bold; font-style: italic;'><tr>
 | 
				
			||||||
                </div>"
 | 
					                <td width='33%'><span style='font-weight: bold; font-style: italic;'><img src=$headerImagePath style='width: 100px; height: 40px; margin: 0; vertical-align: middle;'></span></td>
 | 
				
			||||||
            );
 | 
					                <td width='33%' align='center' style='font-weight: bold; font-style: italic;'>$headerText</td>
 | 
				
			||||||
        }
 | 
					                <td width='33%' style='text-align: right; '></td>
 | 
				
			||||||
 | 
					                </tr></table></div>
 | 
				
			||||||
 | 
					            ");
 | 
				
			||||||
//        $mpdf->SetHTMLHeader("
 | 
					        $mpdf->SetHTMLFooter("
 | 
				
			||||||
//                <div><table style='width:100%; height:100%; border-bottom: 1px solid #999;  font-family: serif; font-size: 8pt; color:
 | 
					                <div><table width='100%' style='border-top: 1px solid #999; vertical-align: bottom; font-family: serif; font-size: 8pt; color:
 | 
				
			||||||
//                #000000; font-weight: bold; font-style: italic;'><tr>
 | 
					                #000000; font-weight: bold; font-style: italic;'><tr>
 | 
				
			||||||
//                <td width='33%'><span style='font-weight: bold; font-style: italic;'><img src=$headerImagePath style='width: 100px; height: 40px; margin: 0; vertical-align: middle;'></span></td>
 | 
					                <td width='33%'><span style='font-weight: bold; font-style: italic;'><img src=$footerImg style='width: 100px; height: 40px; margin: 0; vertical-align: middle;'></span></td>
 | 
				
			||||||
//                <td width='33%' align='center' style='font-weight: bold; font-style: italic;'>$headerText</td>
 | 
					                <td width='33%' align='center' style='font-weight: bold; font-style: italic;'>$footerText</td>
 | 
				
			||||||
//                <td width='33%' style='text-align: right; '></td>
 | 
					                <td width='33%' style='text-align: right; '>{PAGENO}</td>
 | 
				
			||||||
//                </tr></table></div>
 | 
					                </tr></table></div>
 | 
				
			||||||
//            ");
 | 
					            ");
 | 
				
			||||||
 | 
					 | 
				
			||||||
//        $mpdf->SetHTMLFooter("
 | 
					 | 
				
			||||||
//                <div><table width='100%' style='border-top: 1px solid #999; vertical-align: bottom; font-family: serif; font-size: 8pt; color:
 | 
					 | 
				
			||||||
//                #000000; font-weight: bold; font-style: italic;'><tr>
 | 
					 | 
				
			||||||
//                <td width='33%'><span style='font-weight: bold; font-style: italic;'><img src=$footerImg style='width: 100px; height: 40px; margin: 0; vertical-align: middle;'></span></td>
 | 
					 | 
				
			||||||
//                <td width='33%' align='center' style='font-weight: bold; font-style: italic;'>$footerText</td>
 | 
					 | 
				
			||||||
//                <td width='33%' style='text-align: right; '>{PAGENO}</td>
 | 
					 | 
				
			||||||
//                </tr></table></div>
 | 
					 | 
				
			||||||
//            ");
 | 
					 | 
				
			||||||
        $mpdf->WriteHTML("<div>$userCard->resume_text</div>");
 | 
					        $mpdf->WriteHTML("<div>$userCard->resume_text</div>");
 | 
				
			||||||
        $mpdf->SetFooter('{PAGENO}');
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $mpdf->Output("Resume - {$userCard->fio}", 'D'); // call the mpdf api output as needed
 | 
					        $mpdf->Output("Resume - {$userCard->fio}", 'D'); // call the mpdf api output as needed
 | 
				
			||||||
        exit;
 | 
					        exit;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user