Dompdf\Helpers
Synopsis
class Helpers
{
- // methods
- public static string|null pre_r()
- public static string build_url()
- public static string buildContentDispositionHeader()
- public static string dec2roman()
- public static bool is_percent()
- public static array|bool parse_data_uri()
- public static string encodeURI()
- public static string rle8_decode()
- public static string rle4_decode()
- public static array explode_url()
- public static void dompdf_debug()
- public static void record_warnings()
- public static bool|string unichr()
- public static array cmyk_to_rgb()
- public static array dompdf_getimagesize()
- public static void imagecreatefrombmp()
- public static bool|array getFileContent()
- public static void mb_ucwords()
Methods
public
- buildContentDispositionHeader() — Builds a HTTP Content-Disposition header string using `$dispositionType` and `$filename`.
- build_url() — builds a full url given a protocol, hostname, base path and url
- cmyk_to_rgb() — Converts a CMYK color to RGB
- dec2roman() — Converts decimal numbers to roman numerals
- dompdf_debug() — Print debug messages
- dompdf_getimagesize() — getimagesize doesn't give a good size for 32bit BMP image v5
- encodeURI() — Encodes a Uniform Resource Identifier (URI) by replacing non-alphanumeric characters with a percent (%) sign followed by two hex digits, excepting characters in the URI reserved character set.
- explode_url() — parse a full url or pathname and return an array(protocol, host, path, file + query + fragment)
- getFileContent() — Gets the content of the file at the specified path using one of the following methods, in preferential order: - file_get_contents: if allow_url_fopen is true or the file is local - curl: if allow_url_fopen is false and curl is available
- imagecreatefrombmp() — Credit goes to mgutt http://www.programmierer-forum.de/function-imagecreatefrombmp-welche-variante-laeuft-t143137.htm Modified by Fabien Menager to support RGB555 BMP format
- is_percent() — Determines whether $value is a percentage or not
- mb_ucwords()
- parse_data_uri() — Parses a data URI scheme http://en.wikipedia.org/wiki/Data_URI_scheme
- pre_r() — print_r wrapper for html/cli output
- record_warnings() — Stores warnings in an array for display later This function allows warnings generated by the DomDocument parser and CSS loader ({@link Stylesheet}) to be captured and displayed later. Without this function, errors are displayed immediately and PDF streaming is impossible.
- rle4_decode() — Decoder for RLE4 compression in windows bitmaps see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_6x0u.asp
- rle8_decode() — Decoder for RLE8 compression in windows bitmaps http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_6x0u.asp
- unichr()