MMCT TEAM
Server IP : 2a02:4780:3:1493:0:3736:a38e:7  /  Your IP : 216.73.216.86
Web Server : LiteSpeed
System : Linux sg-nme-web1393.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User : u926327694 ( 926327694)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : ON
Directory (0755) :  /home/u926327694/domains/smsoft.in/public_html/onv/config/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u926327694/domains/smsoft.in/public_html/onv/config/dompdf.php
<?php

return [
    /*
    |--------------------------------------------------------------------------
    | Settings
    |--------------------------------------------------------------------------
    |
    | Set some default values. It is possible to add all defines that can be set
    | in dompdf_config.inc.php. You can also override the entire config file.
    |
    */
    'show_warnings' => false,   // Throw an exception on warnings from dompdf
    'orientation' => 'portrait',
    'defines' => [
        /**
         * The location of the DOMPDF font directory
         *
         * The location of the DOMPDF font directory. The default value is
         * DOMPDF_FONT_DIR. Font files must be executable or they won't be loaded.
         *
         * NOTE: This directory must exist and be writable by the webserver process (!)
         */
        'DOMPDF_FONT_DIR' => storage_path('fonts/'),

        /**
         * The location of the DOMPDF font cache directory
         *
         * This directory contains the cached font metrics for the fonts used by DOMPDF.
         * This directory can be the same as DOMPDF_FONT_DIR
         *
         * NOTE: This directory must exist and be writable by the webserver process (!)
         */
        'DOMPDF_FONT_CACHE' => storage_path('fonts/'),

        /**
         * The location of a temporary directory.
         *
         * The directory specified must be writeable by the webserver process.
         * The temporary directory is required to download remote images and when
         * using the PFDLib back end.
         */
        'DOMPDF_TEMP_DIR' => sys_get_temp_dir(),

        /**
         * ==== IMPORTANT ====
         *
         * dompdf's "chroot": Prevents dompdf from accessing system files or other
         * files on the webserver. All local files opened by dompdf must be in a
         * subdirectory of this directory. Similarly, web files can only be
         * accessed if they are at or below this subdirectory's path.
         *
         * All directories MUST be specified as FULL PATHNAMES (starting with /).
         *
         * THIS SETTING IS MANDATORY. CHANGE THIS SETTING WITH CAUTION.
         * IF CHROOT IS NOT CORRECTLY CONFIGURED, DOMPDF WILL NOT RUN.
         */
        'DOMPDF_CHROOT' => public_path(),

        /**
         * Whether to use Unicode fonts or not.
         *
         * When set to true, dompdf will use Unicode fonts instead of the default
         * built-in fonts. This allows for the display of a wider range of
         * characters, but requires the installation of additional fonts.
         */
        'DOMPDF_UNICODE_ENABLED' => true,

        /**
         * Whether to enable font subsetting or not.
         */
        'DOMPDF_ENABLE_FONT_SUBSETTING' => false,

        /**
         * The PDF rendering backend to use
         *
         * Valid settings are 'PDFLib', 'CPDF', 'GD', and 'auto'. 'auto' will
         * look for PDFLib and use it if found, or if not it will fall back on
         * CPDF. 'GD' renders BMP, GIF, JPG, and PNG images only.
         */
        'DOMPDF_PDF_BACKEND' => 'CPDF',

        /**
         * PDFlib license key
         *
         * If you are using a licensed version of PDFlib, enter your license key
         * here. If you are not using a licensed version of PDFlib, you may leave
         * this set to the empty string.
         */
        'DOMPDF_PDFLIB_LICENSE' => '',

        /**
         * html target media view which should be rendered into pdf.
         * List of types and parsing rules for future extensions:
         * http://www.w3.org/TR/REC-html40/types.html
         *   screen, tty, tv, projection, handheld, print, braille, aural, all
         * Note: aural is deprecated in CSS 2.1 because it is replaced by speech in CSS 3.
         * Note, even though the generated pdf file is intended for print output,
         * the desired content might be different (e.g. screen or projection view of html file).
         * Therefore allow specification of content here.
         */
        'DOMPDF_DEFAULT_MEDIA_TYPE' => 'screen',

        /**
         * The default paper size.
         *
         * North America standard is "letter"; other countries generally "a4"
         *
         * @see \Dompdf\Adapter\CPDF::PAPER_SIZES for valid sizes
         */
        'DOMPDF_DEFAULT_PAPER_SIZE' => 'a4',

        /**
         * The default font family
         *
         * Used if no suitable fonts can be found. This must exist in the font folder.
         */
        'DOMPDF_DEFAULT_FONT' => 'serif',

        /**
         * Image DPI setting
         *
         * This setting determines the default DPI setting for images and fonts. The
         * DPI may be overridden for inline images by explicitly setting the
         * image's width & height style attributes (i.e. if the image's native
         * width is 600 pixels and you specify the image's width as 72 points,
         * the image will have a DPI of 600 in the rendered PDF. The DPI of
         * background images can not be overridden and is controlled entirely
         * via this parameter.
         *
         * For the purposes of DOMPDF, pixels per inch (PPI) = dots per inch (DPI).
         * If a size in html is given as px (or without unit), this tells the
         * renderer how many pixels you want on the final page. DOMPDF
         * assumes 72 DPI, so a size of 72pt = 72px = 1 inch. This is a
         * web-standard, but 96 DPI is another way of quantifying pixels.
         *
         * In web samples, typical pixel sizes are 75, 90, 100, 120, 150, 180, 200, 220, 250, 300, etc.
         *
         * This parameter can be used to adjust the Pixels Per Inch (PPI) value
         * used during the rendering of images and fonts.
         */
        'DOMPDF_DPI' => 96,

        /**
         * Enable inline PHP
         *
         * If this setting is set to true then DOMPDF will automatically evaluate
         * inline PHP code found in HTML files during rendering. Enabling this
         * for documents you do not trust (e.g. arbitrary remote html pages) is
         * strongly discouraged as it will add a risk of system compromise.
         */
        'DOMPDF_ENABLE_PHP' => false,

        /**
         * Enable inline JavaScript
         *
         * If this setting is set to true then DOMPDF will automatically insert
         * JavaScript code found in HTML files during rendering. Enabling this
         * for documents you do not trust (e.g. arbitrary remote html pages) is
         * strongly discouraged as it will add a risk of system compromise.
         */
        'DOMPDF_ENABLE_JAVASCRIPT' => true,

        /**
         * Enable remote file access
         *
         * If this setting is set to true, DOMPDF will access remote sites for
         * images and CSS files as required.
         * This is required for part of test suite.
         */
        'DOMPDF_ENABLE_REMOTE' => false,

        /**
         * A ratio applied to the fonts height to be more like browsers' line height
         */
        'DOMPDF_ENABLE_CSS_FLOAT' => true,

        /**
         * Use the more-than-experimental HTML5 Lib parser
         */
        'DOMPDF_ENABLE_HTML5PARSER' => false,
    ],
];

MMCT - 2023