/// <summary>
        /// Generate pdf ajax methods
        /// </summary>
        /// <param name="name"></param>
        /// <param name="type"></param>
        /// <param name="year"></param>
        /// <returns></returns>
        public string GeneratePDF(string name, string type, int year)
        {
            string chartImage = "";

            if (Request.Form["chartImage"] != null)
            {
                chartImage = Request.Form["chartImage"].ToString().Replace("data:image/png;base64,", "");

                int length = chartImage.Length;
            }
            string result = string.Empty;
            string pdfUrl = string.Empty;

            if (!string.IsNullOrEmpty(name) && !string.IsNullOrEmpty(type))
            {
                if (type == HomeModel.EnumType.LibraryOverview.ToString())
                {
                    pdfUrl = pdfService.EditPdfLibraryOverview(name, "Library Overview", year, chartImage);
                    if (!string.IsNullOrEmpty(pdfUrl))
                    {
                        result = pdfUrl;
                    }
                }
                else if (type == HomeModel.EnumType.MaterialsandCirculation.ToString())
                {
                    pdfUrl = pdfService.EditPdfMaterialsandCirculation(name, "Materials and Circulation", year, chartImage);
                    if (!string.IsNullOrEmpty(pdfUrl))
                    {
                        result = pdfUrl;
                    }
                }
                else if (type == HomeModel.EnumType.SupportTechnology.ToString())
                {
                    pdfUrl = pdfService.EditPdfSupportTechnology(name, "Technology", year);
                    if (!string.IsNullOrEmpty(pdfUrl))
                    {
                        result = pdfUrl;
                    }
                }
                else if (type == HomeModel.EnumType.Programming.ToString())
                {
                    pdfUrl = pdfService.EditPdfProgramming(name, "Programming", year, chartImage);
                    if (!string.IsNullOrEmpty(pdfUrl))
                    {
                        result = pdfUrl;
                    }
                }
                else if (type == HomeModel.EnumType.YouthServices.ToString())
                {
                    pdfUrl = pdfService.EditPdfYouthServices(name, "Youth Services", year);
                    if (!string.IsNullOrEmpty(pdfUrl))
                    {
                        result = pdfUrl;
                    }
                }
                else if (type == HomeModel.EnumType.AdultServices.ToString())
                {
                    pdfUrl = pdfService.EditPdfAdultServices(name, "Adult Services", year);
                    if (!string.IsNullOrEmpty(pdfUrl))
                    {
                        result = pdfUrl;
                    }
                }
            }
            else
            {
                result = "False";
            }
            return(result);
        }