示例#1
0
        public PdfPageImage Get(String filename)
        {
            String[]     parsedRequest = parseRequest(filename);
            PdfPageImage page          = getPage(parsedRequest[0], parsedRequest[1]);

            return(page);
        }
示例#2
0
        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);
        }