example26_RTL.php 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. <?php
  2. $html = "
  3. <h1>mPDF</h1>
  4. <h2>RTL Languages</h2>
  5. <h4>English</h4>
  6. <p>Please note that I do not understand any of the scripts below. The texts are borrowed from News websites, and I have used words and bits of phrases just to demonstrate the program.</p>
  7. <h4>Hebrew (pangram)</h4>
  8. <p lang=\"he\">\xd7\x93\xd7\x92 \xd7\xa1\xd7\xa7\xd7\xa8\xd7\x9f \xd7\xa9\xd7\x98 \xd7\x91\xd7\x99\xd7\x9d \xd7\x9e\xd7\x90\xd7\x95\xd7\x9b\xd7\x96\xd7\x91 \xd7\x95\xd7\x9c\xd7\xa4\xd7\xaa\xd7\xa2 \xd7\x9e\xd7\xa6\xd7\x90 \xd7\x97\xd7\x91\xd7\xa8\xd7\x94 </p>
  9. <p lang=\"he\">\xd7\x90\xd7\x95 \xd7\x94\xd7\xa0\xd7\xa1\xd7\x94 \xd7\x90\xd7\x9c\xd7\x94\xd7\x99\xd7\x9d, \xd7\x9c\xd7\x91\xd7\x95\xd7\x90 \xd7\x9c\xd7\xa7\xd7\x97\xd7\xaa \xd7\x9c\xd7\x95 \xd7\x92\xd7\x95\xd7\x99 \xd7\x9e\xd7\xa7\xd7\xa8\xd7\x91 \xd7\x92\xd7\x95\xd7\x99, \xd7\x91\xd7\x9e\xd7\xa1\xd7\xaa \xd7\x91\xd7\x90\xd7\xaa\xd7\xaa \xd7\x95\xd7\x91\xd7\x9e\xd7\x95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d7\xa4\xd7\x9a \xd7\xa2\xd7\x9c\xd7\x99\xd7\x94\xd7\x9d \xd7\x96\xd7\xa2\xd7\x9e\xd7\x99 \xd7\x9b\xd7\x9c \xd7\x97\xd7\xa8\xd7\x95\xd7\x9f \xd7\x90\xd7\xa4\xd7\x99, \xd7\x9b\xd7\x99 \xd7\x91\xd7\x90\xd7\xa9 \xd7\xa7\xd7\xa0\xd7\x90\xd7\xaa\xd7\x99 \xd7\xaa\xd7\x90\xd7\x9b\xd7\x9c \xd7\x9b\xd7\x9c \xd7\x94\xd7\x90\xd7\xa8\xd7\xa5 </p>
  11. <p lang=\"he\">\xd7\xa9\xd7\xa4\xd7\x9f \xd7\x90\xd7\x9b\xd7\x9c \xd7\xa7\xd7\xa6\xd7\xaa \xd7\x92\xd7\x96\xd7\xa8 \xd7\x91\xd7\x98\xd7\xa2\xd7\x9d \xd7\x97\xd7\xa1\xd7\x94, \xd7\x95\xd7\x93\xd7\x99. </p>
  12. <h4>Arabic</h4>
  13. <p>\xd8\xa7\xd9\x84\xd8\xa7\xd9\x85\xd8\xb1\xd9\x8a\xd9\x83\xd9\x8a \xd8\xac\xd9\x88\xd8\xb1\xd8\xac \xd8\xa8\xd9\x88\xd8\xb4 \xd9\x81\xd9\x8a \xd8\xad\xd8\xaf\xd9\x8a\xd8\xab \xd9\x85\xd8\xaa\xd9\x84\xd9\x81\xd8\xb2<annotation content=\"\xd8\xa7\xd9\x84\xd8\xa7\xd9\x85\xd8\xb1\xd9\x8a\xd9\x83\xd9\x8a \xd8\xac\xd9\x88\xd8\xb1\xd8\xac\" subject=\"\xd8\xac\xd9\x88\xd8\xb1\xd8\xac\" icon=\"Comment\" color=\"#FE88EF\" author=\"\xd8\xac\xd9\x88\xd8\xb1\xd8\xac\" />
  14. \xd9\x81\xd9\x8a \xd8\xa7\xd9\x84\xd8\xb0\xd9\x83\xd8\xb1\xd9\x89 \xd8\xa7\xd9\x84\xd8\xb1\xd8\xa7\xd8\xa8\xd8\xb9\x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c3\x97\xc6\x92\xe2\x88\xab\xe2\x88\x91\xe2\x88\x9e\xe2\x88\x9a\xe2\x89\x88\xe2\x89\xa0\xe2\x89\xa1\xe2\x88\x8f\xc2\xac\xe2\x88\xa9\xe2\x88\x82</p>
  34. <p>\xce\x92\xce\x93\xce\x94\xce\x95\xce\x96\xce\x97\xce\x98\xce\x99\xce\x9a\xce\x9b\xce\x9c\xce\x9d\xce\x9e\xce\x9f\xce\xa0\xce\xa1\xce\xa3\xce\xa4\xce\xa5\xce\xa6\xce\xa7\xce\xa8\xce\xa9</p>
  35. <p>\xce\xb1\xce\xb2\xce\xb3\xce\xb4\xce\xb5\xce\xb6\xce\xb7\xce\xb8\xce\xb9\xce\xba\xce\xbb\xce\xbc\xce\xbd\xce\xbe\xce\xbf\xcf\x80\xcf\x81\xcf\x82\xcf\x83\xcf\x84\xcf\x85\xcf\x86\xcf\x87\xcf\x88\xcf\x89</p>
  36. <p>\xe2\x86\x90\xe2\x86\x91\xe2\x86\x92\xe2\x86\x93\xe2\x86\x94\xe2\x97\x8a\xe2\x99\xa3\xe2\x99\xa5\xe2\x99\xa6</p>
  37. <h4>Dingbats</h4>
  38. <p>\xc2\xa7&lt;&gt;\xe2\x86\x92\xe2\x86\x94\xe2\x99\xa3\xe2\x99\xa5\xe2\x99\xa6</p>
  39. <h4>win-1252 </h4>
  40. <p>\xc2\xa2\xe2\x82\xac\xc2\xa9\xc2\xae\xe2\x84\xa2\xe2\x80\xb0\xc2\xb5\xc2\xb7\xe2\x80\xa2\xe2\x80\xa6\xc2\xa7\xc3\x9f\xe2\x80\xb9\xe2\x80\xba\xc2\xab\xc2\xbb\xe2\x80\x98\xe2\x80\x99\xe2\x80\x9c\xe2\x80\x9d\xe2\x80\x9a\xe2\x80\x9e&lt;&gt;\xe2\x80\x93\xe2\x80\x94\xcb\x86\xcb\x9c\xc2\xb0\xc2\xb1\xc3\xb7\xc3\x97\xc2\xbc\xc2\xbd\xc2\xbe\xc6\x92\xc2\xac\xe2\x80\xa0\xe2\x80\xa1</p>
  41. <p>\xc3\x80\xc3\x81\xc3\x82\xc3\x83\xc3\x84\xc3\x85\xc3\x86\xc3\x87\xc3\x88\xc3\x89\xc3\x8a\xc3\x8b\xc3\x8c\xc3\x8d\xc3\x8e\xc3\x8f\xc3\x90\xc3\x91\xc3\x92\xc3\x93\xc3\x94\xc3\x95\xc3\x96\xc3\x98\xc5\x92\xc5\xa0\xc3\x99\xc3\x9a\xc3\x9b\xc3\x9c\xc3\x9d\xc5\xb8</p>
  42. <p>\xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3\xc3\xa4\xc3\xa5\xc3\xa6\xc3\xa7\xc3\xa8\xc3\xa9\xc3\xaa\xc3\xab\xc3\xac\xc3\xad\xc3\xae\xc3\xaf\xc3\xb0\xc3\xb1\xc3\xb2\xc3\xb4\xc3\xb5\xc3\xb6\xc3\xb8\xc5\x93\xc5\xa1\xc3\xb9\xc3\xba\xc3\xbb\xc3\xbc\xc3\xbd\xc3\xbe\xc3\xbf</p>
  43. <h3>Bidirectional text</h3>
  44. <p>Text alignment, unless specified, is neutral and therefore dictated by the 'direction' of the paragraph.</p>
  45. <p>All text is analysed chunk by chunk (between tags) and at the end of every block (div, p, td). If the text contains RTL characters, those characters and words are reversed.</p>
  46. <p>\xd9\x88\xd8\xa7\xd8\xaf\xd8\xa7\xd9\x86 \xd8\xa7\xd9\x84\xd8\xa8\xd9\x8a\xd8\xaa \xd8\xa7\xd9\x84\xd8\xa7\xd8\xa8\xd9\x8a\xd8\xb6 &quot;\xd8\xa8\xd8\xb4\xd8\xaf\xd8\xa9&quot; \xd8\xaa\xd9\x81\xd8\xac\xd9\x8a\xd8\xb1 with some english in the middle \xd8\xa7\xd9\x8a\xd9\x84\xd8\xa7\xd8\xaa \xd9\x81\xd9\x8a\xd9\x85\xd8\xa7 \xd8\xa7\xd8\xb9\xd8\xb1\xd8\xa8\xd8\xaa \xd9\x88\xd8\xb2\xd8\xa7\xd8\xb1\xd8\xa9</p>
  47. <p>To set the 'directionality' of the whole document e.g. to reverse default alignment, tables, lists etc. you can set the dir attribute or the direction CSS property on the HTML or BODY tag to 'rtl' e.g.</p>
  48. <p>&lt;body style=\"direction: rtl\"&gt;</p>
  49. <p>&lt;body dir=\"rtl\"&gt;</p>
  50. <p style=\"text-align: right\">or you can use \$mpdf->SetDirectionality('rtl');</p>
  51. <pre style=\"direction: ltr; background-color: #DDFFFF; page-break-inside: avoid;\">
  52. - the document now has a baseline direction; this determines the
  53. - behaviour of blocks for which text-align has not been specifically set
  54. - layout of mirrored page-margins, columns, ToC and Indexes, headers and footers
  55. - base direction can be set by any of:
  56. - \$mpdf-&gt;SetDirectionality('rtl');
  57. - &lt;html dir=\"rtl\" or style=\"direction: rtl;\"&gt;
  58. - &lt;body dir=\"rtl\" or style=\"direction: rtl;\"&gt;
  59. - base direction is an inherited CSS property, so will affect all content, unless...
  60. - direction can be set for all HTML block elements e.g. &lt;DIV&gt;&lt;P&gt;&lt;TABLE&gt;&lt;UL&gt; etc using
  61. - CSS property &lt; style=\"direction: rtl;\"&gt;
  62. - direction can only be set on the top-level element of nested lists
  63. - direction can only be set on &lt;TABLE&gt;, NOT on THEAD, TBODY, TD etc.
  64. - nested tables CAN have different directions
  65. - NOTE that block/table margins/paddings are NOT reversed by direction
  66. NB mPDF &lt;5.1 reversed the margins/paddings for blocks when RTL set.
  67. - language (either CSS \"lang\", using Autofont, or through initial set-up e.g. \$mpdf = new mPDF('ar') )
  68. no longer affects direction in any way.
  69. NB config_cp.php has been changed as a result; any values of \"dir\" set here are now ineffective
  70. - default text-align is now as per CSS spec: \"a nameless value which is dependent on direction\"
  71. NB default text-align removed in default stylesheet in config.php
  72. - once text-align is specified, it is respected and inherited
  73. NB mPDF &lt;5.1 reversed the text-align property for all blocks when RTL set.
  74. - the configurable value $rtlcss is depracated, as it is no longer required
  75. - improved algorithm for dtermining text direction
  76. - english word blocks are handled in text reversal as one block i.e. dir=\"rtl\"
  77. [arabic text] this will not be reversed [arabic text]
  78. - arabic numerals 0-9 handled correctly
  79. Although the control of direction for block elements is now more configurable, the control of
  80. text direction (RTL arabic characters) remains fully automatic and unconfigurable.
  81. &lt;BDO&gt; etc has no effect. Enclosing text in silent tags can sometimes help e.g.
  82. content&lt;span&gt;[arabic text]&lt;/span&gt;content
  83. </pre>
  84. <pagebreak />
  85. <h3>Tables</h3>
  86. <p>Tables are automatically transposed when the direction is rtl:</p>
  87. <table class=\"bpmTopicC\"><thead>
  88. <tr class=\"headerrow\"><th>\xd8\xa7\xd9\x84\xd8\xa7\xd9\x85\xd8\xb1\xd9\x8a\xd9\x83\xd9\x8a</th>
  89. <td>
  90. <p>\xd8\xa7\xd9\x84\xd8\xa7\xd9\x85\xd8\xb1\xd9\x8a\xd9\x83\xd9\x8a</p>
  91. </td>
  92. <td>\xd8\xa7\xd9\x84\xd8\xa7\xd9\x85\xd8\xb1\xd9\x8a\xd9\x83\xd9\x8a</td>
  93. </tr>
  94. </thead><tbody>
  95. <tr class=\"oddrow\"><th>\xd9\x82\xd8\xa7\xd9\x84</th>
  96. <td>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</td>
  97. <td>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</td>
  98. </tr>
  99. <tr class=\"evenrow\"><th>\xd9\x82\xd8\xa7\xd9\x84</th>
  100. <td>
  101. <p>\xd9\x82\xd8\xa7\xd9\x84 \xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3 \xd8\xa7\xd9\x84\xd8\xa7\xd9\x85\xd8\xb1\xd9\x8a\xd9\x83\xd9\x8a \xd8\xac\xd9\x88\xd8\xb1\xd8\xac \xd8\xa8\xd9\x88\xd8\xb4 \xd9\x81\xd9\x8a \xd8\xad\xd8\xaf\xd9\x8a\xd8\xab \xd9\x85\xd8\xaa\xd9\x84\xd9\x81\xd8\xb2</p>
  102. </td>
  103. <td>
  104. <p>\xd9\x82\xd8\xa7\xd9\x84 \xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3 \xd8\xa7\xd9\x84\xd8\xa7\xd9\x85\xd8\xb1\xd9\x8a\xd9\x83\xd9\x8a \xd8\xac\xd9\x88\xd8\xb1\xd8\xac \xd8\xa8\xd9\x88\xd8\xb4 \xd9\x81\xd9\x8a \xd8\xad\xd8\xaf\xd9\x8a\xd8\xab \xd9\x85\xd8\xaa\xd9\x84\xd9\x81\xd8\xb2</p>
  105. </td>
  106. </tr>
  107. <tr class=\"oddrow\"><th>
  108. <p>\xd9\x82\xd8\xa7\xd9\x84</p>
  109. </th>
  110. <td>
  111. <p>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</p>
  112. </td>
  113. <td>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</td>
  114. </tr>
  115. <tr class=\"evenrow\"><th>
  116. <p>\xd9\x82\xd8\xa7\xd9\x84</p>
  117. <p>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</p>
  118. </th>
  119. <td>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</td>
  120. <td>
  121. <p>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</p>
  122. </td>
  123. </tr>
  124. <tr class=\"oddrow\"><th>\xd9\x82\xd8\xa7\xd9\x84</th>
  125. <td>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</td>
  126. <td>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</td>
  127. </tr>
  128. <tr class=\"evenrow\"><th>\xd9\x82\xd8\xa7\xd9\x84</th>
  129. <td>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</td>
  130. <td>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</td>
  131. </tr>
  132. <tr class=\"oddrow\"><th>\xd9\x82\xd8\xa7\xd9\x84</th>
  133. <td>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</td>
  134. <td>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</td>
  135. </tr>
  136. <tr class=\"evenrow\"><th>\xd9\x82\xd8\xa7\xd9\x84</th>
  137. <td>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</td>
  138. <td>\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</td>
  139. </tr>
  140. </tbody></table>
  141. <p>&nbsp;</p>
  142. <h3>Lists</h3>
  143. <p>Lists will automatically reverse as well (note the use of list-style to set numbering):</p>
  144. <div style=\"background-color:#ddccff; padding:5pt;\">
  145. <ol style=\"list-style-type: arabic-indic;\">
  146. <li>\xd9\x82\xd8\xa7\xd9\x84 \xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3</li>
  147. <li>\xd8\xa7\xd9\x84\xd8\xa7\xd9\x85\xd8\xb1\xd9\x8a\xd9\x83\xd9\x8a
  148. <ul><li>\xd8\xac\xd9\x88\xd8\xb1\xd8\xac \xd8\xa8\xd9\x88\xd8\xb4 \xd9\x81\xd9\x8a \xd8\xac\xd9\x88\xd8\xb1\xd8\xac \xd8\xa8\xd9\x88\xd8\xb4 \xd9\x81\xd9\x8a \xd8\xac\xd9\x88\xd8\xb1\xd8\xac \xd8\xa8\xd9\x88\xd8\xb4 \xd9\x81\xd9\x8a \xd8\xac\xd9\x88\xd8\xb1\xd8\xac \xd8\xa8\xd9\x88\xd8\xb4 \xd9\x81\xd9\x8a \xd8\xac\xd9\x88\xd8\xb1\xd8\xac \xd8\xa8\xd9\x88\xd8\xb4 \xd9\x81\xd9\x8a \xd8\xac\xd9\x88\xd8\xb1\xd8\xac </li>
  149. <li>\xd8\xad\xd8\xaf\xd9\x8a\xd8\xab \xd9\x85\xd8\xaa\xd9\x84\xd9\x81\xd8\xb2
  150. <ul>
  151. <li>\xd9\x81\xd9\x8a \xd8\xa7\xd9\x84\xd8\xb0\xd9\x83\xd8\xb1\xd9\x89 \xd8\xa7\xd9\x84\xd8\xb1\xd8\xa7\xd8\xa8\xd8\xb9\xd8\xa9</li>
  152. <li>\xd9\x84\xd9\x84\xd8\xba\xd8\xb2\xd9\x88 \xd8\xa7\xd9\x84\xd8\xa7\xd9\x85\xd8\xb1\xd9\x8a\xd9\x83\xd9\x8a</li>
  153. </ul>
  154. </li>
  155. </ul></li>
  156. <li>\xd9\x84\xd9\x84\xd8\xb9\xd8\xb1\xd8\xa7\xd9\x82 \xd8\xa7\xd9\x86 \xd8\xa7\xd9\x84\xd8\xa7\xd9\x88\xd9\x84\xd9\x88\xd9\x8a\xd8\xa9 \xd8\xad\xd8\xa7\xd9\x84\xd9\x8a\xd8\xa7</li>
  157. <li>\xd9\x84\xd8\xa7\xd8\xb9\xd8\xa7\xd8\xaf\xd8\xa9 \xd8\xa7\xd9\x84\xd8\xa7\xd9\x85\xd9\x86 \xd9\x84\xd9\x84\xd8\xb9\xd8\xb1\xd8\xa7\xd9\x82</li>
  158. </ol>
  159. </div>
  160. ";
  161. //==============================================================
  162. // Set Header and Footer
  163. $h = array (
  164. 'odd' =>
  165. array (
  166. 'R' =>
  167. array (
  168. 'content' => '{PAGENO}',
  169. 'font-size' => 8,
  170. 'font-style' => 'B',
  171. ),
  172. 'L' =>
  173. array (
  174. 'content' => "\xd9\x82\xd8\xa7\xd9\x84 \xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3",
  175. 'font-size' => 8,
  176. 'font-style' => 'B',
  177. ),
  178. 'line' => 1,
  179. ),
  180. 'even' =>
  181. array (
  182. 'L' =>
  183. array (
  184. 'content' => '{PAGENO}',
  185. 'font-size' => 8,
  186. 'font-style' => 'B',
  187. ),
  188. 'R' =>
  189. array (
  190. 'content' => "\xd9\x82\xd8\xa7\xd9\x84 \xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3",
  191. 'font-size' => 8,
  192. 'font-style' => 'B',
  193. ),
  194. 'line' => 1,
  195. ),
  196. );
  197. $f = array (
  198. 'odd' =>
  199. array (
  200. 'L' =>
  201. array (
  202. 'content' => '{DATE Y-m-d}',
  203. 'font-size' => 8,
  204. 'font-style' => 'BI',
  205. ),
  206. 'C' =>
  207. array (
  208. 'content' => '- {PAGENO} -',
  209. 'font-size' => 8,
  210. ),
  211. 'R' =>
  212. array (
  213. 'content' => "\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3",
  214. 'font-size' => 8,
  215. ),
  216. 'line' => 1,
  217. ),
  218. 'even' =>
  219. array (
  220. 'L' =>
  221. array (
  222. 'content' => "\xd8\xa7\xd9\x84\xd8\xb1\xd8\xa6\xd9\x8a\xd8\xb3",
  223. 'font-size' => 8,
  224. 'font-style' => 'B',
  225. ),
  226. 'C' =>
  227. array (
  228. 'content' => '- {PAGENO} -',
  229. 'font-size' => 8,
  230. ),
  231. 'R' =>
  232. array (
  233. 'content' => '{DATE Y-m-d}',
  234. 'font-size' => 8,
  235. 'font-style' => 'BI',
  236. ),
  237. 'line' => 1,
  238. ),
  239. );
  240. //==============================================================
  241. //==============================================================
  242. //==============================================================
  243. include("../mpdf.php");
  244. $mpdf=new mPDF('ar','A4','','',32,25,27,25,16,13);
  245. // From mPDF 5.1 onwards you must set:
  246. $mpdf->SetDirectionality('rtl');
  247. $mpdf->debug = true;
  248. $mpdf->mirrorMargins = true;
  249. $mpdf->useSubstitutions = true;
  250. $mpdf->SetDisplayMode('fullpage','two');
  251. $mpdf->setHeader($h);
  252. $mpdf->setFooter($f);
  253. $stylesheet = file_get_contents('mpdfstyletables.css');
  254. $mpdf->WriteHTML($stylesheet,1); // The parameter 1 tells that this is css/style only and no body/html/text
  255. $mpdf->WriteHTML($html);
  256. $mpdf->AddPage();
  257. $mpdf->SetColumns(2,'J');
  258. $mpdf->WriteHTML($html);
  259. $mpdf->Output();
  260. exit;
  261. //==============================================================
  262. //==============================================================
  263. //==============================================================
  264. ?>