public ActionResult Processing() { string pathFolder = Server.MapPath("~/FileUpload/"); System.IO.DirectoryInfo dicInfo = new DirectoryInfo(pathFolder); FileInfo[] fileInfo = dicInfo.GetFiles(); string pathFile = fileInfo[0].FullName; List<string> type = new List<string>(); type.Add("S"); type.Add("S"); type.Add("S"); type.Add("I"); type.Add("S"); object obj = new object(); List<HS> listHs = ReadPdf.GetDataByPdf(pathFile, type, "Candidate name", "Place of entry", "Result", "Overall Score", "CEFR Level"); //System.IO.File.Delete(pathFile); ViewData["listData"] = listHs; return View(); }
public void Init() { _pdf = new ReadPdf(); }