Parameters
pageNumberNumber of the target page
fileNamePath to output file
dpiXHorizontal resolution of image
dpiYVertical resolution of image
Return value
If successful, this method returns S_OK. If it fails, this method should return one of the error values.