1.读取pdf 方法代码: /** * 读取pdf中文字信息(全部) * @param inputFile * @return */ public static String ReadPdf(String inputFile){ //创建文档对象 PDDocument doc =null; String content=""; try { //加载一个pdf对象 doc =PDDocument.load(new File(inputFile)); //获取一个PDFTextStripper文本剥离对象 PDFTextStripper textStripper =new PDFTextStripper(); content=textStripper.getText(doc); System.out.println("内容:"+content); System.out.println("全部页数"+doc.getNumberOfPages()); //关闭文档 doc.close(); } catch (Exception e) { e.printStackTrace(); }...