PSGetCPI()

Syntax

Function PSGetCPI()
TPageScript:GetCPI()

Returns

An Integer value.

Description

PSGetCPI() returns the number of character per inch (CPI) currently set when printing using the APS_TEXT unit of measurement. If you're not using APS_TEXT, the value of PSGetCPI() is not meaningful. See PSSetCPI() for more information.

If you call this function when not printing, the default value is returned.

Arguments

None