Another application of FPDF_RenderPage function is converting a page into a bitmap. Windows allows you can create a memory DC which holds a bitmap inside, when you draw onto that DC nothing has been outputted, except the bitmap has been changed. Therefore, after FPDF_RenderPage finished its rendering into a bitmap DC, you can take the bitmap anywhere, and save it into an image file, with any format you may like.
Here is an example:
HDC hDC, hMemDC;
HBITMAP hBitmap;
…
// Create a memory DC, which is compatible with the screen DC
hMemDC = CreateCompatibleDC(hDC);
// Create a bitmap for output
hBitmap = CreateCompatibleBitmap(hDC, size_x, size_y);
// Select the bitmap into the memory DC
hBitmap = (HBITMAP)SelectObject(hMemDC, hBitmap);
// Now render the page onto the memory DC, which in turn changes the bitmap
FPDF_RenderPage(hMemDC, pdf_page, 0, 0, size_x, size_y, 0, 0);
// Release the bitmap from the memory DC
hBitmap = (HBITMAP)SelectObject(hMemDC, hBitmap);
// Now the bitmap is filled with page contents.
// You can save it using WIN32 or other tools