读取pdf文件,然后使用c#编写 [英] to read pdf file and then write it using c#

查看:91
本文介绍了读取pdf文件,然后使用c#编写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好...我正在做一个项目,我需要在其中读取pdf文件,然后将其写入文本框.
有人可以帮我吗?

我使用了名为dll文件的iTextSharp,但它显示了命名空间中的错误

Hello... I am doing one project in which I need to read pdf file and then write it in a textbox.
Can somebody help me??

I have used iTextSharp named dll file but it is showing me error in namespace

using System.Web.UI;
using System.Web.UI.WebControls;
using iTextSharp.text.pdf;
using iTextSharp.text.pdf.parser;


如何清除此错误?能否请您告诉我代码以读取pdf文件,然后将其写入文本框??

添加了代码块[/edit]


How to remove this error? and can you please tell me the code to read a pdf file and then write it to a textbox???

[edit] Added code blocks [/edit]

推荐答案

由于PDF是二进制格式,因此您必须使用pdflib之类的pdf库才能阅读pdf文件.

pdfLib
Since PDF is an binary format you''ll have to use a pdf-library like pdflib in order to read pdf-files.

pdfLib


这篇关于读取pdf文件,然后使用c#编写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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