使用ITextSharp阅读PDF [英] Read PDF using ITextSharp
问题描述
大家好!我正在尝试使用iTextSharp库从PDF检索数据,该数据将在特定字段中找到我需要的信息以重命名该文件.我有以下内容:
Hi all! I am trying to retrieve data from PDF's, using the iTextSharp library, that will find the information I need in specific fields to rename that file. I have the following:
使用系统;
使用System.IO;
using System.IO;
.......
使用iTextSharp.text;
using iTextSharp.text;
使用iTextSharp.text.pdf;
using iTextSharp.text.pdf;
PdfReader pdfReader =新的PdfReader(文件")
PdfReader pdfReader = new PdfReader("file")
AcroFields形式= pdfReader.AcroFields;
AcroFields form = pdfReader.AcroFields;
foreach(表单字段中的var字段)
foreach (var field in form.Fields)
{
//............这是我卡住的地方
//...........here is where I get stuck
}
推荐答案
请参见以下类似线程:
See this similar thread:
卡尔
这篇关于使用ITextSharp阅读PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!