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

dpi

(mPDF >= 4.5)

dpi – Specify size conversion for objects using pixels

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 in the configuration file config.php

Values

dpi

Values
INTEGER : set conversion for pixel - dots per inch
DEFAULT: 96

Changelog
VersionDescription
4.5 Variable was added.
See Also
  • img_dpi - Specify conversion for image sizes set in pixels

 

Edition/Revision: 1.0
Created 21 Apr 2010
Validated 21 Apr 2010 by Ian Back
Last modified 31 Oct 2014

Next »
Fri 31 Oct 2014 22:35:47 GMT
mPDF website
Last modified 31 Oct 2014