如何在ASP.NET中显示PDF或在ASP.NET中以PDF格式读取PDF [英] How to display PDF in ASP.NET or Read PDF as string in ASP.NET

查看:204
本文介绍了如何在ASP.NET中显示PDF或在ASP.NET中以PDF格式读取PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从服务器显示读取pdf文件(简历)并想从中删除电话号码。我可以将pdf转换为HTML吗?如果我可以将文件转换为html我可以使用REGEX轻松删除电话号码并显示为literal.How我可以读取pdf作为字符串.....请帮助

I want to display read pdf file(Resume) from server and want to remove phone number from that.Can i convert the pdf to html ? If i can convert file to html i can easily remove phone number using REGEX and display with literal.How can i read pdf as string.....Please Help

推荐答案



你没有提到你将使用什么类型的API。但是,我会为您的问题建议以下2个PDF库。



https:/ /pdfbox.apache.org/ [ ^ ]



http://sourceforge.net/projects/itextsharp/ [ ^ ]



我在过去使用第一个功能实现了相同的功能(文本提取)。基本教程如下:



https:// pdfbox。 apache.org/cookbook/textextraction.html [ ^ ]



希望这会有所帮助!



谢谢!

S弗朗西斯

我的博客
Hi,
You didn't mention what type of API you are going to use. However, I would suggest the below 2 PDF Libraries for your problem.

https://pdfbox.apache.org/[^]

http://sourceforge.net/projects/itextsharp/[^]

I have achieved the same functionality (text extraction), in my past using the first one. The basic tutorial is here:

https://pdfbox.apache.org/cookbook/textextraction.html[^]

Hope this helps!

Thanks!
S. Francis
My Blog


亲爱的Namith Krishnan E.,



提供如何在ASP.NET中打开PDF文件,





http://www.aspdotnet-suresh.com/2012/11 /aspnet-open-pdf-file-in-web-browser.html [ ^ ]



使用GhostScript在ASP.NET应用程序中显示PDF文件的内容 [ ^ ]



http://www.beansoftware。 com / ASP.NET-Tutorials / PDF-View-Custom-Control.aspx [ ^ ]



Dear Namith Krishnan E.,

Provide How to open a PDF file in ASP.NET ,


http://www.aspdotnet-suresh.com/2012/11/aspnet-open-pdf-file-in-web-browser.html[^]

Displaying the contents of a PDF file in an ASP.NET application using GhostScript[^]

http://www.beansoftware.com/ASP.NET-Tutorials/PDF-View-Custom-Control.aspx[^]

Let me know if you have any further query.
Please, go through above suggestion.
If its your answer, please mark as solution.
Best of luck for hunting solutions.
Thank you.



Manoj Kalla


Manoj Kalla


这篇关于如何在ASP.NET中显示PDF或在ASP.NET中以PDF格式读取PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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