Rotate Element in PDF Template for BarCode caption

Below is the code for rotating the barcode caption in 270°

<table width=“100%”>

            <tr>

                    <td align=“left” rotate=“-90” width=“20%” vertical-align=“bottom”>

                     Caption-1

                    </td>

                     <td width=“70%” align=“center” >

                      <barcode codetype=“code128” width=“96%” height=“40mm” class=“barcode” showtext=“true” value=“12345678901” />

                    </td>

                  </tr>

                  <tr>

                    <td align=“center” rotate=“-90” width=“20%” vertical-align=“bottom” >

                      Caption-2

                    </td>

                    <td width=“70%” align=“center” >

                      <barcode codetype=“code128” width=“95%” height=“40mm” class=“barcode” showtext=“true” value=“000000000000000000” />

                    </td>

                  </tr>

          </table>

The result will looks like:

Leave a comment

Your email address will not be published. Required fields are marked *