PDGetCurrentResolution(3) Impressario PDGetCurrentResolution(3)NAMEPDGetCurrentResolution - get current printing resolution
SYNOPSIS
#include <pod.h>
int PDGetCurrentResolution(PDInfoStruct *info,
int *hresp, int *vresp);
DESCRIPTIONPDGetCurrentResolution is a convenience function for determining the
current printing resolution.
Typically, printers have a single output resolution and the POD
PDInfoStruct horizontal_resolution and vertical_resolution fields provide
the printing resolution directly. However, certain printers allow
switching between multiple output resolutions. For these printers the
current resolution is determined by first parsing the PDStatusStruct
printer_options field for the keyword CurrentRes. The value for this
keyword will indicate the current horizontal and vertical resolutions. If
the keyword is not found, the resolutions in the PDInfoStruct are used.
The PDGetCurrentResolution function performs the above procedure to
determine the current resolution.
RETURN VALUEPDGetCurrentResolution returns 0 upon successful execution. If an error
occurs, the function returns -1 and sets PDerrno.
EXECUTION ERROR CODESPDGetCurrentResolution will fail under the following circumstances.
PD_LIBERR_BAD_STRUCT A NULL structure pointer has been specified.
SEE ALSOPDReadInfo(3), PDReadStatus(3), libpod(3)
Page 1