Files
kulakpos_web/config/dompdf.php

72 lines
1.6 KiB
PHP

<?php
return [
'show_warnings' => false, // Throw an Exception on warnings from dompdf
'public_path' => null, // Override the public path if needed
/*
* Dejavu Sans font is missing glyphs for converted entities, turn it off if you need to show € and £.
*/
'convert_entities' => true,
'options' => [
'font_dir' => public_path('fonts'), // advised by dompdf (https://github.com/dompdf/dompdf/pull/782)
'font_cache' => public_path('fonts'),
'temp_dir' => sys_get_temp_dir(),
'chroot' => realpath(base_path()),
'allowed_protocols' => [
'data://' => ['rules' => []],
'file://' => ['rules' => []],
'http://' => ['rules' => []],
'https://' => ['rules' => []],
],
/**
* Operational artifact (log files, temporary files) path validation
*/
'artifactPathValidation' => null,
/**
* @var string
*/
'log_output_file' => null,
/**
* Whether to enable font subsetting or not.
*/
'enable_font_subsetting' => true,
'pdf_backend' => 'CPDF',
'default_media_type' => 'screen',
'default_paper_size' => 'a4',
'default_paper_orientation' => 'portrait',
'default_font' => 'NotoSans',
'dpi' => 96,
'enable_php' => false,
'enable_javascript' => true,
'enable_remote' => false,
'allowed_remote_hosts' => null,
'font_height_ratio' => 1.1,
'enable_html5_parser' => true,
],
];