:: **Zploit** v1.0 | Current Path: **/home/kreativepixelz/www/kreative_crm/quatation/**
:: Editing File: po.php
<?php error_reporting(E_ALL); ini_set('display_errors', 1); require_once __DIR__ . '/vendor/autoload.php'; use Mpdf\Mpdf; /* =============================== CREATE mPDF INSTANCE =============================== */ $mpdf = new Mpdf([ 'mode' => 'utf-8', 'format' => 'A4', 'margin_left' => 10, 'margin_right' => 10, 'margin_top' => 15, 'margin_bottom' => 15, ]); /* =============================== WATERMARK (ONLY ONCE) =============================== */ $watermarkPath = __DIR__ . '/assets/images/watermark.png'; if (!file_exists($watermarkPath)) { die('❌ Watermark image not found: ' . $watermarkPath); } $mpdf->SetWatermarkImage( $watermarkPath, 0.7, // PERFECT opacity '', // auto size [210, 297] // full A4 page ); $mpdf->showWatermarkImage = true; /* =============================== HEADER =============================== */ $mpdf->SetHTMLHeader(' <div style="text-align:right;font-size:10px;color:#555;"> ARCHITECTS, CONTRACTORS & INTERIORS </div> '); /* =============================== FOOTER =============================== * $mpdf->SetHTMLFooter(' <div style="text-align:center;font-size:9px;color:#777;"> Page {PAGENO} | Professional Quotation </div> '); */ $mpdf->SetHTMLFooter(' <div style="text-align:center; font-size:13px; color:#555;"> <!-- Line 1 --> <div style="margin-bottom:4px;"> <img src="'.__DIR__.'/assets/icons/facebook.png" width="20"> psahappyhome <img src="'.__DIR__.'/assets/icons/instagram.png" width="20"> psahappyhome <img src="'.__DIR__.'/assets/icons/phone.png" width="10"> +91 97686 76862 <img src="'.__DIR__.'/assets/icons/location.png" width="10"> Shimoga • Bangalore </div> <!-- Line 2 --> <div style="font-size:13px;margin-top:10px"> Page {PAGENO} | Professional Quotation </div> </div> '); /* =============================== LOAD CSS =============================== */ $cssFile = __DIR__ . '/assets/css/quotation.css'; if (file_exists($cssFile)) { $mpdf->WriteHTML(file_get_contents($cssFile), \Mpdf\HTMLParserMode::HEADER_CSS); } /* =============================== LOAD PAGES (ONE BY ONE) =============================== */ $mpdf->WriteHTML(file_get_contents(__DIR__ . '/pages/page1-cover.php')); $mpdf->AddPage(); $mpdf->WriteHTML(file_get_contents(__DIR__ . '/pages/page2-scope.php')); $mpdf->AddPage(); $mpdf->WriteHTML(file_get_contents(__DIR__ . '/pages/page3-estimation.php')); $mpdf->AddPage(); $mpdf->WriteHTML(file_get_contents(__DIR__ . '/pages/page4-extra.php')); $mpdf->AddPage(); $mpdf->WriteHTML(file_get_contents(__DIR__ . '/pages/page5-terms.php')); /* =============================== OUTPUT PDF =============================== */ $mpdf->Output('Professional_Quotation.pdf', 'I'); exit;