上传者: jeamsluu
|
上传时间: 2021-08-25 11:10:09
|
文件大小: 2.5MB
|
文件类型: DLL
PDF文件扫描
PdfReader pdfReader = new PdfReader(pdfFilePath);
int numberOfPages = pdfReader.NumberOfPages;
StringBuilder text = new StringBuilder();
for (int i = 1; i <= numberOfPages; ++i)
{
text.Append(iTextSharp.text.pdf.parser.PdfTextExtractor.GetTextFromPage(pdfReader, i));
}
pdfReader.Close();
string pdfContent = text.ToString();