|
38 | 38 | * Times-Roman, Times-Bold, Times-BoldItalic, Times-Italic,
|
39 | 39 | * Symbol, ZapfDingbats.
|
40 | 40 | */
|
41 |
| - "DOMPDF_FONT_DIR" => storage_path('fonts/'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782) |
| 41 | + "font_dir" => storage_path('fonts/'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782) |
42 | 42 |
|
43 | 43 | /**
|
44 | 44 | * The location of the DOMPDF font cache directory
|
|
48 | 48 | *
|
49 | 49 | * Note: This directory must exist and be writable by the webserver process.
|
50 | 50 | */
|
51 |
| - "DOMPDF_FONT_CACHE" => storage_path('fonts/'), |
| 51 | + "font_cache" => storage_path('fonts/'), |
52 | 52 |
|
53 | 53 | /**
|
54 | 54 | * The location of a temporary directory.
|
|
57 | 57 | * The temporary directory is required to download remote images and when
|
58 | 58 | * using the PFDLib back end.
|
59 | 59 | */
|
60 |
| - "DOMPDF_TEMP_DIR" => sys_get_temp_dir(), |
| 60 | + "temp_dir" => sys_get_temp_dir(), |
61 | 61 |
|
62 | 62 | /**
|
63 | 63 | * ==== IMPORTANT ====
|
|
71 | 71 | * direct class use like:
|
72 | 72 | * $dompdf = new DOMPDF(); $dompdf->load_html($htmldata); $dompdf->render(); $pdfdata = $dompdf->output();
|
73 | 73 | */
|
74 |
| - "DOMPDF_CHROOT" => realpath(base_path()), |
75 |
| - |
76 |
| - /** |
77 |
| - * Whether to use Unicode fonts or not. |
78 |
| - * |
79 |
| - * When set to true the PDF backend must be set to "CPDF" and fonts must be |
80 |
| - * loaded via load_font.php. |
81 |
| - * |
82 |
| - * When enabled, dompdf can support all Unicode glyphs. Any glyphs used in a |
83 |
| - * document must be present in your fonts, however. |
84 |
| - */ |
85 |
| - "DOMPDF_UNICODE_ENABLED" => true, |
| 74 | + "chroot" => realpath(base_path()), |
86 | 75 |
|
87 | 76 | /**
|
88 | 77 | * Whether to enable font subsetting or not.
|
89 | 78 | */
|
90 |
| - "DOMPDF_ENABLE_FONT_SUBSETTING" => false, |
| 79 | + "enable_font_subsetting" => false, |
91 | 80 |
|
92 | 81 | /**
|
93 | 82 | * The PDF rendering backend to use
|
|
117 | 106 | * @link http://www.ros.co.nz/pdf
|
118 | 107 | * @link http://www.php.net/image
|
119 | 108 | */
|
120 |
| - "DOMPDF_PDF_BACKEND" => "CPDF", |
| 109 | + "pdf_backend" => "CPDF", |
121 | 110 |
|
122 | 111 | /**
|
123 | 112 | * PDFlib license key
|
|
143 | 132 | * the desired content might be different (e.g. screen or projection view of html file).
|
144 | 133 | * Therefore allow specification of content here.
|
145 | 134 | */
|
146 |
| - "DOMPDF_DEFAULT_MEDIA_TYPE" => "screen", |
| 135 | + "default_media_type" => "screen", |
147 | 136 |
|
148 | 137 | /**
|
149 | 138 | * The default paper size.
|
|
152 | 141 | *
|
153 | 142 | * @see CPDF_Adapter::PAPER_SIZES for valid sizes ('letter', 'legal', 'A4', etc.)
|
154 | 143 | */
|
155 |
| - "DOMPDF_DEFAULT_PAPER_SIZE" => "a4", |
| 144 | + "default_paper_size" => "a4", |
156 | 145 |
|
157 | 146 | /**
|
158 | 147 | * The default font family
|
159 | 148 | *
|
160 | 149 | * Used if no suitable fonts can be found. This must exist in the font folder.
|
161 | 150 | * @var string
|
162 | 151 | */
|
163 |
| - "DOMPDF_DEFAULT_FONT" => "serif", |
| 152 | + "default_font" => "serif", |
164 | 153 |
|
165 | 154 | /**
|
166 | 155 | * Image DPI setting
|
|
195 | 184 | *
|
196 | 185 | * @var int
|
197 | 186 | */
|
198 |
| - "DOMPDF_DPI" => 96, |
| 187 | + "dpi" => 96, |
199 | 188 |
|
200 | 189 | /**
|
201 | 190 | * Enable inline PHP
|
|
209 | 198 | *
|
210 | 199 | * @var bool
|
211 | 200 | */
|
212 |
| - "DOMPDF_ENABLE_PHP" => false, |
| 201 | + "enable_php" => false, |
213 | 202 |
|
214 | 203 | /**
|
215 | 204 | * Enable inline Javascript
|
|
219 | 208 | *
|
220 | 209 | * @var bool
|
221 | 210 | */
|
222 |
| - "DOMPDF_ENABLE_JAVASCRIPT" => true, |
| 211 | + "enable_javascript" => true, |
223 | 212 |
|
224 | 213 | /**
|
225 | 214 | * Enable remote file access
|
|
238 | 227 | *
|
239 | 228 | * @var bool
|
240 | 229 | */
|
241 |
| - "DOMPDF_ENABLE_REMOTE" => true, |
| 230 | + "enable_remote" => true, |
242 | 231 |
|
243 | 232 | /**
|
244 | 233 | * A ratio applied to the fonts height to be more like browsers' line height
|
245 | 234 | */
|
246 |
| - "DOMPDF_FONT_HEIGHT_RATIO" => 1.1, |
247 |
| - |
248 |
| - /** |
249 |
| - * Enable CSS float |
250 |
| - * |
251 |
| - * Allows people to disabled CSS float support |
252 |
| - * @var bool |
253 |
| - */ |
254 |
| - "DOMPDF_ENABLE_CSS_FLOAT" => false, |
255 |
| - |
| 235 | + "font_height_ratio" => 1.1, |
256 | 236 |
|
257 | 237 | /**
|
258 | 238 | * Use the more-than-experimental HTML5 Lib parser
|
259 | 239 | */
|
260 |
| - "DOMPDF_ENABLE_HTML5_PARSER" => false, |
261 |
| - |
262 |
| - |
| 240 | + "enable_html5_parser" => false, |
263 | 241 | ),
|
264 | 242 |
|
265 | 243 |
|
|
0 commit comments