pdfGetNumBins

Get the number of available paper bins/trays.
int pdfGetNumBins(char *printerName)
This function returns the number of available paper bins on the specified printer.

Note: pdfGetNumBins, pdfGetBinName, and pdfGetBinID 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 = pdfGetNumBins(printerName); for (i = 0; i < nBins; ++i) { pdfGetBinName(printerName, i, binName, sizeof(binName)); binID = pdfGetBinID(printerName, i); printf("bin %d: id=%d name=%s\n", i, binID, binName); }
pdfGetBinName
pdfGetBinID
pdfGetNumBinsW