Get a paper bin name.
char *pdfGetBinName(char *printerName, int binIdx, char *buf, int bufSize)
This function returns the name of the binIdxth available paper bin, on the specified printer.

binIdx must be between 0 and n-1, where n is the value returned by pdfGetNumBins.

The bin name will be returned in buf (up to bufSize-1 characters).

Returns buf on success, or NULL on failure.

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).

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); }