PDF转换为图像到MVC3中的文本 [英] PDF to Image to text in MVC3

查看:62
本文介绍了PDF转换为图像到MVC3中的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi,
I need help regarding the conversion of PDF file to Image and then again store the sam in .txt format.I need to do this using C# in MCV3. 

My Problem :

I have a PDF file that gets uploaded in local server. I want this to be changed into .txt before it gets saved. I have come to know that there are dll(s) for acomplising this but I dont know what should i use exactly and how would i use it in my context.

Can we do something like first convert pdf to image first .lets say a pdf contains 4 pages then we need to convert it to four images first then again convert thoes images into a single .txt file?  Or, is there any procedure that converts pdf directly to .txt file. Please help me regarding this. 

I want to know both alternatives.

Thankyou.

推荐答案

请参阅本文

http://www.simple-talk .com/dotnet/asp.net/asp.net-mvc-action-results-and-pdf-content/ [
See this Article

http://www.simple-talk.com/dotnet/asp.net/asp.net-mvc-action-results-and-pdf-content/[^]

vote or accept solution
If this will help you
thanks


您可以使用itextsharp库

http://www.mikesdotnetting.com/Article/87/iTextSharp-Working-with-images

http://stackoverflow.com/questions/5027673/convert-pdf-页面图像itextsharp-c-sharp
http://stackoverflow.com/questions/5945244/extract-image-from-pdf- using-itextsharp

http://forums.asp.net/t/1241115.aspx/1
You can use itextsharp Library

http://www.mikesdotnetting.com/Article/87/iTextSharp-Working-with-images

http://stackoverflow.com/questions/5027673/convert-pdf-page-to-image-itextsharp-c-sharp
http://stackoverflow.com/questions/5945244/extract-image-from-pdf-using-itextsharp

http://forums.asp.net/t/1241115.aspx/1


这篇关于PDF转换为图像到MVC3中的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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