165 lines
5.5 KiB
PHP
165 lines
5.5 KiB
PHP
<?php
|
|
|
|
return [
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the enable_php_ini_loaded_file option
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Enable the DOMPDF_ENABLE_PHP_INI_LOADED_FILE constant.
|
|
|
|
|
*/
|
|
'enable_php_ini_loaded_file' => env('DOMPDF_ENABLE_PHP_INI_LOADED_FILE', false),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_TEMP_DIR
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_TEMP_DIR is set to PHP's sys_get_temp_dir().
|
|
|
|
|
*/
|
|
'temp_dir' => env('DOMPDF_TEMP_DIR', sys_get_temp_dir()),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_FONT_DIR
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_FONT_DIR is set to storage_path('fonts/').
|
|
|
|
|
*/
|
|
'font_dir' => env('DOMPDF_FONT_DIR', storage_path('fonts/')),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_FONT_CACHE
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_FONT_CACHE is set to storage_path('fonts/').
|
|
|
|
|
*/
|
|
'font_cache' => env('DOMPDF_FONT_CACHE', storage_path('fonts/')),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_PDF_BACKEND
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_PDF_BACKEND is set to 'CPDF'.
|
|
|
|
|
*/
|
|
'pdf_backend' => env('DOMPDF_PDF_BACKEND', 'CPDF'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_DEFAULT_MEDIA_TYPE
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_DEFAULT_MEDIA_TYPE is set to 'screen'.
|
|
|
|
|
*/
|
|
'default_media_type' => env('DOMPDF_DEFAULT_MEDIA_TYPE', 'screen'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_DEFAULT_PAPER_SIZE
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_DEFAULT_PAPER_SIZE is set to 'A4'.
|
|
|
|
|
*/
|
|
'default_paper_size' => env('DOMPDF_DEFAULT_PAPER_SIZE', 'A4'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_DEFAULT_FONT
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_DEFAULT_FONT is set to 'serif'.
|
|
|
|
|
*/
|
|
'default_font' => env('DOMPDF_DEFAULT_FONT', 'serif'),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_DPI
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_DPI is set to 96.
|
|
|
|
|
*/
|
|
'dpi' => env('DOMPDF_DPI', 96),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_ENABLE_REMOTE
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_ENABLE_REMOTE is set to false.
|
|
|
|
|
*/
|
|
'enable_remote' => env('DOMPDF_ENABLE_REMOTE', false),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_ENABLE_CSS_FLOAT
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_ENABLE_CSS_FLOAT is set to false.
|
|
|
|
|
*/
|
|
'enable_css_float' => env('DOMPDF_ENABLE_CSS_FLOAT', false),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_ENABLE_JAVASCRIPT
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_ENABLE_JAVASCRIPT is set to true.
|
|
|
|
|
*/
|
|
'enable_javascript' => env('DOMPDF_ENABLE_JAVASCRIPT', true),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_ENABLE_FONTSUBSETTING
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_ENABLE_FONTSUBSETTING is set to true.
|
|
|
|
|
*/
|
|
'enable_font_subsetting' => env('DOMPDF_ENABLE_FONT_SUBSETTING', true),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_ENABLE_CSS_FLOAT
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_ENABLE_CSS_FLOAT is set to false.
|
|
|
|
|
*/
|
|
'chroot' => env('DOMPDF_CHROOT', public_path()),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_LOGOUTPUT
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_LOGOUTPUT is set to false.
|
|
|
|
|
*/
|
|
'log_output_file' => env('DOMPDF_LOG_OUTPUT_FILE', storage_path('logs/dompdf.log')),
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Define the DOMPDF_LOGOUTPUT
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| By default DOMPDF_LOGOUTPUT is set to false.
|
|
|
|
|
*/
|
|
'enable_html5_parser' => env('DOMPDF_ENABLE_HTML5_PARSER', true),
|
|
];
|