在IE浏览器中显示PDF文件 [英] Display the PDF file in the IE Browser

查看:87
本文介绍了在IE浏览器中显示PDF文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

有什么方法可以将 PDF文件转换为HTML文件,我基本上是想在网站或浏览器中打开PDF文件

我搜索了类似的问题,但没有运气.

谢谢

Hello

Is there any way to convert the PDF file TO HTML file ,i am basically tring to open the PDF file in the web site or browser

I searched similar questions, but to no luck.

Thank You

推荐答案

大多数浏览器可以通过其插件直接支持PDF.先想想.

如果您确实需要将HTML转换为HTML,则应了解它们的结构之间没有一对一的对应关系,因此您应该设计一些适合您的映射,例如,模拟PDF外观尽可能接近,是非常现实的.您应该了解,就其本质而言,HTML是流畅的,而PDF与页面呈现紧密地绑定在一起,它是一种软件纸".

如果您真的想以这种方式进行开发,我建议您使用iText的.NET端口.它叫做iTextSharp.这都是开源的东西.请参阅:
http://en.wikipedia.org/wiki/IText [ http://itextpdf.com/ [ ^ ],
http://sourceforge.net/projects/itextsharp/ [
Most browsers can support PDF directly of via their plug-ins. Think about it first.

If you really need to convert PDF in HTML, you should understand that there is no one-to-one correspondence between their structures, so you should devise some mapping which would suit your, for example, imitate PDF look as close as possible, which is pretty much realistic. You should understand that, by its nature, HTML is fluid while PDF is tightly bound to the page rendering, it''s a kind of "software paper".

If you really want to develop things in this way, I would recommend a .NET port of iText; it''s called iTextSharp. This is all Open Source stuff. Please see:
http://en.wikipedia.org/wiki/IText[^],
http://itextpdf.com/[^],
http://sourceforge.net/projects/itextsharp/[^] (you can download it here).

Good luck,
—SA


这篇关于在IE浏览器中显示PDF文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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