config.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472
  1. <?php
  2. // PAGING
  3. $this->mirrorMargins = 0; // alias = $useOddEven
  4. $this->restoreBlockPagebreaks = false;
  5. $this->forcePortraitMargins = false;
  6. $this->displayDefaultOrientation = false;
  7. // PAGE NUMBERING
  8. // Page numbering - Conditional Text
  9. $this->pagenumPrefix;
  10. $this->pagenumSuffix;
  11. $this->nbpgPrefix;
  12. $this->nbpgSuffix;
  13. // FONTS LANGUAGES & CHARACTER SETS
  14. // Allows automatic character set conversion if "charset=xxx" detected in html header (WriteHTML() )
  15. $this->allow_charset_conversion = true;
  16. $this->biDirectional=false; // automatically determine BIDI text in LTR page
  17. // If using a CJK codepage with only CJK/ASCII or embedded characters, this will prevent loading of Unicode fonts - makes smaller files
  18. $this->use_CJK_only = false;
  19. $this->autoFontGroupSize = 2; // 1: individual words are spanned; 2: words+; 3: as big chunks as possible.
  20. $this->useLang = true; // Default changed in mPDF 4.0
  21. $this->disableMultilingualJustify = true; // Disables If more than one language on a line using different text-justification
  22. // e.g. Chinese (character) and RTL (word)
  23. $this->useSubstitutionsMB = false; // mPDF 4.2 Substitute missing characters in UTF-8(multibyte) documents - from core fonts
  24. $this->falseBoldWeight = 5; // mPDF 4.2 Weight for bold text when using an artificial (outline) bold; value 0 (off) - 10 (rec. max)
  25. // CONFIGURATION
  26. // This will force all fonts to be substituted with Arial(Helvetica) Times or Courier when using codepage win-1252 - makes smaller files
  27. $this->useOnlyCoreFonts = false; // alias = $use_embeddedfonts_1252
  28. $this->allow_output_buffering = false;
  29. $this->enableImports = false; // mPDF 4.2.006 Adding mPDFI
  30. $this->collapseBlockMargins = true; // mPDF 4.2 Allows top and bottom margins to collapse between block elements
  31. $this->progressBar = 0; // mPDF 4.2 Shows progress-bars whilst generating file 0 off, 1 simple, 2 advanced
  32. $this->dpi = 96; // mPDF 4.4.003 To interpret "px" pixel values in HTML/CSS (see img_dpi below)
  33. // Automatically correct for tags where HTML specifies optional end tags e.g. P,LI,DD,TD
  34. // If you are confident input html is valid XHTML, turning this off may make it more reliable(?)
  35. $this->allow_html_optional_endtags = true;
  36. $this->ignore_invalid_utf8 = false;
  37. $this->text_input_as_HTML = false; // Converts all entities in Text inputs to UTF-8 before encoding
  38. $this->useGraphs = false;
  39. // PDFA1-b Compliant files
  40. $this->PDFA = false; // mPDF 4.2.018 true=Forces compliance with PDFA-1b spec
  41. $this->PDFAauto = false; // mPDF 4.2.018 Overrides warnings making changes when possible to force PDFA1-b compliance
  42. $this->ICCProfile = ''; // mPDF 4.2.018 Colour profile OutputIntent for defaultRGB colorSpace
  43. // sRGB_IEC61966-2-1 (=default if blank and PDFA), or other added .icc profile
  44. // mPDF 4.2 - When writing a block element with position:fixed and overflow:auto, mPDF scales it down to fit in the space
  45. // by repeatedly rewriting it and making adjustments. These values give the adjustments used, depending how far out
  46. // the previous guess was. The lower the number, the quicker it will finish, but the less accurate the fit may be.
  47. // FPR1 is for coarse adjustments, and FPR4 for fine adjustments when it is getting closer.
  48. $this->incrementFPR1 = 10; // i.e. will alter by 1/[10]th of width and try again until within closer limits
  49. $this->incrementFPR2 = 20;
  50. $this->incrementFPR3 = 30;
  51. $this->incrementFPR4 = 50; // i.e. will alter by 1/[50]th of width and try again when it nearly fits
  52. // DEBUGGING & DEVELOPERS
  53. $this->showStats = false;
  54. $this->debug = false;
  55. $this->showImageErrors = false; // false/true;
  56. $this->table_error_report = false; // Die and report error if table is too wide to contain whole words
  57. $this->table_error_report_param = ''; // Parameter which can be passed to show in error report i.e. chapter number being processed//
  58. // ANNOTATIONS
  59. $this->title2annots = false;
  60. $this->annotSize = 0.5; // default mm for Adobe annotations - nominal
  61. $this->annotMargin; // default position for Annotations
  62. $this->annotOpacity = 0.5; // default opacity for Annotations
  63. // BOOKMARKS
  64. $this->anchor2Bookmark = 0; // makes <a name=""> into a bookmark as well as internal link target; 1 = just name; 2 = name (p.34)
  65. // CSS & STYLES
  66. $this->CSSselectMedia='print'; // mPDF 4.3.001 screen, print, or any other CSS @media type (not "all")
  67. // $this->disablePrintCSS depracated // mPDF 4.3.001
  68. $this->rtlCSS = 2; // RTL: 0 overrides defaultCSS; 1 overrides stylesheets; 2 overrides inline styles - TEXT-ALIGN left => right etc.
  69. // when directionality is set to rtl
  70. // PAGE HEADERS & FOOTERS
  71. $this->forcePortraitHeaders = false;
  72. // Values used if simple FOOTER/HEADER given i.e. not array
  73. $this->defaultheaderfontsize = 8; // pt
  74. $this->defaultheaderfontstyle = 'BI'; // '', or 'B' or 'I' or 'BI'
  75. $this->defaultheaderline = 1; // 1 or 0 - line under the header
  76. $this->defaultfooterfontsize = 8; // pt
  77. $this->defaultfooterfontstyle = 'BI'; // '', or 'B' or 'I' or 'BI'
  78. $this->defaultfooterline = 1; // 1 or 0 - line over the footer
  79. $this->header_line_spacing = 0.25; // spacing between bottom of header and line (if present) - function of fontsize
  80. $this->footer_line_spacing = 0.25; // spacing between bottom of header and line (if present) - function of fontsize
  81. // If 'pad' margin-top sets fixed distance in mm (padding) between bottom of header and top of text.
  82. // If 'stretch' margin-top sets a minimum distance in mm between top of page and top of text, which expands if header is too large to fit.
  83. $this->setAutoTopMargin = false;
  84. $this->setAutoBottomMargin = false;
  85. $this->autoMarginPadding = 2; // distance in mm used as padding if 'stretch' mode is used
  86. // TABLES
  87. $this->simpleTables = false; // mPDF 4.2.017 Forces all cells to have same border, background etc. Improves performance
  88. $this->packTableData = false; // mPDF 4.3.009 Reduce memory usage processing tables (but with increased processing time)
  89. $this->ignore_table_percents = false;
  90. $this->ignore_table_widths = false;
  91. $this->keep_table_proportions = false; // If table width set > page width, force resizing but keep relative sizes
  92. // Also forces respect of cell widths set by %
  93. $this->shrink_tables_to_fit = 1.4; // automatically reduce fontsize in table if words would have to split ( not in CJK)
  94. // 0 or false to disable; value (if set) gives maximum factor to reduce fontsize
  95. $this->tableMinSizePriority = false; // mPDF 4.5.006 If page-break-inside:avoid but cannot fit on full page without
  96. // exceeding autosize; setting this value to true will force respsect for
  97. // autosize, and disable the page-break-inside:avoid
  98. $this->use_kwt = false;
  99. // IMAGES
  100. $this->img_dpi = 96; // Default dpi to output images if size not defined
  101. // See also above "dpi"
  102. // TEXT SPACING & JUSTIFICATION
  103. $this->justifyB4br = false; // mPDF 4.3.003 In justified text, <BR> does not cause the preceding text to be justified in browsers
  104. // Change to true to force justification (as in MS Word)
  105. $this->tabSpaces = 8; // Number of spaces to replace for a TAB in <pre> sections
  106. // Notepad uses 6, HTML specification recommends 8
  107. $this->jSWord = 0.4; // Proportion (/1) of space (when justifying margins) to allocate to Word vs. Character
  108. $this->jSmaxChar = 2; // Maximum spacing to allocate to character spacing. (0 = no maximum)
  109. $this->jSmaxCharLast = 1; // Maximum character spacing allowed (carried over) when finishing a last line
  110. $this->jSmaxWordLast = 2; // Maximum word spacing allowed (carried over) when finishing a last line
  111. $this->orphansAllowed = 5; // No of SUP or SUB characters to include on line to avoid leaving e.g. end of line//<sup>32</sup>
  112. $this->normalLineheight = 1.33; // mPDF 4.2 - Value used for line-height when CSS specified as 'normal' (default)
  113. // HYPHENATION
  114. $this->hyphenate = false;
  115. $this->hyphenateTables = false;
  116. $this->SHYlang = "en"; // Should be one of: 'en','de','es','fi','fr','it','nl','pl','ru','sv'
  117. $this->SHYleftmin = 2;
  118. $this->SHYrightmin = 2;
  119. $this->SHYcharmin = 2;
  120. $this->SHYcharmax = 10;
  121. // COLUMNS
  122. $this->keepColumns = false; // Set to go to the second column only when the first is full of text etc.
  123. $this->max_colH_correction = 1.15; // Maximum ratio to adjust column height when justifying - too large a value can give ugly results
  124. $this->ColGap=5;
  125. // LISTS
  126. $this->list_align_style = 'R'; // Determines alignment of numbers in numbered lists
  127. $this->list_indent_first_level = 0; // 1/0 yex/no to indent first level of list
  128. $this->list_number_suffix = '.'; // Content to follow a numbered list marker e.g. '.' gives 1. or IV.; ')' gives 1) or a)
  129. // WATERMARKS
  130. $this->watermarkImgBehind = false; // mPDF 4.3.018
  131. $this->showWatermarkText = 0; // alias = $TopicIsUnvalidated
  132. $this->showWatermarkImage = 0;
  133. $this->watermarkText = ''; // alias = $UnvalidatedText
  134. $this->watermarkImage = '';
  135. $this->watermark_font = '';
  136. $this->watermarkTextAlpha = 0.2;
  137. $this->watermarkImageAlpha = 0.2;
  138. $this->watermarkImgAlphaBlend = 'Normal'; // mPDF 4.4.002
  139. // Accepts any PDF spec. value: Normal, Multiply, Screen, Overlay, Darken, Lighten, ColorDodge, ColorBurn,
  140. // HardLight, SoftLight, Difference, Exclusion
  141. // "Multiply" works well for watermark image on top
  142. // BORDERS
  143. $this->autoPadding = false; // Automatically increases padding in block elements with border-radius set - if required
  144. // FORMS
  145. $this->textarea_lineheight = 1.25;
  146. // NOT USED???
  147. $this->formBgColor = 'white';
  148. $this->formBgColorSmall = '#DDDDFF'; // Color used for background of form fields if reduced in size (so border disappears)
  149. //////////////////////////////////////////////
  150. // Default values if no style sheet offered (cf. http://www.w3.org/TR/CSS21/sample.html)
  151. $this->defaultCSS = array(
  152. 'BODY' => array(
  153. 'FONT-FAMILY' => 'serif',
  154. 'FONT-SIZE' => '11pt',
  155. 'TEXT-ALIGN' => 'left',
  156. 'TEXT-INDENT' => '0pt', /* Moved from mPDF 4.0 */
  157. 'LINE-HEIGHT' => 'normal', /* mPDF 4.2 changed from 1.33 */
  158. 'MARGIN-COLLAPSE' => 'collapse', /* Custom property to collapse top/bottom margins at top/bottom of page - ignored in tables/lists */
  159. ),
  160. 'P' => array(
  161. /* 'TEXT-ALIGN' => 'left', Removed mPDF 4.0 */
  162. 'MARGIN' => '1.12em 0',
  163. ),
  164. 'H1' => array(
  165. 'FONT-SIZE' => '2em',
  166. 'FONT-WEIGHT' => 'bold',
  167. 'MARGIN' => '0.67em 0',
  168. 'PAGE-BREAK-AFTER' => 'avoid',
  169. ),
  170. 'H2' => array(
  171. 'FONT-SIZE' => '1.5em',
  172. 'FONT-WEIGHT' => 'bold',
  173. 'MARGIN' => '0.75em 0',
  174. 'PAGE-BREAK-AFTER' => 'avoid',
  175. ),
  176. 'H3' => array(
  177. 'FONT-SIZE' => '1.17em',
  178. 'FONT-WEIGHT' => 'bold',
  179. 'MARGIN' => '0.83em 0',
  180. 'PAGE-BREAK-AFTER' => 'avoid',
  181. ),
  182. 'H4' => array(
  183. 'FONT-WEIGHT' => 'bold',
  184. 'MARGIN' => '1.12em 0',
  185. 'PAGE-BREAK-AFTER' => 'avoid',
  186. ),
  187. 'H5' => array(
  188. 'FONT-SIZE' => '0.83em',
  189. 'FONT-WEIGHT' => 'bold',
  190. 'MARGIN' => '1.5em 0',
  191. 'PAGE-BREAK-AFTER' => 'avoid',
  192. ),
  193. 'H6' => array(
  194. 'FONT-SIZE' => '0.75em',
  195. 'FONT-WEIGHT' => 'bold',
  196. 'MARGIN' => '1.67em 0',
  197. 'PAGE-BREAK-AFTER' => 'avoid',
  198. ),
  199. 'HR' => array(
  200. 'COLOR' => '#888888',
  201. 'TEXT-ALIGN' => 'center',
  202. 'WIDTH' => '100%',
  203. 'HEIGHT' => '0.2mm',
  204. 'MARGIN-TOP' => '0.83em',
  205. 'MARGIN-BOTTOM' => '0.83em',
  206. ),
  207. 'PRE' => array(
  208. 'MARGIN' => '0.83em 0',
  209. 'FONT-FAMILY' => 'monospace',
  210. ),
  211. 'S' => array(
  212. 'TEXT-DECORATION' => 'line-through',
  213. ),
  214. 'STRIKE' => array(
  215. 'TEXT-DECORATION' => 'line-through',
  216. ),
  217. 'DEL' => array(
  218. 'TEXT-DECORATION' => 'line-through',
  219. ),
  220. 'SUB' => array(
  221. 'VERTICAL-ALIGN' => 'sub',
  222. 'FONT-SIZE' => '55%', /* Recommended 0.83em */
  223. ),
  224. 'SUP' => array(
  225. 'VERTICAL-ALIGN' => 'super',
  226. 'FONT-SIZE' => '55%', /* Recommended 0.83em */
  227. ),
  228. 'U' => array(
  229. 'TEXT-DECORATION' => 'underline',
  230. ),
  231. 'INS' => array(
  232. 'TEXT-DECORATION' => 'underline',
  233. ),
  234. 'B' => array(
  235. 'FONT-WEIGHT' => 'bold',
  236. ),
  237. 'STRONG' => array(
  238. 'FONT-WEIGHT' => 'bold',
  239. ),
  240. 'I' => array(
  241. 'FONT-STYLE' => 'italic',
  242. ),
  243. 'CITE' => array(
  244. 'FONT-STYLE' => 'italic',
  245. ),
  246. 'Q' => array(
  247. 'FONT-STYLE' => 'italic',
  248. ),
  249. 'EM' => array(
  250. 'FONT-STYLE' => 'italic',
  251. ),
  252. 'VAR' => array(
  253. 'FONT-STYLE' => 'italic',
  254. ),
  255. 'SAMP' => array(
  256. 'FONT-FAMILY' => 'monospace',
  257. ),
  258. 'CODE' => array(
  259. 'FONT-FAMILY' => 'monospace',
  260. ),
  261. 'KBD' => array(
  262. 'FONT-FAMILY' => 'monospace',
  263. ),
  264. 'TT' => array(
  265. 'FONT-FAMILY' => 'monospace',
  266. ),
  267. 'SMALL' => array(
  268. 'FONT-SIZE' => '83%',
  269. ),
  270. 'BIG' => array(
  271. 'FONT-SIZE' => '117%',
  272. ),
  273. 'ACRONYM' => array(
  274. 'FONT-SIZE' => '77%',
  275. 'FONT-WEIGHT' => 'bold',
  276. ),
  277. 'ADDRESS' => array(
  278. 'FONT-STYLE' => 'italic',
  279. ),
  280. 'BLOCKQUOTE' => array(
  281. 'MARGIN-LEFT' => '40px',
  282. 'MARGIN-RIGHT' => '40px',
  283. 'MARGIN-TOP' => '1.12em',
  284. 'MARGIN-BOTTOM' => '1.12em',
  285. ),
  286. 'A' => array(
  287. 'COLOR' => '#0000FF',
  288. 'TEXT-DECORATION' => 'underline',
  289. ),
  290. 'UL' => array(
  291. 'MARGIN' => '0.83em 0', /* only applied to top-level of nested lists */
  292. 'TEXT-INDENT' => '1.3em', /* Custom effect - list indent */
  293. ),
  294. 'OL' => array(
  295. 'MARGIN' => '0.83em 0', /* only applied to top-level of nested lists */
  296. 'TEXT-INDENT' => '1.3em', /* Custom effect - list indent */
  297. ),
  298. 'DL' => array(
  299. 'MARGIN' => '1.67em 0',
  300. ),
  301. 'DT' => array(
  302. ),
  303. 'DD' => array(
  304. 'PADDING-LEFT' => '40px',
  305. ),
  306. 'TABLE' => array(
  307. 'MARGIN' => '0', /* mPDF 4.2 changed */
  308. 'BORDER-COLLAPSE' => 'separate',
  309. 'BORDER-SPACING' => '2px',
  310. 'EMPTY-CELLS' => 'show',
  311. 'TEXT-ALIGN' => 'left',
  312. 'LINE-HEIGHT' => '1.2',
  313. 'VERTICAL-ALIGN' => 'middle',
  314. ),
  315. 'THEAD' => array(
  316. ),
  317. 'TFOOT' => array(
  318. ),
  319. 'TH' => array(
  320. 'FONT-WEIGHT' => 'bold',
  321. 'TEXT-ALIGN' => 'center',
  322. 'PADDING-LEFT' => '0.1em',
  323. 'PADDING-RIGHT' => '0.1em',
  324. 'PADDING-TOP' => '0.1em',
  325. 'PADDING-BOTTOM' => '0.1em',
  326. ),
  327. 'TD' => array(
  328. 'PADDING-LEFT' => '0.1em',
  329. 'PADDING-RIGHT' => '0.1em',
  330. 'PADDING-TOP' => '0.1em',
  331. 'PADDING-BOTTOM' => '0.1em',
  332. ),
  333. 'IMG' => array(
  334. 'MARGIN' => '0', /* mPDF 4.2 changed */
  335. 'VERTICAL-ALIGN' => 'baseline', /* mPDF 4.2 changed */
  336. ),
  337. 'INPUT' => array(
  338. 'FONT-FAMILY' => 'sans-serif',
  339. 'VERTICAL-ALIGN' => 'middle',
  340. 'FONT-SIZE' => '0.9em',
  341. ),
  342. 'SELECT' => array(
  343. 'FONT-FAMILY' => 'sans-serif',
  344. 'FONT-SIZE' => '0.9em',
  345. 'VERTICAL-ALIGN' => 'middle',
  346. ),
  347. 'TEXTAREA' => array(
  348. 'FONT-FAMILY' => 'monospace',
  349. 'FONT-SIZE' => '0.9em',
  350. 'VERTICAL-ALIGN' => 'text-bottom', /* mPDF 4.2 changed */
  351. ),
  352. );
  353. //////////////////////////////////////////////////
  354. // VALUES ONLY LIKELY TO BE CHANGED BY DEVELOPERS
  355. //////////////////////////////////////////////////
  356. $this->pdf_version = '1.4'; // mPDF 4.2.018 Previously set as 1.5
  357. // Hyphenation
  358. $this->SHYlanguages = array('en','de','es','fi','fr','it','nl','pl','ru','sv'); // existing defined patterns
  359. $this->default_lineheight_correction=1.2; // Value 1 sets lineheight=fontsize height;
  360. // Value used if line-height not set by CSS (usuallly is)
  361. $this->fontsizes = array('XX-SMALL'=>0.7, 'X-SMALL'=>0.77, 'SMALL'=>0.86, 'MEDIUM'=>1, 'LARGE'=>1.2, 'X-LARGE'=>1.5, 'XX-LARGE'=>2);
  362. // CHARACTER PATTERN MATCHES TO DETECT LANGUAGES
  363. // pattern used to detect RTL characters -> force RTL
  364. $this->pregRTLchars = "\x{0590}-\x{06FF}\x{0750}-\x{077F}\x{FB00}-\x{FDFD}\x{FE70}-\x{FEFF}";
  365. // CJK Chars which require changing and are distinctive of specific charset
  366. $this->pregUHCchars = "\x{3130}-\x{318F}\x{AC00}-\x{D7AF}";
  367. $this->pregSJISchars = "\x{3040}-\x{309F}\x{30A0}-\x{30FF}\x{3190}-\x{319F}\x{31F0}-\x{31FF}";
  368. // Chars which distinguish CJK but not between different // mPDF 3.0 widen Plane 3
  369. $this->pregCJKchars = "\x{2E80}-\x{A4CF}\x{A800}-\x{D7AF}\x{F900}-\x{FAFF}\x{FF00}-\x{FFEF}\x{20000}-\x{2FA1F}";
  370. // ASCII Chars which shouldn't break string
  371. // Use for very specific words
  372. $this->pregASCIIchars1 = "\x{0021}-\x{002E}\x{0030}-\x{003B}?"; // no [SPACE]
  373. // Use for words+
  374. $this->pregASCIIchars2 = "\x{0020}-\x{002E}\x{0030}-\x{003B}?"; // [SPACE] punctuation and 0-9
  375. // Use for chunks > words
  376. $this->pregASCIIchars3 = "\x{0000}-\x{002E}\x{0030}-\x{003B}\x{003F}-\x{007E}"; // all except <>
  377. // Vietnamese - specific
  378. $this->pregVIETchars = "\x{01A0}\x{01A1}\x{01AF}\x{01B0}\x{1EA0}-\x{1EF1}";
  379. // Vietnamese - Chars which shouldn't break string
  380. $this->pregVIETPluschars = "\x{0000}-\x{003B}\x{003F}-\x{00FF}\x{0300}-\x{036F}\x{0102}\x{0103}\x{0110}\x{0111}\x{0128}\x{0129}\x{0168}\x{0169}\x{1EF1}-\x{1EF9}"; // omits < >
  381. // Arabic
  382. $this->pregARABICchars = "\x{0600}-\x{06FF}\x{0750}-\x{077F}\x{FB50}-\x{FDFD}\x{FE70}-\x{FEFF}";
  383. // Characters of Urdu, Pashto, Sindhi (but NOT arabic or persian/farsi) [not covered by DejavuSans font]
  384. $this->pregNonARABICchars = "\x{0671}-\x{067D}\x{067F}-\x{0685}\x{0687}-\x{0697}\x{0699}-\x{06A8}\x{06AA}-\x{06AE}\x{06B0}-\x{06CB}\x{06CD}-\x{06D3}";
  385. $this->pregHEBchars = "\x{0590}-\x{05FF}\x{FB00}-\x{FB49}"; // Hebrew
  386. // INDIC
  387. $this->pregHIchars = "\x{0900}-\x{0963}\x{0966}-\x{097F}"; // Devanagari (Hindi) minus the common indic punctuation 0964,0965
  388. $this->pregBNchars = "\x{0980}-\x{09FF}"; // Bengali
  389. $this->pregPAchars = "\x{0A00}-\x{0A7F}"; // Gurmukhi (Punjabi)
  390. $this->pregGUchars = "\x{0A80}-\x{0AFF}"; // Gujarati
  391. $this->pregORchars = "\x{0B00}-\x{0B7F}"; // Oriya
  392. $this->pregTAchars = "\x{0B80}-\x{0BFF}"; // Tamil
  393. $this->pregTEchars = "\x{0C00}-\x{0C7F}"; // Telugu
  394. $this->pregKNchars = "\x{0C80}-\x{0CFF}"; // Kannada
  395. $this->pregMLchars = "\x{0D00}-\x{0D7F}"; // Malayalam
  396. $this->pregSHchars = "\x{0D80}-\x{0DFF}"; // Sinhala
  397. $this->pregINDextra = "\x{200B}-\x{200D}\x{0964}\x{0965}\x{0020}-\x{0022}\x{0024}-\x{002E}\x{003A}-\x{003F}\x{005B}-\x{0060}\x{007B}-\x{007E}-\x{00A0}";
  398. // 200B-D=Zero-width joiners; 0964,0965=Generic Indic punctuation; NBSP & general punctuation (excludes # and / so can use in autoFont() )
  399. $this->allowedCSStags = 'DIV|P|H1|H2|H3|H4|H5|H6|FORM|IMG|A|BODY|TABLE|HR|THEAD|TFOOT|TBODY|TH|TR|TD|UL|OL|LI|PRE|BLOCKQUOTE|ADDRESS|DL|DT|DD';
  400. // mPDF 4.0
  401. $this->allowedCSStags .= '|SPAN|TT|I|B|BIG|SMALL|EM|STRONG|DFN|CODE|SAMP|KBD|VAR|CITE|ABBR|ACRONYM|STRIKE|S|U|DEL|INS|Q|FONT';
  402. $this->outerblocktags = array('DIV','FORM','CENTER','DL');
  403. $this->innerblocktags = array('P','BLOCKQUOTE','ADDRESS','PRE','H1','H2','H3','H4','H5','H6','DT','DD');
  404. // NOT Currently used
  405. $this->inlinetags = array('SPAN','TT','I','B','BIG','SMALL','EM','STRONG','DFN','CODE','SAMP','KBD','VAR','CITE','ABBR','ACRONYM','STRIKE','S','U','DEL','INS','Q','FONT','TTS','TTZ','TTA');
  406. $this->listtags = array('UL','OL','LI');
  407. $this->tabletags = array('TABLE','THEAD','TFOOT','TBODY','TFOOT','TR','TH','TD');
  408. $this->formtags = array('TEXTAREA','INPUT','SELECT');
  409. ?>