标签:ber col bsp sha fread reader .text nbsp response
引用命名空间:using iTextSharp.text.pdf;
string filePath = Server.MapPath("/upload/123.pdf"); //文件的物理路径 PdfReader reader = new PdfReader(filePath); int iPageNum = reader.NumberOfPages; //文件页数 reader.Close(); Response.Write("文件页数:" + iPageNum);
标签:ber col bsp sha fread reader .text nbsp response
原文地址:https://www.cnblogs.com/zhangwj/p/9829166.html