mPDF Manual – Configuration

Configuration files v6.x

(mPDF >= 6.0)

Four configuration files are included in the root folder of mPDF:

File name Details
config.php Configure most variables which affect mPDF. These values can be set at the beginning of individual scripts, but changes here will affect all of your PDF files. Also contains basic default CSS stylesheet properties.
config_fonts.php Details of fonts installed in mPDF.
config_lang2fonts.php Sets the options used for which fonts to use, when the text is defined by the `lang` attribute.
config_script2lang.php Sets the options of which lang to mark up text with, when using automatic font selection based on the text script.