public PdfPageImage Get(String filename) { String[] parsedRequest = parseRequest(filename); PdfPageImage page = getPage(parsedRequest[0], parsedRequest[1]); return(page); }
public PdfPageImage getPage(String filename, String pageNum) { MainController pageController = new MainController(filename); PdfDocument document = pageController.GetDocument(); PdfTextExtractor extractor = new PdfTextExtractor(); string[,] textData = extractor.GetRawText(Convert.ToInt32(pageNum), document); //System.Format Exception PdfPageImage page = new PdfPageImage { imgPath = Url.Content("~/TestImages/" + pageNum + ".png"), textData = textData }; return(page); }