Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $obj_pdf = new TCPDF('p', PDF_UNIT, 'A5', true, 'UTF-8', false);
- $obj_pdf->SetCreator(PDF_CREATOR);
- $obj_pdf->AddPage();
- $obj_pdf->SetAutoPageBreak(TRUE, 10);
- $obj_pdf->image($company_logo, 0 , 0, 74, 50, "PNG", "" , "M", true);
- $obj_pdf->image($organization_logo, 75 , 0, 74, 50, "PNG", "" , "M", true);
- $obj_pdf->SetMargins(2, 200, 2 , false);
- $content .="<h2 style='font-size: 60px; font-weight: 700; padding-top: 30px; padding-bottom: 30px; line-height: 2 ;letter-spacing: 2px;'>mkamal Hossain</h2>
- <span style='font-size: 28px; line-height: 2;'>{$org_logo_text}</span>";
- $content .= '<br pagebreak="true">';
- $obj_pdf->lastPage();
- $obj_pdf->writeHTML($content, true, 0 , true);
- $obj_pdf->AddPage();
- $obj_pdf->setPage($obj_pdf->getPage());
- $obj_pdf->Output("Nameplates.pdf" , "I");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement