有好得dll附加么?输入关键字,如何在pdf文件中查找相关信息?

解决方案 »

  1.   


    读取的话你下个开源的 itextsharp
      

  2.   

    http://www.codeproject.com/csharp/MgPDFReader.asp
    有源代码和思路说明http://csharp-source.net/open-source/pdf-libraries
    一个pdf的开元项目,比较丰润
      

  3.   

    用pdfbox做出来了,不过还是谢谢大家,结贴散分咯。
      

  4.   

    需要 下载 PDFBox 包。在这个包中,有一个bin目录。为了读取PDF文件,需要下面的文件:IKVM.GNU.Classpath.dll 
    PDFBox-0.7.3.dll 
    FontBox-0.1.0-dev.dll 
    IKVM.Runtime.dll
    您必须在项目中引用前两个动态库,还要把后两个复制到项目的bin目录中。 示例代码如下(假定使用控制台程序 using System;using org.pdfbox.pdmodel;using org.pdfbox.util; namespace PDFReader{    class Program    {        static void Main(string[] args)        {            PDDocument doc = PDDocument.load("lopreacamasa.pdf");            PDFTextStripper pdfStripper = new PDFTextStripper();            Console.Write(pdfStripper.getText(doc));        }    }}
      

  5.   

    要用pdf 提供的 链接库吧