将上传的pdf内容阅读给编辑者 [英] Read uploaded pdf content to a editor

查看:82
本文介绍了将上传的pdf内容阅读给编辑者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用c#代码上传了pdf文件.现在,我想将文件的内容显示到编辑器或文本框控件中(或将其存储到字符串或数组或..)中.

请帮我提供代码

在此先感谢

Hi,

I uploaded a pdf file using c# code. Now I want to display the content of file into a editor or textbox control (or store it into a string or array or ..)

Please help me with the code

Thanks in advance

推荐答案

这里是一个起点 pdftotext [ ^ ]. Pdf文件是复杂的文档,不容易转换为文本.您将不得不处理嵌入式字体,脚本,图像等等.

您可以尝试查看以下内容: http://aspdotnetcodebook .blogspot.com/2008/08/how-to-convert-pdf-file-to-text-in.html [此的东西 [
Here is a starting point pdftotext[^]. Pdf files are complex documents, not easily converted to text. You''ll have to deal with embedded fonts, postscript, images and more...

You can try looking at this:http://aspdotnetcodebook.blogspot.com/2008/08/how-to-convert-pdf-file-to-text-in.html[^]

This approach will at best only give you the text from the pdf file.

Alernatively you can use the xps printer and use someting like this[^] to display the result.


Good luck
Espen Harlinn


这篇关于将上传的pdf内容阅读给编辑者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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