pdfGetPrinterBinID
Get a printer paper bin ID.
unsigned int pdfGetPrinterBinID(char *printerName, int binIdx)
This function returns the ID for the
binIdx
th
available paper bin, on the specified printer.
binIdx
must be between 0 and n-1, where n is the
value returned by pdfGetNumPrinterBins
.
The returned value can be passed to pdfSetPrintBin
.
Note: pdfGetNumPrinterBins
, pdfGetPrinterBinName
, and
pdfGetPrinterBinID
are just simple wrappers around
Windows functions. There is no requirement to use these functions if
you already know the bin ID that you want to use (e.g., from
calling DeviceCapabilities
with the DC_BINS
argument).
C:
char binName[256];
int nBins, binID, i;
nBins = pdfGetNumPrinterBins(printerName);
for (i = 0; i < nBins; ++i) {
pdfGetPrinterBinName(printerName, i, binName, sizeof(binName));
binID = pdfGetPrinterBinID(printerName, i);
printf("bin %d: id=%d name=%s\n", i, binID, binName);
}