public static void ConvertToBitmapInRequest() { Stream inputFile = new FileStream("D:/inputFile/convertToBitmapInRequest.docx", FileMode.Open); string imageFormat = "jpeg";//jpeg, bmp, png string password = null; int? startPage = null; int? pageCount = null; var response = convertApi.ConvertToBitmapInRequest(inputFile, imageFormat, password, startPage, pageCount); }