Get the number of available printers.
int pdfGetNumPrinters()
This function returns the number of available printers.

Note: pdfGetNumPrinters and pdfGetPrinterName are just simple wrappers around Windows functions. There is no requirement to use these functions if you already know the printer name that you want to use.

int nPrinters, i; char name[256]; nPrinters = pdfGetNumPrinters(); for (i = 0; i < nPrinters; ++i) { pdfGetPrinterName(i, name, sizeof(name)); printf("printer %d: %s\n", i, name); }