Advertisement
Guest User

Untitled

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