Write a rectangular region to an image file.
convertRegionToBMP2([in] int page, [in] double x0, [in] double y0, [in] double x1, [in] double y1, [in] double dpi, [in] int color, [in] BSTR fileName)
This function converts a rectangular region of a PDF page to an image file on disk, in BMP format. This can be useful if the page is too large to fit in memory at the desired resolution, or if only part of the page is needed for some purpose.
The rectangular region is specified by the x,y coordinates of its upper-left and lower-right corners (in PDF coordinates).
The arguments are:
page= page number
y0= upper-left corner of region
y1= lower-right corner of region
dpi= resolution (dots per inch)
color= color setting - one of:
fileName= image file name