/// <summary>
 /// The constructors for conversion
 /// </summary>
 /// <param name="apiUser">The API username given by msword2image.com</param>
 /// <param name="apiKey">The API password given by msword2image.com</param>
 public MsWordToImageConvert(string apiUser, string apiKey)
 {
     this.apiUser = apiUser;
     this.apiKey = apiKey;
     this.input = null;
     this.output = null;
 }
 /// <summary>
 /// Converts to file with given name and format
 /// </summary>
 /// <param name="filename">The output file name to save the image to</param>
 /// <param name="imageFormat">The output image file format. Example: JPEG, GIF, PNG</param>
 /// <returns>True on success, false on error</returns>
 public bool toFile(string filename, OutputImageFormat imageFormat)
 {
     this.output = new Output(OutputType.File, imageFormat, filename);
     return this.convertToFile();
 }
 /// <summary>
 /// Converts to base64 encoded string with given output image format
 /// </summary>
 /// <param name="imageFormat">The desired output image format. Example: JPEG, GIF, PNG</param>
 /// <returns>The base64 encoded string that represents the image</returns>
 public string toBase46EncodedString(OutputImageFormat imageFormat)
 {
     this.output = new Output(OutputType.Base64EncodedString, imageFormat);
     return this.convertToBase46EncodedString();
 }