title: How to add a div with image and text 180 degree rotate in tcpdf
body: <p>I have searched a lot for this solution but no luck, as tcpdf have a poor documentation so i found nothing, what i need is a name plate print as pdf using tcpdf, ant the template is so simple just as the image is <a href="https://i.stack.imgur.com/sfJds.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sfJds.png" alt="http://prntscr.com/ezrdsp"></a> </p>
  
  <p>But the problem is i can not rotate the top section properly. here is my code</p>
  
  <pre><code>    $obj_pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
      $obj_pdf-&gt;AddPage('L' , 'A5');
      $obj_pdf-&gt;StartTransform();
      $obj_pdf-&gt;Rotate(-180);
  
      $obj_pdf-&gt;image($logo1, 165 , 65, 0, 90, "PNG", "" , "M", true);
      $obj_pdf-&gt;image($logo2, 0 , 65, 0, 90, "PNG", "" , "R", true);
  
      $name =  $functional_user-&gt;first_name .' '. $functional_user-&gt;last_name ;
      $obj_pdf-&gt;SetTopMargin(-120);
      $obj_pdf-&gt;SetLeftMargin(10);
      $obj_pdf-&gt;setCellPaddings(0,0,0,0);
      $tbl = '&lt;br&gt; &lt;div class= "rotate" style="transform: rotate(180deg);"&gt;
              &lt;table cellpadding="2" &gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;h1 style = "font-size: 40px; line-height: 1.3"&gt;'.$name.' &lt;/h1&gt;
                  &lt;br&gt;&lt;br&gt;&lt;span style="font-size: 13px"&gt;
                  '.$org_logo_text.' &lt;/span&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;/table&gt;
              &lt;/div&gt;';
      $obj_pdf-&gt;writeHTML($tbl, true, false, false, false, '');
      $obj_pdf-&gt;StopTransform();
  
      $obj_pdf-&gt;SetTopMargin(78);
      $obj_pdf-&gt;image($logo1, 10 , 70, 40, 20, "PNG", "" , "M", true);
      $obj_pdf-&gt;image($logo2, 165 , 70, 40, 20, "PNG", "" , "R", true);
  
      $name =  $functional_user-&gt;first_name .' '. $functional_user-&gt;last_name ;
      $obj_pdf-&gt;SetTopMargin(100);
      $obj_pdf-&gt;SetLeftMargin(10);
      $obj_pdf-&gt;setCellPaddings(0,0,0,0); 
      $tbl = '&lt;br&gt;
              &lt;table cellpadding="2" &gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;h1 style = "font-size: 40px; line-height: 1.3"&gt;'.$name.' &lt;/h1&gt;
                  &lt;br&gt;&lt;br&gt;&lt;span style="font-size: 13px"&gt;
                  '.$org_logo_text.' &lt;/span&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
              &lt;/table&gt;';
      $obj_pdf-&gt;writeHTML($tbl, true, false, false, false, '');
      $obj_pdf-&gt;lastPage();
      $obj_pdf-&gt;Output('/tmp/Nameplate_' . $i . '.pdf', 'F');
      $obj_pdf-&gt;Close();
  </code></pre>
  
  <p>Can somebody help me with this ??</p>