/***********Method SplitDocument Added by:Zeeshan*******/
        public bool SplitDocument(SplitDocumentFormats format, int from, int to)
        {
            try
            {
                //check whether file is set or not
                if (FileName == "")
                {
                    throw new Exception("No file name specified");
                }

                //build URI
                string strURI = Product.BaseProductUri + "/cells/" + FileName;
                strURI += "/split?" +
                          (format == null ? "" : "format=" + format.ToString()) +
                          (from == 0 ? "" : "&from=" + from.ToString()) +
                          (to == 0 ? "" : "&to=" + to.ToString());

                //sign URI
                string signedURI = Utils.Sign(strURI);

                StreamReader reader = new StreamReader(Utils.ProcessCommand(signedURI, "POST", "", ""));

                //further process JSON response
                string strJSON = reader.ReadToEnd();

                //Parse the json string to JObject
                JObject parsedJSON = JObject.Parse(strJSON);

                //Deserializes the JSON to a object.
                BaseResponse splitResultResponse = JsonConvert.DeserializeObject <BaseResponse>(parsedJSON.ToString());

                if (splitResultResponse.Status == "OK")
                {
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
        /***********Method SplitDocument Added by:Zeeshan*******/
        public bool SplitDocument(SplitDocumentFormats format, int from, int to)
        {
            try
            {
                //check whether file is set or not
                if (FileName == "")
                    throw new Exception("No file name specified");

                //build URI
                string strURI = Product.BaseProductUri + "/cells/" + FileName;
                strURI += "/split?" +
                    (format == null ? "" : "format=" + format.ToString()) +
                    (from == 0 ? "" : "&from=" + from.ToString()) +
                    (to == 0 ? "" : "&to=" + to.ToString());

                //sign URI
                string signedURI = Utils.Sign(strURI);

                StreamReader reader = new StreamReader(Utils.ProcessCommand(signedURI, "POST", "", ""));

                //further process JSON response
                string strJSON = reader.ReadToEnd();

                //Parse the json string to JObject
                JObject parsedJSON = JObject.Parse(strJSON);

                //Deserializes the JSON to a object. 
                BaseResponse splitResultResponse = JsonConvert.DeserializeObject<BaseResponse>(parsedJSON.ToString());

                if (splitResultResponse.Status == "OK")
                    return true;
                else
                    return false;

            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }