Nina-piaoye

 

1.下载PDFBox 0.7.3   sourceforge.net/project/showfiles.php

2.复制并加载如下5个DLL文件到bin目录下面

  • IKVM.GNU.Classpath.dll
  • PDFBox-0.7.3.dll
  • FontBox-0.1.0-dev.dll
  • IKVM.Runtime.dll
  • bcprov-jdk14-132.dll
  • 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));
            }
        }
    }
    

  • 分类:

    技术点:

    相关文章:

    • 2021-11-07
    • 2021-09-22
    • 2021-11-16
    • 2021-06-09
    • 2021-06-28
    • 2021-06-30
    • 2022-12-23
    • 2022-12-23
    猜你喜欢
    • 2021-11-26
    • 2021-08-30
    • 2021-11-26
    • 2021-12-14
    • 2021-12-10
    相关资源
    相似解决方案