如何阅读PDF文件 [英] How can I Read PDF File

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

问题描述

您好,专业人员,

在我的pdf文件中,有5个文本框.如何读取这些文本框值.

Hello professionals,

In my pdf file have 5 text boxes.How to read these textbox values .

推荐答案

Google,然后发布

Google before you post

how to read PDF file in asp.net[^]


要创建PDF文档,可以使用第三方iTextSharp.
这是几个示例
使用iTextSharp创建PDF文档 [ http://www.4guysfromrolla.com/articles/030911-1.aspx [ ^ ]
For creating PDF documents, you can use the third party iTextSharp.
Here are a couple of samples
Creating PDF documents with iTextSharp[^]
http://www.4guysfromrolla.com/articles/030911-1.aspx[^]


这取决于关于您正在尝试做的事情以及您想如何做.

如果PDF具有文本对象,并且您不需要任何高级分析功能,则可以使用类似以下的内容:
使用C#将PDF文件内容转换为字符串

如果要解析文档的内容以获取文本以外的对象,例如字体,图像和超链接,请参见以下文章:
如何读取,写入和编辑PDF文件以及使用LEADTOOLS的元数据

如果文本在PDF的位图图像中,则需要对其执行OCR(光学字符识别),以将其转换回文本,这在本文中进行了解释.
OCR与LEADTOOLS:更好的选择
It depends on what you are trying to do and how you want to do it.

If the PDF has text objects and you don’t require any advanced parsing features, you might be able to use something like the following:
Convert PDF file content into string using C#

If you want to parse the content of the document to get objects other than text such as fonts, images and hyperlinks, see the following article:
How to Read, Write and Edit PDF Files and Metadata using LEADTOOLS

If the text is in bitmap images in the PDF, you will need to perform OCR (Optical Character Recognition) on it to convert it back to text, which is explained in this article
OCR with LEADTOOLS: The Better Choice


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

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