mPDF Book Manual
search    
Menu
Index
Archived Topics
Donate
Support mPDF by making a small donation?

(Note that PayPal will show the recipient as BPM Books. This is name under which I publish the Palliative Medicine Handbook for which I developed mPDF):

Rate it!
If you like mPDF, please rate it at www.hotscripts.com
Next »

Edition/Revision: 1.0
Validated 21 Apr 2010

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

Note: It is recommended that the values for dpi and img_dpi are the same.

Note: This variable can be changed in the configuration file config.php

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

 

Edition/Revision: 1.0
Created 6 Feb 2009
Validated 21 Apr 2010 by Ian Back
Last modified 30 Jul 2014

Next »
Thu 31 Jul 2014 00:14:59 GMT +0100 (DST)
mPDF website
Last modified 30 Jul 2014