/// <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> /// Convert from given URL /// </summary> /// <param name="url">The URL of the word document</param> public void fromURL(string url) { this.input = new Input(InputType.URL, url); }
/// <summary> /// Convert from file with given name /// </summary> /// <param name="filename">The filename given</param> public void fromFile(string filename) { this.input = new Input(InputType.File, filename); }