mPDF Manual – mPDF Variables

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

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
Fork me on GitHub