Setup

System Configuration

array( "required" => "5.0", "value" => phpversion(), "result" => version_compare(phpversion(), "5.0"), ), "DOMDocument extension" => array( "required" => true, "value" => phpversion("DOM"), "result" => class_exists("DOMDocument"), ), "PCRE" => array( "required" => true, "value" => phpversion("pcre"), "result" => function_exists("preg_match") && @preg_match("/./u", "a"), "failure" => "PCRE is required with Unicode support (the \"u\" modifier)", ), "Zlib" => array( "required" => true, "value" => phpversion("zlib"), "result" => function_exists("gzcompress"), "fallback" => "Recommended to compress PDF documents", ), "MBString extension" => array( "required" => true, "value" => phpversion("mbstring"), "result" => function_exists("mb_send_mail"), // Should never be reimplemented in dompdf "fallback" => "Recommended, will use fallback functions", ), "GD" => array( "required" => true, "value" => phpversion("gd"), "result" => function_exists("imagecreate"), "fallback" => "Required if you have images in your documents", ), "APC" => array( "required" => "For better performances", "value" => phpversion("apc"), "result" => function_exists("apc_fetch"), "fallback" => "Recommended for better performances", ), "GMagick or IMagick" => array( "required" => "Better with transparent PNG images", "value" => null, "result" => extension_loaded("gmagick") || extension_loaded("imagick"), "fallback" => "Recommended for better performances", ), ); if (($gm = extension_loaded("gmagick")) || ($im = extension_loaded("imagick"))) { $server_configs["GMagick or IMagick"]["value"] = ($im ? "IMagick ".phpversion("imagick") : "GMagick ".phpversion("gmagick")); } ?> $server_config) { ?>
Required Present
"> No. ".$server_config["fallback"].""; } if (isset($server_config["failure"])) { echo "
".$server_config["failure"]."
"; } } ?>

DOMPDF Configuration

array( "desc" => "Root directory of DOMPDF", "success" => "read", ), "DOMPDF_INC_DIR" => array( "desc" => "Include directory of DOMPDF", "success" => "read", ), "DOMPDF_LIB_DIR" => array( "desc" => "Third-party libraries directory of DOMPDF", "success" => "read", ), "DOMPDF_FONT_DIR" => array( "desc" => "Additional fonts directory", "success" => "read", ), "DOMPDF_FONT_CACHE" => array( "desc" => "Font metrics cache", "success" => "write", ), "DOMPDF_TEMP_DIR" => array( "desc" => "Temporary folder", "success" => "write", ), "DOMPDF_CHROOT" => array( "desc" => "Restricted path", "success" => "read", ), "DOMPDF_UNICODE_ENABLED" => array( "desc" => "Unicode support (thanks to additional fonts)", ), "DOMPDF_ENABLE_FONTSUBSETTING" => array( "desc" => "Enable font subsetting, will make smaller documents when using Unicode fonts", ), "DOMPDF_PDF_BACKEND" => array( "desc" => "Backend library that makes the outputted file (PDF, image)", "success" => "backend", ), "DOMPDF_DEFAULT_MEDIA_TYPE" => array( "desc" => "Default media type (print, screen, ...)", ), "DOMPDF_DEFAULT_PAPER_SIZE" => array( "desc" => "Default paper size (A4, letter, ...)", ), "DOMPDF_DEFAULT_FONT" => array( "desc" => "Default font, used if the specified font in the CSS stylesheet was not found", ), "DOMPDF_DPI" => array( "desc" => "DPI scale of the document", ), "DOMPDF_ENABLE_PHP" => array( "desc" => "Inline PHP support", ), "DOMPDF_ENABLE_JAVASCRIPT" => array( "desc" => "Inline JavaScript support", ), "DOMPDF_ENABLE_REMOTE" => array( "desc" => "Allow remote stylesheets and images", "success" => "remote", ), "DOMPDF_ENABLE_CSS_FLOAT" => array( "desc" => "Enable CSS float support (experimental)", ), "DOMPDF_ENABLE_HTML5PARSER" => array( "desc" => "Enable the HTML5 parser (experimental)", ), "DEBUGPNG" => array( "desc" => "Debug PNG images", ), "DEBUGKEEPTEMP" => array( "desc" => "Keep temporary image files", ), "DEBUGCSS" => array( "desc" => "Debug CSS", ), "DEBUG_LAYOUT" => array( "desc" => "Debug layout", ), "DEBUG_LAYOUT_LINES" => array( "desc" => "Debug text lines layout", ), "DEBUG_LAYOUT_BLOCKS" => array( "desc" => "Debug block elements layout", ), "DEBUG_LAYOUT_INLINE" => array( "desc" => "Debug inline elements layout", ), "DEBUG_LAYOUT_PADDINGBOX" => array( "desc" => "Debug padding boxes layout", ), "DOMPDF_LOG_OUTPUT_FILE" => array( "desc" => "The file in which dompdf will write warnings and messages", "success" => "write", ), "DOMPDF_FONT_HEIGHT_RATIO" => array( "desc" => "The line height ratio to apply to get a render like web browsers", ), "DOMPDF_AUTOLOAD_PREPEND" => array( "desc" => "Prepend the dompdf autoload function to the SPL autoload functions already registered instead of appending it", ), "DOMPDF_ADMIN_USERNAME" => array( "desc" => "The username required to access restricted sections", "secret" => true, ), "DOMPDF_ADMIN_PASSWORD" => array( "desc" => "The password required to access restricted sections", "secret" => true, "success" => "auth", ), ); ?> $value) { ?>
Config name Value Description Status
>