Tuesday, 15 May 2012

pdf - Rotate DIV element -


How to rotate the div element in TTPDF with XHTML or HTML

Rotate css3 with no work Testing

I need help, is CSS 3 working in the previous version TCPDF?

  -WebKit-transform: rotate (270 degrees); -Moose-transform: Rotate (270 degrees); -MMS-transform: rotate (270deg); -over-rotate (270 degrees); Write-mode: lr-tb; There is a good XHTML + CSS sample in the TCPDF, I've changed it a little bit. Define some HTML content with / p> 
  // style $ html = & lt; & Lt; & Lt; EOF & lt; Style & gt; ... div.test {color: # CC0000; Background color: #FFFF 66; Font-family: helvetica; Font size: 10pt; Border-style: concrete solid concrete solid; Threshold width: 2px 2px 2px 2px; Border Color: Green # FFFFF Blue Red; Text align: center; Webkit-transform: to rotate (270deg); -Moose-transform: Rotate (270 degrees); -MMS-transform: rotate (270deg); -over-rotate (270 degrees); } & Lt; / Style & gt; & Lt; Div class = "test" & gt; Example of rotating DIV with border and filling & Lt; Br / & gt; Some text & Lt; / Div & gt; EOF; // Output HTML content $ pdf- & gt; Write HTML ($ HTML, true, false, true, false, ''); // Close and output pdf document $ pdf- & gt; Output ('RotatedDIV_Sample.pdf', 'I');    

No comments:

Post a Comment