convertPageToBMP2
Write a page to an image file.
convertPageToBMP2([in] int page, [in] double dpi, [in] int color, [in] BSTR fileName)
This function converts a PDF page to an image file on disk, in BMP format.
The arguments are:
page
= page numberdpi
= resolution (dots per inch)color
= color setting - one of:imageMono
: 1-bit monochromeimageGray
: 8-bit grayscaleimageRGB
: 8-bit RGBimageDevNToRGB
: 8-bit RGB, rasterized in DeviceN and then converted to RGBimageGrayToMono
: 1-bit monochrome, rasterized in 8-bit grayscale and then converted to 1-bit
fileName
= image file name
viewer.imageMono
, etc.
VB:
' convert page 5 to a 72 dpi color BMP file
viewer.convertPageToBMP2 5, 72, viewer.imageRGB, "test1.bmp"