使用ITextSharp阅读PDF [英] Read PDF using ITextSharp

查看:132
本文介绍了使用ITextSharp阅读PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!我正在尝试使用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:

http://social .msdn.microsoft.com/Forums/vstudio/zh-CN/c1f7e93f-7be0-4148-9f5b-7339ae096102/read-pdf-file

卡尔


这篇关于使用ITextSharp阅读PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆