.Net中,如何在页面上显示PDF文档

1.

<object classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" width="50%" height="50%" border="0"

            id="Object1" name="pdf">

            <param name="toolbar" value="false">

            <param name="_Version" value="65539">

            <param name="_ExtentX" value="20108">

            <param name="_ExtentY" value="10866">

            <param name="_StockProps" value="0">

            <param name="SRC" value="StarUML_5.0_Developer_Guide.pdf">

           </object>

---------------------------------------------------------------------------------------------------------------------------------------------

2.摘 自: http://www.codeproject.com/KB/string/pdf2text.aspx

PDFBox is another Java PDF library. It is also ready to use with the original Java Lucene (see LucenePDFDocument).

Fortunately, there is a .NET version of PDFBox that is created using IKVM.NET (just download the PDFBox package, it's in the bin directory).

Using PDFBox in .NET requires adding references to:

PDFBox-0.7.2.dllIKVM.GNU.Classpath

and copying IKVM.Runtime.dll to the bin directory.

Using the PDFBox to parse PDFs is fairly easy:

private  static   string parseUsingPDFBox(string filename)

{

         PDDocument doc = PDDocument.load(filename);

         PDFTextStripper stripper = new PDFTextStripper();

         return stripper.getText(doc);

}

----------------------------------------------------------------------------------------------

3.Java中,可参考文档:使用PDFBox处理PDF文档

-------------------------------------------------------------------------------------------------

4.参考网站:http://blog.csdn.net/maicar1235/article/details/2777897

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值