mPDF Manual – mPDF Variables

img_dpi

(mPDF >= 1.0)

img_dpi – Specify size conversion for images using pixels

Description

void img_dpi

Specify how to convert image sizes specified in “px” units (pixels). As a print medium, PDF documents do not have any inherent size for pixels. Width and height values of images set in pixels need to be converted to a real length. The dots-per-inch (dpi) affects the conversion from pixels for images; other objects using pixels as a length, are set by a separate variable $dpi

Values

$img_dpi

Values

INTEGER : set conversion for pixel - dots per inch

DEFAULT: 96

Changelog

VersionDescription
1.0 Variable was added.

See Also

  • dpi - Specify conversion for other values set in pixels