dpi
(mPDF ≥ 4.5)
Description
void dpi
Specify how to convert sizes specified in px
units (pixels). As a print medium, PDF documents do not have any
inherent size for pixels. Any values set for e.g. font-size, border-width etc. need to be converted to a real length.
The dots-per-inch (dpi) affects all conversions from pixels except images, which are set by a separate variable
$img_dpi
Note: It is recommended that the values for $dpi and $img_dpi are the same.
Note: This variable can be changed as any other configuration variable
Values
$dpi
Values
- INTEGER : set conversion for pixel - dots per inch
Default: 96
Changelog
Version | Description |
---|---|
4.5 | Variable was added. |
See Also
- img_dpi - Specify conversion for image sizes set in pixels