C#使用的PDFBox.dll.usingorg.apache.pdfbox.pdmodel;usingorg.apache.pdfbox.util;PDDocumentdoc=PDDocument.load(pdffile.FullName);PDFTextStripperpdfStripper=newPDFTextStripper();stringtext=pdfStripper.getText(doc);